Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Strategy Builder Strategy Not Working
Collapse
X
-
Strategy Builder Strategy Not Working
I have a very simple strategy where I want to take a long trade if volume and ADL is increasing. How come it's not executing my trade?
Tags: None
-
Hello ruudawakening,
To confirm you have two conditions in the condition set, the first using Misc > Rising with the Series set to Value equals Misc > True, and the second using Misc > Rising with the Series set to Indicators > ADL Equals Misc > True?
For the action you are submitting a market order with Order management > Enter a long position?
If the strategy is applied to a chart, is there data with new bars appearing on the chart the Strategy is applied to?
Is the strategy showing as enabled on the Strategies tab of the Control Center?
If the strategy is in the Strategy Analyzer, is there data appearing on the Chart Display of the Strategy Analyzer?
Importantly, are there errors appearing on the Log tab of the Control Center?
Try testing the Sample MA Crossover strategy included with NinjaTrader on the same chart or Strategy Analyzer using the same instrument, bar type, interval, and date range.
Do you see results with the Sample MA Crossover strategy? (This would confirm for us data is available and the issue is with the logic in the custom script)
If the strategy is getting data and the strategy is enabled or a backtest is run with no errors in the Log tab of the Control Center, and the Sample MA Crossover is returning results, then would likely indicate the logic conditions in the custom strategy did not evaluate as true or orders are being ignored or cancelled.
In order to better understand how the code is working, it will be necessary to use Print to see how the conditions are evaluating and enable TraceOrders to see if orders are being submitted, ignored, rejected, or cancelled.
Below is a link to a support article that demonstrates using prints to understand behavior and includes a link to a video recorded using the Strategy Builder to add prints.
Enable TraceOrders, print the time of the bar and all values used in the conditions that submit entry orders. Include labels for all values and comparison operators.
Let me know if you need any assistance creating a print or enabling TraceOrders.
Save the output from the output window to a text file and provide this with your reply.
I'll be happy to assist with analyzing the output.Chelsea B.NinjaTrader Customer Service
-
Thanks, I figured out what I was doing wrong. What would I do if I wanted my strategy to only take a trade within the first 3 bottom candles of a fractal?
Comment
-
Thanks, I was able to accomplish something similar another way. Is there any reason why a strategy would execute 2 orders instead of 1? This only happened once yesterday, but you would think that it would be more reliable. One of the trades had the TP and Stop that the Strategy includes, and the duplicate trade did not. I have the strategy set to on the bar close.
Comment
-
Hello ruudawakening,
The custom logic you have coded in the script may have submitted multiple orders, or the quantity of an order may have been a quantity of 2.
The way to find out why the script is behaving as it is, is to enable TraceOrders and add prints as directed in post # 2.Chelsea B.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by NullPointStrategies, Yesterday, 05:17 AM
|
0 responses
58 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
133 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
73 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
45 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
50 views
0 likes
|
Last Post
|

Comment