Download MetaTrader 5
To add comments, please log in or register
MQL5 Reference is available in 8 languages. Learn MQL5 in the language that suits you best!
ichitrader 2016.10.10 11:48 

I am returning the value of the Ichimoku indicator and want to be able to look at the data in the chinkou span one step back and one step forward of what is the default. So the 2 points on either side is what I wanted to retrieve.

The chinkou span is a lagging indicator which is 26 positions behind. So I essentially want price data from 25 and 27 as 26 is the default. How can I return this data?

    IchChin =  iCustom(NULL,0,"Ichimoku",9,26,52,4,26); //ChinKou Span
    IchChin25 =  iCustom(NULL,0,"Ichimoku",9,26,52,4,25); //ChinKou Span - one step before default - always returns 0 ??
    IchChin27 =  iCustom(NULL,0,"Ichimoku",9,26,52,4,27); //ChinKou Span - one step after default 
Keith Watford
Keith Watford 2016.10.10 12:20  
You cannot look forward for the chikou. With the default 26, it is simply the close price shifted 26 bars back. 25 doesn't exist.
To add comments, please log in or register