Ichimoku Cloud Values Issue

Created at 22 Jul 2014, 23:27
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
JE

JellyShark

Joined 22.07.2014

Ichimoku Cloud Values Issue
22 Jul 2014, 23:27


protected override void OnStart()
{
 ichi = Indicators.IchimokuKinkoHyo(9, 26, 52);
}

protected override void OnTick()
{
 IndicatorDataSeries senkouSpanA = ichi.SenkouSpanA;
 IndicatorDataSeries senkouSpanB = ichi.SenkouSpanB;
 ChartObjects.DrawHorizontalLine("ichiA", senkouSpanA.LastValue, Colors.Red);
 ChartObjects.DrawHorizontalLine("ichiB", senkouSpanB.LastValue, Colors.Blue);
}

I have made this simple cBot just to demonstrate the issue I am having. The result is shown below:

I was expecting the two lines to be lined up with the top and bottom of the cloud. Does anyone know if I'm doing something wrong or if this particular indicator works a bit differently?

Your assistance is appreciated.


@JellyShark
Replies

JellyShark
23 Jul 2014, 01:00

alright I finally figured it out. I didn't realise that the cloud forward predicted so I needed to the value I was using


@JellyShark