Bar-number of Maximum/Minimum price & Select some Bars from middle.

Created at 06 Nov 2015, 15:17
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
SA

Bar-number of Maximum/Minimum price & Select some Bars from middle.
06 Nov 2015, 15:17


It's impossible to get bar-number from cAlgo. Or Select Maximum/Minimum price counted from some middle bars. Not strating from last bar. Here's MT4 code.
iHighest(_Symbol,PERIOD_CURRENT,MODE_HIGH,20,3)

this bar I got which high value is highest from 20 bar. and started from Last(3) bar, not from Last(0). Please add a similar code for cAlgo. I'm facing a big problem for that to code a robot for cTrader.


cTrader Automate
@saifurrahman.mail@gmail.com