Heikin-Ashi Trend

Heikin-Ashi Trend is a strategy that trades BTCUSD on 1-hour Heikin-Ashi bars. It takes long trades only.

renko, heikin ashi, x-ray

heikin-ashi-trend.abx
1strategy "Heikin-Ashi Trend"
2market: BTCUSD
3bars: heikin_ashi(1h)
4direction: long
5
6input slow = 50
7
8when close > open and close[1] > open[1] and close > ema(close, slow):
9buy risk: 1%, stop: lowest(low, 5), target: 3R
10
11when close < open and close[1] < open[1]:
12close_all
What this script says

Heikin-Ashi Trend is a strategy that trades BTCUSD on 1-hour Heikin-Ashi bars. It takes long trades only.

You can change one input: slow (default 50).

When the close is above the open and the previous bar's close is above the previous bar's open and the close is above the EMA of the close over slow bars, it buys at market, risking 1% of the balance, with a stop at the lowest low of the last 5 bars and with a target 3R from the entry.

When the close is below the open and the previous bar's close is below the previous bar's open, it closes all trades.

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

Create my free account