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 charlesugo_1, 05-26-2026, 05:03 PM
|
0 responses
59 views
0 likes
|
Last Post
by charlesugo_1
05-26-2026, 05:03 PM
|
||
|
Started by DannyP96, 05-18-2026, 02:38 PM
|
1 response
143 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
161 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|
||
|
Started by CarlTrading, 05-10-2026, 08:12 PM
|
0 responses
97 views
0 likes
|
Last Post
by CarlTrading
05-10-2026, 08:12 PM
|
||
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
276 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|

Comment