Stable_Camel

Forex Master (EUR/USD)

ATTENTION:

This is a symmetrical algorithm designed only for trading EUR/USD on the 1h time frame. For other currency pairs and time frames, you need to re-calibrate the RSI-EMAs as well as the profit targets and stop losses.

BACKTEST CONDITIONS:

Initial equity = $100,000 (no leverage)
Order size = 100% of equity
Pyramiding = disabled

TRADING RULES:

Long entry = EMA20(RSI10) cross> 50
Profit limit = 50 pips
Stop loss = 50 pips

Short entry = EMA30(RSI30) cross< 50
Profit limit = 50 pips
Stop loss = 50 pips

Long entry = Short exit
Short entry = long exit

DISCLAIMER: None of my ideas and posts are investment advice. Past performance is not an indication of future results. This strategy was constructed with the benefit of hindsight and its future performance cannot be guaranteed.

Kory Hoang (stably.io)
Skrypt open-source

Zgodnie z prawdziwym duchem TradingView, autor tego skryptu opublikował go jako open-source, aby traderzy mogli go zrozumieć i zweryfikować. Brawo dla autora! Możesz używać go za darmo, ale ponowne wykorzystanie tego kodu w publikacji jest regulowane przez Dobre Praktyki. Możesz go oznaczyć jako ulubione, aby użyć go na wykresie.

Wyłączenie odpowiedzialności

Informacje i publikacje przygotowane przez TradingView lub jego użytkowników, prezentowane na tej stronie, nie stanowią rekomendacji ani porad handlowych, inwestycyjnych i finansowych i nie powinny być w ten sposób traktowane ani wykorzystywane. Więcej informacji na ten temat znajdziesz w naszym Regulaminie.

Chcesz użyć tego skryptu na wykresie?
//@version=2
strategy("FX Master Long/Short", overlay=true)

price = close

long_basis = rsi(price, input(10))
long_rsiema = ema(long_basis, input(20))
short_basis = rsi(price, input(30))
short_rsiema = ema(short_basis, input(30))

long_trigger = input(50)
short_trigger = input(50)

long_profit = input(500)
long_loss = input(500)

short_profit = input(500)
short_loss = input(500)

strategy.entry("enter long", true, when = crossover(long_rsiema, long_trigger))
strategy.exit("exit long", "enter long", profit = long_profit, loss = long_loss)

strategy.entry("enter short", false, when = crossunder(short_rsiema, short_trigger))
strategy.exit("exit short", "enter short", profit = short_profit, loss = short_loss)