Futures_Beginner
Member
Hello Friends,
I have this code that shows me the difference between EMA and candle close. But this is showing only for the last candle and not on the specific candle I select. How can I make it dynamic to show the value for the candle I select?
def EMA8 = expAverage(close, 8);
def lastprice = close;
def diff = absValue(ema8 - lastprice);
addlabel(yes, diff, COLOR.yellOW);
I have this code that shows me the difference between EMA and candle close. But this is showing only for the last candle and not on the specific candle I select. How can I make it dynamic to show the value for the candle I select?
def EMA8 = expAverage(close, 8);
def lastprice = close;
def diff = absValue(ema8 - lastprice);
addlabel(yes, diff, COLOR.yellOW);