Bar Max and Min

 

Hi ,

I'm new to MT4 and I would ask if it support ( Min(O,C) and Max(O,C) function.
To be more clear:

I need to measure from High to Open for the candle that closed Red OR from High to Close for the candle that closed green.


Thx

 
savio: I'm new to MT4 and I would ask if it support ( Min(O,C) and Max(O,C) function.
  1. Why did you post your MT4 question in the Root / MT5 General section instead of the MQL4 section, (bottom of the Root page?)
              General rules and best pratices of the Forum. - General - MQL5 programming forum

  2. Perhaps you should read the manual.
              Math Functions - MQL4 Reference
 
whroeder1:
  1. Why did you post your MT4 question in the Root / MT5 General section instead of the MQL4 section, (bottom of the Root page?)
              General rules and best pratices of the Forum. - General - MQL5 programming forum

  2. Perhaps you should read the manual.
              Math Functions - MQL4 Reference
Sorry it was by mistake.

And thank you for reply
 
savio:

Hi ,

I'm new to MT4 and I would ask if it support ( Min(O,C) and Max(O,C) function.
To be more clear:

I need to measure from High to Open for the candle that closed Red OR from High to Close for the candle that closed green.


Thx


double top_wick = High[0] - fmax(Open[0],Close[0]);