Tick Scalper

Tick Scalper is a strategy that trades XAUUSD on 1-minute bars, checking its rules on every price change. It holds at most 1 open trade.

inside the bar

tick-scalper.abx
1strategy "Tick Scalper"
2market: XAUUSD
3bars: 1m
4evaluate: tick
5max_open: 1
6
7input max_stretch = 2.0
8
9when crosses_above(close, vwap()) once per bar cooldown 2 bars:
10buy risk: 0.5%, stop: 30 points, target: 1.5R, ghost: true
11
12on tick:
13if not bar.confirmed and close < vwap() - atr(14) * max_stretch:
14close_all side: long
What this script says

Tick Scalper is a strategy that trades XAUUSD on 1-minute bars, checking its rules on every price change. It holds at most 1 open trade.

You can change one input: max_stretch (default 2.0).

When the close crosses above VWAP (at most once per bar and waiting at least 2 bars between actions), it buys at market, risking 0.5% of the balance, with a stop 30 points from the entry, with a target 1.5R from the entry and kept hidden from the broker until it triggers.

On every price change, it checks whether not the bar has closed and the close is below VWAP minus the 14-bar ATR × max_stretch and, if so, closes all long trades.

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

Create my free account