Johnman

therebel Magic System

123
Simple programming exercise of the system described by /u/therebel.
Signals MACD crossover on price above and below EMA 200 (blue for longs, red for shorts).
You should wait for the candle to close before considering the signal. And always check the fundamentals.

Risk less than 2% per trade, allow winners to run using a trailing stop.
When the market has proved you wrong exit with out any hesitation. This is key.

Might be useful for someone, but don't take it too seriously. If I might add something, I think a good trailing stop can be the previous candle wick.
Açık kaynak kodlu komut dosyası

Gerçek TradingView ruhuyla, bu betiğin yazarı, yatırımcının anlayabilmesi ve doğrulayabilmesi için onu açık kaynak olarak yayınladı. Yazarın eline sağlık! Bunu ücretsiz olarak kullanabilirsiniz, ancak bu kodun bir yayında yeniden kullanımı Kullanım Koşulları ile yönetilir. Bir grafikte kullanmak için favorilere ekleyebilirsiniz.

Feragatname

Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.

Bu komut dosyasını bir grafikte kullanmak ister misiniz?
// Simple programming exercise as described by therebel
// Signals MACD crossover on price above and below EMA 200

study("therebel Magic System", overlay=true)
movingAverage = ema(close, 200)
color1 = close > movingAverage ? blue : red
[macdLine, signalLine, histLine] = macd(close, 12, 26, 9)
signalUp = macdLine[1] < signalLine[1] and macdLine[0] > signalLine[0] and close > movingAverage
signalDown = macdLine[1] > signalLine[1] and macdLine[0] < signalLine[0] and close < movingAverage
plotshape(signalUp, style=shape.labelup, color=blue)
plotshape(signalDown, style=shape.labeldown, color=red)