Any idea what could be the issue?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Strategy not working on live
Collapse
X
-
Strategy not working on live
I've a strategy that when I enable it I see all the previous trades that met the conditions in the chart. However, those trades do not get triggered when I run the strategy on a live chart.
Any idea what could be the issue?Tags: None
-
It's hard to say without seeing code.. I have a few strategies running ok..
Did you use the Strategy Builder? if so ..it should be fine.. Just check in Control Center/Strategies(TAB) that the box is ticked for that chart.
If so might be something to do with how the OnBarUpdate() Method is initially set up.
things like..
if (BarsInProgress != 0)
return;
if (CurrentBars[0] < 20)
return;
Maybe add some Print() statements to see where the code flows too...look at the Output Window ..
Regards
traderkawk
-
Hello ark321,
Thanks for your post.
Is the strategy yellow in the Strategies tab of the Control Center and using the Wait Until Flat start behavior?
If the strategy is green in the Strategies tab of the Control Center then it would be allowed to place trades.
When a strategy is yellow (or orange on some monitors) in the Strategies tab of the Control Center, this means that the strategy entered a historical (theoretical) position in the historical data that has been loaded. It also means that you have "Wait until flat" selected for the 'Start behavior' option in the strategy parameters. All positions must be flat before real-time orders will begin.
See the help guide documentation and forum thread below for more information.
Strategy vs. Account Position — https://ninjatrader.com/support/help..._account_p.htm
Start Behaviors — https://ninjatrader.com/support/help..._positions.htm
Forum thread - https://ninjatrader.com/support/foru...ion#post811541
Are you seeing the order submission methods being hit when using debugging prints in the strategy?
If you enable TraceOrders, does TraceOrders report any ignored orders?
Below is a link to a forum post that demonstrates how to use prints to understand behavior.
https://ninjatrader.com/support/foru...121#post791121
I look forward to assisting further
<span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by NullPointStrategies, Yesterday, 05:17 AM
|
0 responses
54 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
130 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
72 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
44 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
49 views
0 likes
|
Last Post
|

Comment