PARAMETER PASS

WHAT PARAMETER CAN BE PASSED INTO FUNCTION Period() e.g is it possible to pass this parameter period(period_H1).or any other way of passing a parameter into it.
[Deleted]

https://docs.mql4.com/constants/timeframes


CB

cloudbreaker wrote >>

https://docs.mql4.com/constants/timeframes

CB

thanks for the quick response but if i pass any of this parameter inside there is an error on compilation--wrong parameter count is display e.g

datetime analysistime2=iTime(Symbol(),PERIOD_H1,0)+0.3*Period(PERIOD_H1)*60;

Period itself does not take any parameter

it returns the current TF period