EMA Cross
EMA Cross is a strategy that trades EURUSD on 15-minute bars.
core language
1
strategy "EMA Cross"2
market: EURUSD3
bars: 15m4
5
input fast = 206
input slow = 507
8
when crosses_above(ema(close, fast), ema(close, slow)):9
buy risk: 1%, stop: 25 pips, target: 2R10
11
when crosses_below(ema(close, fast), ema(close, slow)):12
close_allWhat this script says
EMA Cross is a strategy that trades EURUSD on 15-minute bars.
You can change 2 inputs: fast (default 20) and slow (default 50).
When the EMA of the close over fast bars crosses above the EMA of the close over slow bars, it buys at market, risking 1% of the balance, with a stop 25 pips from the entry and with a target 2R from the entry.
When the EMA of the close over fast bars crosses below the EMA of the close over slow bars, it closes all trades.