Download MetaTrader 5

Metastock to metatrader 4

To add comments, please log in or register
Do you want to write a technical indicator? Find solution in MQL5 Reference!
Yasin İPEK
24
Yasin İPEK 2015.09.25 19:07 

Metastock formula:

HHV(C,8)

 please mql4 code. 

rod178
273
rod178 2015.09.26 16:13  
JC
1456
JC 2015.09.26 16: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.

Yasin İPEK
24
Yasin İPEK 2015.09.26 19:35  
thank you jjc
Yasin İPEK
24
Yasin İPEK 2015.09.26 19:35  
hassiktir rod178
To add comments, please log in or register