Code for this statement

 

Please state me the mql4 code for this statement.

if ( Highest(Bar, ROCSeries(#Close, 1), 3) < StdDev(Bar, ROCSeries(#Close, 1), 31)) ? then buy.

 
veeps:

if ( Highest(Bar, ROCSeries(#Close, 1), 3) < StdDev(Bar, ROCSeries(#Close, 1), 31)) ? then buy.

Didnt get what you've meant, but as for buy part look at the function OrderSend

PS. If you want to get a good answer, the first thing you should do is ask a correct question.

 
GarF1eld wrote >>

Didnt get what you've meant, but as for buy part look at the function OrderSend

PS. If you want to get a good answer, the first thing you should do is ask a correct question.

Where is iROC custom function ?.

 
veeps wrote >>

Where is iROC custom function ?.

There is not one.

Use iCustom() call to a custom ROC indicator, or write your own calculation.

Reason: