Metastock to metatrader 4

 

Metastock formula:

HHV(C,8)

 please mql4 code. 

 
 
yasinipek:

Metastock formula:

HHV(C,8)

 please mql4 code. 

Looks like:

Close[iHighest(NULL, 0, MODE_CLOSE, 8, 0)]

... i.e. the highest of the last 8 close values. iHighest() returns the index (0-7) of the bar containing the highest close; the Close[] array then provides the closing price for the bar identified.

 
thank you jjc
 
hassiktir rod178
Reason: