Highest high or Lowest low of n previous bars

Created at 29 Apr 2015, 01:36
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!
.I

.ics

Joined 10.03.2015

Highest high or Lowest low of n previous bars
29 Apr 2015, 01:36


Hi all,

Within MT4 there are some functions to find the HH or LL within n previous bars through:

iHigh(...,iHighest(...))

iLow(...,iLowest(...))

Does anyone know how to get this data with calgo?

Thanks in advance.

Greetings

 


@.ics
Replies

.ics
15 May 2015, 02:29

RE:
var maxHigh = MarketSeries.High.Maximum(periods); 
var minLow = MarketSeries.Low.Minimum(periods); 

@.ics

brentrit
18 Mar 2021, 14:03

Highest high or Lowest low of n previous bars

Thank you ics, I spent hours looking for this I didn't realize it was under functions.


@brentrit