Home

Latest Post

MQL4: Get the highest price of a set number of periods, candles, bars

MQL4: Get the highest price of a set number of periods, candles, bars

High[x] returns the high price of the period at shift x. https://docs.mql4.com/predefined/high iHighest() returns the shift of where the highest price is observed for the defined periods. https://docs.mql4.com/series/ihighest Combine them to obtain the highest price for the defined periods: double highestPrice = High[iHighest(Symbol(), 0, MODE_HIGH, 10, 1)]; In this example, the last parameter being “1” … Continue reading

Recent Posts

Advertisements

Archives

Visitors

Flag Counter