Coverage-Aware Scalper

Coverage-Aware Scalper is a strategy that trades EURUSD on 10-tick range bars. It holds at most 1 open trade.

renko, heikin ashi, x-ray

coverage-aware-scalper.abx
1strategy "Coverage-Aware Scalper"
2market: EURUSD
3bars: range(10)
4max_open: 1
5
6coverage = data.coverage(EURUSD, bars: range(10))
7enough_history = coverage.exact and coverage.bars >= 5000
8
9when enough_history and crosses_above(close, ema(close, 34)):
10buy risk: 0.5%, stop: 8 pips, target: 1.5R
11
12when enough_history and crosses_below(close, ema(close, 34)):
13sell risk: 0.5%, stop: 8 pips, target: 1.5R
14
15on start:
16log "Data from {coverage.from} to {coverage.to}, {coverage.bars} bars from {coverage.source}"
What this script says

Coverage-Aware Scalper is a strategy that trades EURUSD on 10-tick range bars. It holds at most 1 open trade.

It calculates coverage as the data.coverage (symbol EURUSD, bars the range (size 10)) and enough_history as whether coverage.exact and coverage.bars is at or above 5000.

When enough_history and the close crosses above the 34-bar EMA of the close, it buys at market, risking 0.5% of the balance, with a stop 8 pips from the entry and with a target 1.5R from the entry.

When enough_history and the close crosses below the 34-bar EMA of the close, it sells at market, risking 0.5% of the balance, with a stop 8 pips from the entry and with a target 1.5R from the entry.

When the script starts, it logs "Data from {coverage.from} to {coverage.to}, {coverage.bars} bars from {coverage.source}".

Try this in the Terminal. AlgoBars is free: $0 a month, no card needed.

Create my free account