Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
StrategyPlot in NT8
Collapse
X
-
Hello Lee,
Thanks for your post.
While I do not have step by step instructions for your on how to convert this snippet, you would be well suited to check out the Series<t> section of the help guide as that replaced the DataSeries objects from NT7. I have included the link to that help guide document below.
https://ninjatrader.com/support/help...s/?seriest.htm
There are a few key items to look for when converting your scripts from NinjaTrader 7 format to NinjaTrader 8, and we keep a Code Breaking Changes table updated in the NinjaTrader 8 Help Guide to assist in identifying changes or new implementations of familiar methods and properties from NinjaTrader 7: https://ninjatrader.com/support/helpGuides/nt8/en-us/?code_breaking_changes.htm
The names of many methods and properties have changed slightly, so you will need to refactor these in your code. The Code Breaking Changes table can make this task much easier, and there is also an alphabetical reference in the Help Guide that can help to find new method/property names: https://ninjatrader.com/support/helpGuides/nt8/en-us/?alphabetical_reference.htm
You may also be interested in the reference sample we have available that demonstrates how to plot from a NinjaScript strategy: https://ninjatrader.com/support/help..._a_ninjasc.htm
Let me know if I can assist with anything else.Last edited by NinjaTrader_JoshG; 01-14-2019, 08:20 AM.
- Likes 1
-
StrategyPlot in NT8
Hi,
I'm trying to convert my NT7 to NT8 and would like to add the plots. In NT7 i used the strategy plot as follows:
protected override void Initialize ()
{
slopePriceLevel1 = new DataSeries(this);
Add(StrategyPlot(0));
StrategyPlot(0).Plots[0].Pen.Color = Color.Blue;
StrategyPlot(0).PanelUI = 2;
...
protected override void OnBarUpdate ()
{
slopePriceLevel1.Set(priceSlopeTrigger1);
StrategyPlot(0).Value.Set(SMA(slopePriceLevel1, 1)[0]);
...
Where slopePriceLevel1 is a parameter and priceSlopeTrigger1 is a data series.
How do I do this in NT8?
Thanks,
LeeTags: None
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Fitspressorest, Today, 01:38 PM
|
0 responses
2 views
0 likes
|
Last Post Today, 01:38 PM | ||
Started by Jonker, Today, 01:19 PM
|
0 responses
2 views
0 likes
|
Last Post
by Jonker
Today, 01:19 PM
|
||
Started by futtrader, Today, 01:16 PM
|
0 responses
6 views
0 likes
|
Last Post
by futtrader
Today, 01:16 PM
|
||
Net Change
by Segwin
Started by Segwin, 05-07-2018, 02:15 PM
|
14 responses
1,791 views
0 likes
|
Last Post
by aligator
Today, 11:47 AM
|
||
Started by Jimmyk, 01-26-2018, 05:19 AM
|
6 responses
844 views
0 likes
|
Last Post
by emuns
Today, 11:27 AM
|
Leave a comment: