PennyFlipper101
New member
Can someone help me get this chart bubble plotted on the chart I keep on getting this error,
"AddChartBubble has void return value and can't be used at 11:18"
"Expected double at 11:6"
"AddChartBubble has void return value and can't be used at 11:18"
"Expected double at 11:6"
Code:
def ema1 = ExpAverage(close, 20);
def ema2 = ExpAverage(close, 50);
def ema3 = ExpAverage(close, 50);
def ema4 = ExpAverage(close, 200);
def distance1 = (ema1-ema2);
def distance2 = (ema3-ema4);
def zeroline = 0;
def condition1 = distance2 crosses above distance1;
plot BuySignal = AddChartBubble(condition1,open,"Buy",color.LIGHT_GREEN,yes);