Can someone help translate this to efs:
its vary basic.. i dont want the old one posted while back:
# thinkorswim, inc. (c) 2008
#
declare lower;
input over_bought = 45.0;
input over_sold = -45.0;
input percentDLength = 3;
input percentKLength = 5;
def min_low = lowest(low, percentKLength);
def max_high = highest(high, percentKLength);
def rel_diff = close - (max_high + min_low)/2;
def diff = max_high - min_low;
def avgrel = expaverage(expaverage(rel_diff, percentDLength), percentDLength);
def avgdiff = expaverage(expaverage(diff, percentDLength), percentDLength);
plot SMI = avgrel/(avgdiff/2)*100;
plot AvgSMI = expaverage(smi, percentDLength);
plot overbought = over_bought;
plot oversold = over_sold;
thanks!
its vary basic.. i dont want the old one posted while back:
# thinkorswim, inc. (c) 2008
#
declare lower;
input over_bought = 45.0;
input over_sold = -45.0;
input percentDLength = 3;
input percentKLength = 5;
def min_low = lowest(low, percentKLength);
def max_high = highest(high, percentKLength);
def rel_diff = close - (max_high + min_low)/2;
def diff = max_high - min_low;
def avgrel = expaverage(expaverage(rel_diff, percentDLength), percentDLength);
def avgdiff = expaverage(expaverage(diff, percentDLength), percentDLength);
plot SMI = avgrel/(avgdiff/2)*100;
plot AvgSMI = expaverage(smi, percentDLength);
plot overbought = over_bought;
plot oversold = over_sold;
thanks!
Comment