Highest and Lowest from prices

 

Anyone could help me? I need the get the highest from X periods of the TYPICAL_PRICE and for some reason this is not working for me.

int index_high = iHighest(NULL, 0, TYPICAL_PRICE, stop_candle, start_candle);

Any idea about how to get it working? Thanks in advance for your help.

 
int index_high = iHighest(NULL, 0, TYPICAL_PRICE, stop_candle, start_candle);

What is this TYPICAL_PRICE? On iHighest the third argument must be an ENUM_SERIESMODE. Do you see it? No, then you must code it yourself.

b2tradingclub: Thanks in advance for your help.

Help you with what? You haven't stated a problem, you stated a want. Show us your attempt (using the CODE button) and state the nature of your difficulty.
          No free help (2017)

Or pay someone. Top of every page is the link Freelance.
          Hiring to write script - General - MQL5 programming forum (2018)

We're not going to code it for you (although it could happen if you are lucky or the issue is interesting).
          No free help (2017)

-
 

I use this and it works:

int a=0;

int b=20;

iHighest(NULL,PERIOD_M5,MODE_HIGH,b,a);


a and b should be integers representing the count of the bars with the latest bar being 0.

 
Faith Wanjiru Wanjiku #:

I use this and it works:

int a=0;

int b=20;

iHighest(NULL,PERIOD_M5,MODE_HIGH,b,a);


a and b should be integers representing the count of the bars with the latest bar being 0.

Thanks Faith!