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 Lele2k24, Yesterday, 11:24 AM
|
8 responses
27 views
0 likes
|
Last Post
by Lele2k24
Today, 11:00 AM
|
||
Started by Padan, Today, 02:02 AM
|
4 responses
15 views
0 likes
|
Last Post
by Padan
Today, 10:46 AM
|
||
Started by kramnor2001, Yesterday, 02:30 PM
|
4 responses
24 views
0 likes
|
Last Post
by bltdavid
Today, 10:44 AM
|
||
Started by eduardodipp7, Today, 10:29 AM
|
0 responses
2 views
0 likes
|
Last Post
by eduardodipp7
Today, 10:29 AM
|
||
Started by AgriTrdr, 07-16-2023, 12:54 PM
|
39 responses
272 views
0 likes
|
Last Post
by f.saeidi
Today, 10:23 AM
|
Leave a comment: