Need help figuring how to make the following code work On Tick tester?
renzbub: if(Volume[0]==1) barcount++;
Bars is unreliable (a refresh/reconnect can change number of bars on chart) volume is unreliable (miss ticks) Always use time. New candle - MQL4 forum
WHRoeder:
Bars is unreliable (a refresh/reconnect can change number of bars on chart) volume is unreliable (miss ticks) Always use time. New candle - MQL4 forum
Thanks for that improvement.
Bars is unreliable (a refresh/reconnect can change number of bars on chart) volume is unreliable (miss ticks) Always use time. New candle - MQL4 forum
Record Session High = A current candle closes higher than the previous candles up to 6 bars back.
The following code has been made to count the candlestick record session highs up to 8 and then start drawing objects on each candle to mark the overbought or oversold condition.
But this code only works on the open price test and not on tick test. Its because i don't know a way to count bars on tick test. I know iBarShift can be used and i also got the idea of using with a static modifier object if(Volume[0]==1) barcount++;
but i cant get these to count in this code.