This is a new indicator to complement my other indicators. This is a Transition Indicator. I use a black background and made both Upper and Lower Transition White. These can be changed to fit personal likes. Here is the indicator code:
Code:
#CSR Buy/Sell Transition Vertical Filter Lines
#Note: These will repaint
#Developed 5-22-23 First Edition by Charles S. Ricks
declare upper;
input atrreversal = 2.0;#Hint atrreversal: Turn down for more entries, up for less entries. Purple signal indicates low point reversal and close approaching Kijun. Orange signal indicates the price is crossing the Kijun. Green signal indicates the low of the candle holds over the Kijun. Red signal means reversal at a high point.
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 tenkan_period = 9;
def kijun_period = 26;
def Kijun = (Highest(high, kijun_period) + Lowest(low, kijun_period)) / 2;
def avgPerc = ((Kijun - close) / Kijun) * 100;
plot signal = !isNaN(EIL) within 15 bars and low < Kijun and avgPerc < 15 and avgPerc > 0 and avgPerc[1] < avgPerc;
plot signaldown = !isNAN(EIH);
AddVerticalLine(!isNAN(EIH),"Transition Short",color.WHITE, yes);
plot signalup = !isNaN(EIL);
AddVerticalLine(!isNAN(EIL), "Transition Long", Color.White, yes);
#End Code
Last edited by a moderator: