Testing
//@version=2 strategy("Yussef Stochastics", overlay=true) length = input(14, minval=1) OverBought = input(80) OverSold = input(20) smoothK = 3 smoothD = 3 k = sma(stoch(close, high, low, length), smoothK) d = sma(k, smoothD) if (not na(k) and not na(d)) if (crossover(k,d) and k < OverSold) strategy.entry("BUY", strategy.long, comment="BUY") if (crossunder(k,d) and k > OverBought) strategy.entry("SELL", strategy.short, comment="SELL") //plot(strategy.equity, title="equity", color=red, linewidth=2, style=areabr)