Hello All,
Hope you are doing well.
The time frame UT 1 hour doesn’t work. Did I make a mistake ?
timeframe(1 hour)
c1 = close < open
//
timeframe(default) // 5min
Big thanks as usual 😉
It works like a charm for me.
Bear in mind that you are NOT using UPDATEONCLOSE, so the hourly bar may change more than once within the 12 5-minute bars.
Try using:
timeframe(1 hour,UpdateOnClose)
Big thanks Roberto !
According to this screen shot, despite this long hourly green candle @ 2158 (2 minutes to close) the strategy still takes short position.
Instead of Updateonclose (I know ;)) I would rather have an ongoing candle close < open … Yes I’ll take to risk to have the hourly candle reversing 10 minutes before the close
https://pasteboard.co/kQZj0uHlbWPt.png
What do you think ? At your best convenience Roberto.
Thank you.
You are not using condition c1, why did you add it to your code?
Anyway, as to the trade entered yesterday at 20:05 (on the 5-miute TF, while on the 1-hour TF there was no trade at all):
- condition c1 was TRUE (not used)
- condition c11 was TRUE
- condition c12 was TRUE
why shouldn’t had it entered the trade?
Stupid me Roberto (C1 is not in the code) …. ALL GOOD WITH BIG THANKS