molanis.com/forum - Tools for MetaTrader : The place to ask about the best expert advisor builder, expert advisor downloads, and expert advisor programming

AFTER YOU REGISTER SEND US AN EMAIL TO ACTIVATE YOUR ACCOUNT - Before posting:-1- Please read the user guide -2- Try the examples -3- Search in the forum
It is currently Fri May 10, 2024 2:12 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: renko bar + shift
PostPosted: Mon Jun 11, 2012 4:13 am 
Offline

Joined: Thu May 31, 2012 3:09 am
Posts: 8
Hi
I still have a problem with shift. In my strategy I need only one bar to put an order. The condition is: buy if the closed bar is bullish and sell if the closed bar is bearish. Close long if the next bar is bearish and close short if the next bar is bullish.
Is this logic below correct?
buy: close shift1 < close 0
sell: close shift 1> close 0
close long: close 0 < close shift 1
close short: close > close shift 1

or another way:
buy: close o > open 0
sell: close 0 < open 0
close long: close 0 < open 0
close short: close 0 > open 0

regards


Top
 Profile  
 
 Post subject: Re: renko bar + shift
PostPosted: Mon Jun 11, 2012 3:08 pm 
Offline

Joined: Tue Dec 22, 2009 12:22 am
Posts: 1761
if you work with renko bars you need to make sure your set up is correct and that you are getting the right indicator info. Technically we do not support renko or offline charts because they are not designed for trading but people still use it - and also because you need to do a good setup or you will get wrong signals. You can use renko but you need to know how to use it. Having said that, you are better off not using shift 0 because the bar is still forming. You need to use shift 1. If you post your renko (mq4), your strategy file .mol, and a description on how you run the ea and renko script I can take a look.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by Molanis © 2009