Skip to main content
This screen is part of the Vole Bot package.
Heikin Ashi Reversal Close leaves a trade early when the Heikin Ashi candles turn against it. Heikin Ashi candles are smoothed candles that make trend changes easier to see. They are the same candles you get when you switch a chart to Heikin Ashi. When a run of them points against your trade, and each one has a real body rather than a tiny one, the bot closes the trade at market. Use it to leave when the trend visibly flips instead of waiting for your stop. A Heikin Ashi candle points against a long when it is red, and against a short when it is green.

When it acts

The rule looks at the candle that has just closed, on every candle while a trade is open.
  • It starts counting when you enter. Candles that closed before your entry never count.
  • It keeps a run count. A candle that points against your trade and has a big enough body adds one. Any other candle sets the count back to zero. That includes a candle of the other colour, a candle with a body that is too small, and a flat candle.
  • When the count reaches the number you set, the bot closes the trade at market.
  • Your exits are checked in a fixed order on each closed candle, and the first one that fires closes the trade. A stop or take profit that the candle has already reached comes first, so if the same candle also hit your stop, the trade closes on the stop and this rule does not fire. This rule comes next, then Close on a Trend Reversal, then Volume Spike Rule. See Exit Rules.
On the policy and instance forms, the rule is listed under Position Modifier in the Pro Exit Modules list, even though it can close a trade.

Settings

Worked example

The numbers below are made up to show how the rule counts. They are not typical or expected results. You hold a long from an entry of 1000 on a made-up symbol. You set Candles against you in a row to 2 and Minimum candle body (% of ATR) to 20. ATR is about 10, so a body needs to reach 2 to count. If candle 6 had also reached your stop, the trade would have closed on the stop instead.
Six Heikin Ashi candles after a long entry. Candles 2, 5 and 6 are red with big bodies. Candle 4 is red with a small body, and candles 1 and 3 are green. The run count goes 0, 1, 0, 0, 1, 2, and the trade closes on candle 6.

The run count in the worked example. Made-up numbers.

Good to know

  • Only whole, closed candles are counted. The rule never acts on a candle that is still forming.
  • The Heikin Ashi candles are the ones on the chart, built from the candle history the bot holds, not a fresh series that starts at your entry. Only the run count starts at your entry.
  • In trade lists, a trade closed by this rule shows the reason Heikin Ashi Reversal. It is not grouped under Reverse Signal.
  • It only closes trades. It never opens one and never moves your stop.