
Die EMA Gold Cross Short Line Trading Strategy ist eine Short Line Trading Strategie, die auf EMA-Indikatoren basiert. Sie verwendet EMA-Linien mit unterschiedlichen Perioden, um Gold- und Deckvorkaufsignale zu bestimmen. Die kurze EMA-Linien dienen als Einstiegssignale und die langen EMA-Linien als Stop-Loss-Signale.
Die Strategie verwendet 4 EMA-Mittellinien mit verschiedenen Perioden, nämlich die EMA-Linien mit 9 Perioden, 26 Perioden, 100 Perioden und 55 Perioden. Das Eintrittssignal ist ein Plus, wenn das EMA-Linien mit 9 Perioden mit 26 Perioden durchschritten sind. Das Stop-Loss-Exit-Signal ist ein Ausgleich, wenn das EMA mit 100 Perioden unterhalb der EMA-Linien mit 55 Perioden durchschritten ist.
Die EMA-Gold-Cross-Short-Line-Trading-Strategie zeichnet sich insgesamt durch einfache Bedienbarkeit und schnelle Reaktion aus. Durch Parameteroptimierung und Signalfilterung kann die Stabilität und die Ertragslage weiter verbessert werden. Die Kontrolle der Händler über den Short-Line-Handel stellt jedoch auch höhere Anforderungen.
/*backtest
start: 2023-12-07 00:00:00
end: 2023-12-14 00:00:00
period: 1m
basePeriod: 1m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © YukalMoon
//@version=5
strategy(title="EMA SCALPEUR", overlay=true, initial_capital = 1000)
//// input controls
EMA_L = input.int (title = "EMA_L", defval = 9, minval = 1, maxval = 100, step =1)
EMA_L2 = input.int (title = "EMA_L2", defval = 26, minval = 1, maxval = 100, step =1)
EMA_S = input.int (title = "EMA_S", defval = 100, minval = 1, maxval = 100, step =1)
EMA_S2 = input.int (title = "EMA_S2", defval = 55, minval = 1, maxval = 100, step =1)
/// mise en place de ema
shortest = ta.ema(close, 9)
short = ta.ema(close, 26)
longer = ta.ema(close, 100)
longest = ta.ema(close, 55)
plot(shortest, color = color.red)
plot(short, color = color.orange)
plot(longer, color = color.aqua)
plot(longest, color = color.yellow)
plot(close)
//// trading indicators
EMA1 = ta.ema (close,EMA_L)
EMA2 = ta.ema (close,EMA_L2)
EMA3 = ta.ema (close, EMA_S)
EMA4 = ta.ema (close, EMA_S2)
buy = ta.crossover(EMA1, EMA2)
//sell = ta.crossunder(EMA1, EMA2)
buyexit = ta.crossunder(EMA3, EMA4)
//sellexit = ta.crossover(EMA3, EMA4)
/////strategy
strategy.entry ("long", strategy.short, when = buy, comment = "ENTER-SHORT")
//strategy.entry ("short", strategy.short, when = sell, comment = "ENTER-SHORT")
///// market exit
strategy.close ("long", when = buyexit, comment = "EXIT-SHORT")
//strategy.close ("short", when = sellexit, comment = "EXIT-SHORT")