majestros

Dax ema stochastic trailing points

685 4 48
A strategy for the Dax             using ema stochastic and trail_points =40
Remove from Favorite Scripts Add to Favorite Scripts
//@version=2
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)
        strategy.exit("StochSE",trail_points=40)

//plot(strategy.equity, title="equity", color=red, linewidth=2, style=areabr)
Does this strategy repaint?
Reply
Repaint how? Do you mean incorporate new data as time goes on? I'm sorry I'm new to pine script. How do I do that?
Reply
Entity majestros
Repaint = signals disappear after a certain amount of candles thus difficult to properly backtest. Also The results are misleading with Heikin Ashi candles selected. If you strategy works on normal candles then you have a winner
Reply
I don't think it repaints and it works on normal candles as well
Reply
English
English (UK)
English (IN)
Deutsch
Français
Español
Italiano
Polski
Türkçe
Русский
Português
Bahasa Indonesia
Bahasa Melayu
ภาษาไทย
Tiếng Việt
日本語
한국어
简体
台灣
Home Stock Screener Forex Signal Finder Cryptocurrency Signal Finder Economic Calendar How It Works Chart Features House Rules Moderators Website & Broker Solutions Widgets Stock Charting Library Feature Request Blog & News FAQ Help & Wiki Twitter
Profile Profile Settings Account and Billing My Support Tickets Contact Support Ideas Published Followers Following Private Messages Chat Sign Out