Trading Bot¶
v.3.1.0.0 Built on Strategy Core

Overview¶
Opens a position when any rule you set is met: the price inside a range, a time of day, or the price up or down by a percentage since the session began.
How it trades¶
- Price range: the close between two prices - a buy range and a sell range.
- Time: the bar closing within a minute after a set buy or sell time.
- Percent: the close up or down by a percentage from the session's first bar or the previous close - traded with the move (Follow) or against it (Fade).
- How many entries a window allows is the core's Subsessions trade limit.
Parameters¶
| Parameter | Default | What it does |
|---|---|---|
| Buy range from | 0 | A long when the close is between Buy range from and Buy range to. 0 = off. |
| Buy range to | 0 | The other end of the buy range. 0 = off. |
| Sell range from | 0 | A short when the close is between Sell range from and Sell range to. 0 = off. |
| Sell range to | 0 | The other end of the sell range. 0 = off. |
| Buy at a time | Off | A long on the bar closing within a minute after Buy time. How many entries a window allows: the subsessions' Max trades. |
| Buy time | 10:00 | The time of day for the long, in the chart's time zone. |
| Sell at a time | Off | A short on the bar closing within a minute after Sell time. How many entries a window allows: the subsessions' Max trades. |
| Sell time | 10:00 | The time of day for the short, in the chart's time zone. |
| Growth rule | Off | The close up by Growth % from the reference: a long (Follow) or a short (Fade). |
| Growth (%) | 0.5 | How far up from the reference, in percent. |
| Drop rule | Off | The close down by Drop % from the reference: a short (Follow) or a long (Fade). |
| Drop (%) | 0.5 | How far down from the reference, in percent. |
| Percent from | Session first bar | What Growth and Drop are measured from. Session first bar: its close. Prior close: the previous session's last close - the gap counts too. |
| Percent mode | Follow | Follow: trade with the move - up a long, down a short. Fade: against it - up a short, down a long, on the pullback. |
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 |
| Stop loss | Mode | Ticks |
| Stop loss | Ticks | 40 |
| Profit target | Mode | Ticks |
| Profit target | Ticks | 80 |
| NinjaTrader | Exit on session close | On |
| NinjaTrader | Exit on session close (s) | 30 |
| Money management (off) | Daily loss | 500 |
| Money management (off) | Daily profit | 500 |
Version history¶
v.3.1.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.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.
- Added: Percent from and Follow / Fade.
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.1.0.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.1.0.0 - May 28, 2025
- Added ROI function for trade exit.
- Added session end position closing function.
- Added descriptive names to exit orders for better understanding of position closure conditions.
- Sort properties.
v.1.0.1.2 - July 25, 2024
- Optimized code.
- Improved functions for raising the position after a connection is broken.
v.1.0.1.1 - Mar 14, 2024
- Improved conditions for closing a position when the daily loss or profit is reached.
- Changed parameter determining the priority of strategy position or account position.
- Fixed the problem of strategy transition to the next state while placing an entry order.
v.1.0.1.0 - Dec 24, 2023
- Improved conditions for partial fulfillment of orders.
- Improved the function of raising the position after connection loss.
v.1.0.0.9 - Dec 1, 2023
- Improved conditions for partial fulfillment of orders.
- Improved the function of raising the position after connection loss.
- Added functions for order execution log.
v.1.0.0.8 - Nov 12, 2023
- Improved trading session time.
- Improved the function of raising the position after connection loss.
v.1.0.0.7 - Sep 30, 2023
- Improved the function of raising the position after connection loss.
v.1.0.0.6 - Sep 5, 2023
- Added function of raising the position after connection loss.
v.1.0.0.5 - Sep 4, 2023
- Added additional setting for specifying the trading session.
- Updated the manual for the bot.
- Daily profit and drawdown functions can be used in backtest.