Dax ema stochastic trailing points

2676 visningar
A strategy for the Dax using ema stochastic and trail_points =40
Skript med en öppen källkod

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

Vill du använda det här skriptet i ett diagram?
strategy("DaxK_Limit", overlay=true)
length = input(14, minval=1)
OverBought = input(52)
OverSold = input(48)
smoothK = 1
smoothD = 3

k = ema(stoch(close, high, low, length), smoothK)
d = ema(k, smoothD)

if (not na(k) and not na(d))
    if (crossover(k,d) and k < OverSold)
        strategy.entry("StochLE", strategy.long)
        strategy.exit("StochLE", trail_points=40)
    if (crossunder(k,d) and k > OverBought)
        strategy.entry("StochSE", strategy.short)

//plot(strategy.equity, title="equity", color=red, linewidth=2, style=areabr)