Bar Analyzer Autostrategy¶
v.3.2.0.0 Built on Strategy Core

Overview¶
Trades the rejection of a big bar: a long lower wick on a big selling bar, confirmed by buyers in the delta and an oversold RSI, is bought; the mirror is sold. The signal is the Bar Analyzer indicator's.
How it trades¶
- A bar bigger than Bar height (or the automatic threshold) with a rejecting wick of at least Min wick % of its body and the body at the far end.
- On the next bar: the delta (session or bar) agrees and the RSI is at or below RSI down for a long, at or above RSI up for a short.
- The signal is read on the last closed bar (Signal bar offset 0).
Parameters¶
| Parameter | Default | What it does |
|---|---|---|
| Signal bar offset (bars) | 0 | Which bar the indicator's signal is read on: 0 = the last closed bar; 2 = the one two bars before it. |
| Custom bar height | On | On: the pattern bar must be taller than Bar height. Off: taller than the average of the bars between the mean and the largest in the loaded history - the indicator works it out. |
| Bar height (ticks) | 60 | With Custom bar height on: the smallest high-low range, in ticks, a pattern bar may have. |
| Min wick (% of body) | 40 | The rejecting wick - the lower one for a long, the upper one for a short - must be at least this share of the body. |
| Min body (% of range) | 25 | The body must be at least this share of the bar's high-low range. |
| RSI up (short at or above) | 60 | A short needs the RSI at or above this on the signal bar. |
| RSI down (long at or below) | 40 | A long needs the RSI at or below this on the signal bar. |
| Strict color | Off | On: a long needs a bearish pattern bar and a short a bullish one - the bar against the move -. Off: either colour; the rejecting wick and the body are measured the same way. |
| Delta | Bar delta | Session cumulative: the session's cumulative delta above zero for a long, below for a short. Bar delta: the signal bar's own delta. Off: no delta condition. |
| RSI period | 14 | The RSI period. |
| RSI smooth | 3 | The RSI smoothing. |
| Min size (ATR) | 0 | The pattern bar must also be at least this many ATRs tall - a size that follows the market's pace. 0 = off. |
| ATR period | 14 | The ATR period for Min size (ATR). |
| Order flow source | Bars | Where the delta comes from. Bars: estimated from each bar by where it closed in its range - fast backtests. Ticks: the real delta of trades at the bid and ask on the 1-tick series - exact, much slower. |
| Tick delta type | Bid ask | With Order flow source Ticks. BidAsk: a trade at the ask is buying, at the bid selling. UpDownTick: a trade above the previous price is buying, below it selling. |
Core settings¶
Order handling, position size, stops and targets, trade management, trading hours, account limits and the ML Engine are core settings - the same in every strategy. Hover a group or a core term for a short explanation.
Strategy Core General & Orders Quantity & Scaling Stop loss & Profit target Trade management Sessions & time Money & News ML Engine Log & Report
Core defaults¶
This strategy starts with these core settings; change any of them in its settings.
| Group | Setting | Default |
|---|---|---|
| NinjaTrader | Calculate | On bar close |
| Quantity | Quantity | 1 |
| General properties | Direction | Both |
| General properties | Stop loss | On |
| Stop loss | Mode | Ticks |
| Stop loss | Ticks | 70 |
| General properties | Profit target | On |
| Profit target | Mode | Ticks |
| Profit target | Ticks | 400 |
| Money management (off) | Daily loss | 1000 |
| Money management (off) | Daily profit | 1000 |
| General properties | Subsessions | On |
| Subsessions | S1 Enable | On |
| Subsessions | S1 Start | 18:00 |
| Subsessions | S1 End | 21:00 |
| Subsessions | S2 Enable | On |
| Subsessions | S2 Start | 00:00 |
| Subsessions | S2 End | 04:00 |
| Subsessions | S3 Enable | On |
| Subsessions | S3 Start | 06:00 |
| Subsessions | S3 End | 14:00 |
| General properties | Days of Week | On |
| NinjaTrader | Exit on session close | Off |
Version history¶
v.3.2.0.0 - October 2026
- Changed: the signal follows NinjaTrader's Calculate setting - On bar close by default; On each tick reads the forming bar.
Earlier versions
v.3.1.0.0 - October 2026
- Added: Order flow source - Bars (default, fast) or Ticks; the tick delta type.
v.3.0.0.0 - October 2026
- Rebuilt on the Strategy Core: orders, sizing, stops and targets, trade management, sessions, limits and the ML Engine are core settings.
v.2.1.0.0 - May 25, 2026
- Direction forecast: added COT (Commitment of Traders) features.
- Added contract quantity forecast module.
v.2.0.0.0 - Mar 9, 2026
- ML Engine filter feature added.
v.1.0.1.1 - Oct 26, 2025
- Trading hours and days logic updated — if all sessions are disabled, the strategy now runs without time restrictions instead of stopping trading.
v.1.0.1.0 - May 20, 2025
- Improved position recovery function.
- Added detailed comments to strategy and indicator code.
v.1.0.0.1
- Improved functions to raise position after connection loss.