PT_Scalper
Member
Hi all,
I modified a few studies to create this;
Can anyone help? I prefer the vertical line as it's much easier to see on the chart.
Thanks,
EarlyAMTrader
I modified a few studies to create this;
I'm really struggling trying to figure out how to add an arrow or vertical line for each of the conditions with the matching colors.def EMA21 = ExpAverage(close, 21);
def EMA50 = ExpAverage(close, 50);
def EMA200 = ExpAverage(close, 200);
def Up2150200 = EMA21 > EMA50 and EMA21 > EMA200 and EMA50 > EMA200;
def Up5021200 = EMA21 < EMA50 and EMA21 > EMA200 and EMA50 > EMA200;
def Up5020021 = EMA21 < EMA50 and EMA21 < EMA200 and EMA50 > EMA200;
def Up2120050 = EMA21 > EMA50 and EMA21 > EMA200 and EMA50 < EMA200;
def Up2002150 = EMA21 > EMA50 and EMA21 < EMA200 and EMA50 < EMA200;
def Up2005021 = EMA21 < EMA50 and EMA21 < EMA200 and EMA50 < EMA200;
AddLabel(Up2150200, “Strong Bullish”, Color.DARK_GREEN);
AddLabel(Up5021200, “Bearish > 200”, Color.CYAN);
AddLabel(Up5020021, “Bearish > 200”, Color.DOWNTICK);
AddLabel(Up2120050, “Bullish < 200”, Color.UPTICK);
AddLabel(Up2002150, “Bullish < 200”, Color.ORANGE);
AddLabel(Up2005021, “Strong Bearish”, Color.DARK_RED);
AddLabel(Up2005021, “Strong Bearish”, color.Dark_Red);
Can anyone help? I prefer the vertical line as it's much easier to see on the chart.
Thanks,
EarlyAMTrader
Last edited by a moderator: