For the vertical lines: Is it possible to add 2.0 to the code (different color)?
I would like to see 2.0 as well as 2.5.
I tired to play with it but I can't figure out how to do it.
Thank you,
Don
Here is code for a 2.0 Using Pink and Light Green for the 2.0....if you need an indicator link instead of code, let me know?
##Code: AGAIG-Vertical Lines 2.0 SD
declare upper;
input atrreversal = 2.0;
def priceh = MovingAverage(AverageType.EXPONENTIAL, high, 5);
def pricel = MovingAverage(AverageType.EXPONENTIAL, low, 5);
def EIL = ZigZagHighLow("price h" = priceh, "price l" = pricel, "percentage reversal" = .01, "absolute reversal" = .05, "atr length" = 5, "atr reversal" = atrreversal).lastL;
def EIH = ZigZagHighLow("price h" = priceh, "price l" = pricel, "percentage reversal" = .01, "absolute reversal" = .05, "atr length" = 5, "atr reversal" = atrreversal).lastH;
DEF signaldown = !isNAN(EIH);
AddVerticalLine(signaldown, "EXT UP +2.0 SD", Color.Pink);
Alert(signaldown, "Price crossing above +2.0 SD", Alert.Bar, Sound.Ring);
DEF signalrevBot = !isNaN(EIL);
AddVerticalLine(signalrevBot, "EXT DOWN -2.0 SD", Color.Light_Green);
Alert(signalrevbot, "Price crossing below -2.0 SD", Alert.Bar, Sound.Ring);
#End Code