Download MetaTrader 5
To add comments, please log in or register
Any questions regarding MQL5 Cloud Network? FAQ will help you!
3043788 Schreudering
215
3043788 Schreudering 2014.03.17 11:40 

Hi,

I try to make a EA, but I stuck .

I want to add the formula: (Open+Close+High+Low)/4

It's like the Heiken Ashi bar but the value of it is different.

I attach my tradingsystem (PDF). The profit is good. But when I calculate the formula by my self I lost every time my entry point.

Thanks in advance!

Bastiaan

Files:
qjol
3243
qjol 2014.03.17 13:51  
iMA(Symbol(), Period(), 1, 0, MODE_SMA, PRICE_WEIGHTED, 0);

will give you the result

Keith Watford
Moderator
7982
Keith Watford 2014.03.17 19:27  
qjol:

will give you the result


Doesn't PRICE_WEIGHTED use (H+L+C*2)/4 ?
qjol
3243
qjol 2014.03.17 23:41  

i think it's only if you use greater than 1 period but if you use 1 period it's (H+L+O+C)/4

whroeder1
13641
whroeder1 2014.03.18 00:17  
GumRai: Doesn't PRICE_WEIGHTED use (H+L+C*2)/4 ?
That's what the doc says Average price, (high + low + close + close)/4
James Hodges
2793
James Hodges 2014.03.18 02:01  

PRICE_WEIGHTED does not consider Open. Only (H+L+C+C).

It looks like PRICE_OPEN is the only pre-defined identifier of the ENUM_APPLIED_PRICE enumeration that considers the open.

/
To add comments, please log in or register