iMA(Symbol(), Period(), 1, 0, MODE_SMA, PRICE_WEIGHTED, 0);
will give you the result
qjol:
will give you the result
Doesn't PRICE_WEIGHTED use (H+L+C*2)/4 ?
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
GumRai: Doesn't PRICE_WEIGHTED use (H+L+C*2)/4 ?
That's what the doc says | Average price, (high + low + close + close)/4 |
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.
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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