Thread: Ask!
View Single Post
  #588 (permalink)  
Old 05-10-2007, 09:01 PM
codersguru's Avatar
codersguru codersguru is offline
Senior Member
 
Join Date: Oct 2005
Posts: 987
codersguru has a spectacular aura aboutcodersguru has a spectacular aura aboutcodersguru has a spectacular aura about
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
Reply With Quote