
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
this code loops from M1 to H4 on one tick you still need to add the comparing logic.
what do you mean no movement? 1 minute is one minute it's not determined by ticks it will only stop when market closes.
you mean no movemt = no new ticks ?
if you want to run it on time use OnTimer() in stead of ontick but then it never stops counting unless deinit.
this code loops from M1 to H4 on one tick you still need to add the comparing logic.
what do you mean no movement? 1 minute is one minute it's not determined by ticks it will only stop when market closes.
if you want to run it on time use OnTimer() in stead of ontick but then it never stops counting unless deinit.
Thanks very much for all your help Marco. I need to spend a little time reading up on switches, etc. I think this can be a much more efficient solution than what I have.
Mark
well you don't have to use switch the if statements are equally usable.
You can just compare iTime[x] with iTime[X-1]
Sincerely,
James H
so renko only draws a bar after X pips in the same direction.
i guess it would be similar to opening after X amount of pips in one direction.
say for example your renko bar is set at ten pips then, in your case you would open an order after 20 pips up or down is that correct?
and then close the order after a bar of ten pips in opposite direction.
im sure something like that exists i have also seen Heiken Ashi experts that open after two red or white candles.
so renko only draws a bar after X pips in the same direction.
i guess it would be similar to opening after X amount of pips in one direction.
say for example your renko bar is set at ten pips then, in your case you would open an order after 20 pips up or down is that correct?
and then close the order after a bar of ten pips in opposite direction.
im sure something like that exists i have also seen Heiken Ashi experts that open after two red or white candles.
james1972:
This is correct with the renko candle, it will only form once it has moved your predifined number of pips. Perhaps I will look into some of the heiken ashi ea's to see if they are adaptable.I suppose the difficulty is trying to find who has created this. Thanks very much for your response.
james
And thank you Marco for you help, once again, on my topic of checking recently closed bars.
Mark