How can i understand why?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Plotting the spread with a strategy: nothing happens
Collapse
X
-
I suggest a clean reinstall. The sample should work. Backup your files and after you uninstall also delete My Documents\NinjaTrader 6.5. This will remove all your NinjaScripts, data, workspaces, templates, etc. When you reinstall please only install back the reference sample script. Try it then and see if it works.Josh P.NinjaTrader Customer Service
Comment
-
Question about StrategyPlot
I have found that if I use SP to plot two identical series (for example the BarsArray[0] is the same as BarsArray[1]), the SP(BarsArray[1]) plots are shifted one full bar late from the correct SP(BarsArray[0]). Based on that, I am very hesitant to use SP for "real" strategies.
Is there any trick to make StrategyPlot behave correctly in multiple instruments or periods? See the very simple attached TEST() strategy.
Thanks!
Dr BenAttached Files
Comment
-
Dr Ben,
It is very clear why this is the case. In BarsInProgress == 0, BarsInProgress 1 has not been updated yet and as such when you access Closes[1][0] you are still accessing the prior close value. There is no trick to this as StrategyPlotting comes with many limitations. NT7 will provide multi-series charting and will be the solution for these requests.Josh P.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
558 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
324 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
101 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
545 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
547 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment