Sharp the Slope of the SPY indicator?

gravity2726

Member
VIP
Hi Team, I am using the above SPY EMA indicator, Is there a way to sharpen the edges of this ema

Code:
#
# EMA of SPY on Any Chart
# Assembled by BenTen at useThinkScript.com
#

def spy_price = close("SPY");
input length = 9;
input displace = 0;

plot AvgExp = ExpAverage(spy_price[-displace], length);
AvgExp.SetDefaultColor(GetColor(1));

jW3I8sv.png
 

rad14733

Well-known member
VIP
@gravity2726 My suggestion would be to try a different moving average type... Perhaps Wilders, Hull, or Weighted... I'm not sure if Variable would be a good option or not, but might also be worth trying... The trick is to use what gives you the results you desire... Your only other option would be to reduce the length of lookback to 8 or 5...
 

Similar threads

Top