Metastock to metatrader 4

Back to topics list To post a new topic, please log in or register
avatar
3
yasinipek 2015.09.25 21:07
 

Metastock formula:

HHV(C,8)

 please mql4 code. 

avatar
164
rod178 2015.09.26 18:13 #
 
avatar
1316
jjc 2015.09.26 18:17 #
 
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.


avatar
3
yasinipek 2015.09.26 21:35 #
 
thank you jjc
avatar
3
yasinipek 2015.09.26 21:35 #
 
hassiktir rod178
Back to topics list  

To add comments, please log in or register