HI @SleepyZ
As you helped to create vertical lines for MACD crossover (link for reference), can you please help me to create vertical lines for Awesome oscillator? Thanks
https://usethinkscript.com/threads/draw-vertical-line-for-macd-crossover.9318/#post-149337
As you helped to create vertical lines for MACD crossover (link for reference), can you please help me to create vertical lines for Awesome oscillator? Thanks
https://usethinkscript.com/threads/draw-vertical-line-for-macd-crossover.9318/#post-149337
Code:
declare lower;
declare zerobase;
plot ZeroLine = 0;
ZeroLine.SetDefaultColor(GetColor(5));
plot AO1 = Average(hl2, 5) - Average(hl2, 34);
AO1.SetPaintingStrategy(PaintingStrategy.LINE);
AO1.SetLineWeight(3);
AO1.AssignValueColor(if AO1 > AO1[1] then Color.GREEN else Color.RED);