Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
A
@saadatfx you're welcome!
S
M30 1 candle is like M5 6 candles. Maybe you can first try using the Market Info to get the highest and lowest of the 6 candles
That should have only made a problem if there was a running trade
Agreed. You should do that and see what info is provided there.
@saadatfx iHighest(NULL,0,MODE_CLOSE,52,1)
Do you mean i+1 rather than 1. iHighest(NULL,0,MODE_CLOSE,52,i+1)
"i" mean the current bar of interest. Maybe not "i" exactly. You can simply set a variable to get the current bar and then use it instead.
Highest and lowest can be found in Market properties. You should also check out Williams % range, it does basically that