Ichimoku lines - Can someone help me with the code.

Questions about MultiCharts and user contributed studies.
melvinmills
Posts: 2
Joined: 19 Dec 2011
Has thanked: 1 time

Ichimoku lines - Can someone help me with the code.

Postby melvinmills » 23 Apr 2015

Someone was kind enough to share this code for the Ichimoku lines.

The Chikou Span (close -26 days) is not showing.

Can someone show me how to add it?

HERE IS THE CODE:

Code: Select all

Inputs: Standard (26), Turning (9), DelayColor (Yellow), ShowDelayLine (False);
Variables: StdLine (0), TurnLine (0), DelayLine (0);
StdLine = (Highest (High, Standard) + Lowest (Low, Standard)) / 2;
TurnLine = (Highest (High, Turning) + Lowest (Low, Turning)) / 2;
Close DelayLine = [Standard];
Plot1 (StdLine, "Standard");
Plot2 (TurnLine, "Turning");
If Close> Then DelayLine
SetPlotcolor (2, Blue)
Else
SetPlotColor (2, DelayColor);
Then if ShowDelayLine
Plot3 [Standard] (Close, "Delayed");

Return to “MultiCharts”