I replaced the stop limit order with a market order and ran the strategy again. It still makes trades but no trades show on the chart.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Stop Limit Order Places Trades -- Not Showing On Chart
Collapse
X
-
Stop Limit Order Places Trades -- Not Showing On Chart
I have a stop limit order in a strategy that places trades on playback, but no trades are showing on the chart. Is this a data problem? The instrument is identified for the data series and the same in the strategy settings. I reloaded historical data for the chart and trades still don't show on the chart when running.
I replaced the stop limit order with a market order and ran the strategy again. It still makes trades but no trades show on the chart.Last edited by ronaldgreene828; 09-01-2021, 10:44 PM.Tags: None
-
Hello ronaldgreene828,
Thank you for your post.
To clarify, are you seeing that the strategy has made trades in the Strategy Performance but none are showing on the chart, or does the Strategy Performance state 0 trades as well? (Right click on chart > Strategy Performance > Real Time & Historical).
Do historical orders show on the chart but no trades appear once playback has commenced?
Are you using Historical or Market Replay data in Playback?
The first thing I would recommend would be to turn on the Order Trace function:
Strategy Builder > Default Properties > More Properties > Trace Orders, or:
if (State == State.SetDefaults)
{
TraceOrders = true;
}
Once you then recompile the strategy, you can open a new NinjaScript Output window under New > NinjaScript Output. This will print a log of any orders submitted by the strategy during while it's running, along with any ignored orders. You can then look through and see what may be occurring.
Here is a link to our help guide that goes into more detail on tracing orders:
https://ninjatrader.com/support/help...aceorders2.htm
Trace orders alone may not give you the full picture of whether or not a trade should have been entered on a given bar, so adding prints to your strategy that will show in the NinjaScript Output window, with information on what the variables you're using for your conditions are on a particular bar, can be helpful.
This forum post goes into great detail on how to use prints to help figure out where issues may stem from — this should get you going in the correct direction. You can even add these using the Strategy Builder.
https://ninjatrader.com/support/foru...ns-not-working
If you run into issues like we saw here, the above information will allow you to print out all values used in the condition in question that may be evaluating differently. With the printout information you can assess what is different between the two. If you're unsure what the prints are telling you, I'm happy to look over them to assist.
Please let us know if we may be of further assistance to you.
-
Thanks very much for the information. It turned out to be something very simple. I had another chart with a strategy enabled not on screen and it was placing trades. This information will no doubt be useful in the future.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by NullPointStrategies, 03-13-2026, 05:17 AM
|
0 responses
88 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
151 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
80 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
53 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
62 views
0 likes
|
Last Post
|

Comment