- Why? Is it a bug?
- Indicator Line Plotting Question Continue!
- Need help indentifying indicator
Hi,LaYsX
Your code is wrong.Please check iMA function definition.
Right code is here.
iO = iMA( NULL, 0, 1, 0, 0, PRICE_OPEN, iPos );
iH = iMA( NULL, 0, 1, 0, 0, PRICE_HIGH, iPos );
iL = iMA( NULL, 0, 1, 0, 0, PRICE_LOW, iPos );
iC = iMA( NULL, 0, 1, 0, 0, PRICE_CLOSE, iPos );
(ref.
MODE_OPEN 0 Open price.
MODE_LOW 1 Low price.
MODE_HIGH 2 High price.
MODE_CLOSE 3 Close price.
PRICE_CLOSE 0 Close price.
PRICE_OPEN 1 Open price.
PRICE_HIGH 2 High price.
PRICE_LOW 3 Low price.
Hi,LaYsX
Your code is wrong.Please check iMA function definition.
Right code is here.
iO = iMA( NULL, 0, 1, 0, 0, PRICE_OPEN, iPos );
iH = iMA( NULL, 0, 1, 0, 0, PRICE_HIGH, iPos );
iL = iMA( NULL, 0, 1, 0, 0, PRICE_LOW, iPos );
iC = iMA( NULL, 0, 1, 0, 0, PRICE_CLOSE, iPos );
(ref.
MODE_OPEN 0 Open price.
MODE_LOW 1 Low price.
MODE_HIGH 2 High price.
MODE_CLOSE 3 Close price.
PRICE_CLOSE 0 Close price.
PRICE_OPEN 1 Open price.
PRICE_HIGH 2 High price.
PRICE_LOW 3 Low price.
Oh, thank you. I was working on someone elses code when I ran into this. Seems strange that they would have similar definitions (assuming they are arbitrary) and not number them the same. Thank you.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use