Thread
:
Ask!
View Single Post
#
588
(
permalink
)
05-10-2007, 09:01 PM
codersguru
Senior Member
Join Date: Oct 2005
Posts: 987
Quote:
Originally Posted by
MaanOO
Why this returns 0.
Code:
iMA(NULL,0,10,-3,MODE_EMA,PRICE_HIGH,1);
Thanks.
Because by this code you want to get 2 bars into the future.
-3 +1 = -2 (-2 means two bars into the future).
__________________
Hope it helps
!
Coders' Guru
Senior MQL programmer:
www.xpworx.com/custom.htm
codersguru
View Public Profile
Send a private message to codersguru
Find all posts by codersguru