EMA Cross
EMA Cross is a strategy that trades EURUSD on 15-minute bars.
core language
strategy "EMA Cross"market: EURUSDbars: 15minput fast = 20input slow = 50when crosses_above(ema(close, fast), ema(close, slow)):buy risk: 1%, stop: 25 pips, target: 2Rwhen crosses_below(ema(close, fast), ema(close, slow)):close_allSample data. Not a result. The real AlgoBarsX engine ran this exact script on made-up bars, and this replays what it drew and did. It shows no profit or loss, and it says nothing about how the script would do in a real market.
Replay of this script on 150 sample bars: 1 trade.
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.