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");