ShinJ
New member
Can you help me to add a line to code, that will signal 7 consecutive closes on one side of the histogram and mark this 7th bar on chart?
Thank you
Thank you
Code:
declare lower;
Input price = close;
Input Fast = 1;
Input Slow = 5;
def FastSMA = Average(Price, Fast);
def SlowSMA = Average(price, Slow);
plot ZeroLine = 0;
plot Diff = FastSMA - SlowSMA;
Diff.SetPaintingStrategy(PaintingStrategy.HISTOGRAM);
Last edited: