Thanks
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Help convert simple Super Trend to Ninja 8
Collapse
X
-
Help convert simple Super Trend to Ninja 8
Can someone help me convert this to zip for Ninja 8. This is a very basic Super Trend that is fine for my purposes. All the others have a ton of other stuff in it. GGTrend101.cs. Happy to share
ThanksTags: None
-
Hello currencychick,
Thanks for your post.
We will leave this thread open for any members that would like to perform that service for you.
An option would be to have a 3rd party programmer convert this for you and if this is of interest we can provide a link to 3rd party programmers in the NinjaTrader Ecosystem that would be able to provide that service.
For your understanding we do not provide code conversion or debugging services.
-
[Gui.Design.DisplayNameAttribute("Dash Style Stop Dots")] Error message saying namespace 'design" doesn't exist. Know I need to add, but seeing conflicting instructions. Can anyone help?
Comment
-
Hello currencychick,
Thanks for your post.
I misread your original post and did not realize you were converting this yourself.
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: http://ninjatrader.com/support/helpG...ng_changes.htm
Some notable items to consider when converting your code will be the following:- Initialization has changed significantly. Initialize() has been replaced with OnStateChange(), which can be used to filter out different stages of the entire life cycle of a script (SetDefaults, Configure, Historical, Realtime, Terminated, etc.) OnStateChange() is fully covered in the Help Guide.
- 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: http://ninjatrader.com/support/helpG..._reference.htm
- In numerous instances, you now have direct access to objects, where in NinjaTrader 7 you had to work with interfaces. For example, rather than the IOrder interface, you now have direct access to an Order object and its related fields. This will require a change in the way items like this are handled in your code.
As always, we are more than happy to help out with tips and advice in this area, although we do not offer full script conversion services.
Regarding the specific question of [Gui.Design.DisplayNameAttribute("Dash Style Stop Dots")] Here are links to the help guide section on attributes for properties:
As a suggestion, take a look at most any NinjaTrader8 indicator and review their properties section. For example in the SMA indicator you would find this:
[Range(1, int.MaxValue), NinjaScriptProperty]
[Display(ResourceType = typeof(Custom.Resource), Name = "Period", GroupName = "NinjaScriptParameters", Order = 0)]
public int Period
{ get; set; }
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
666 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
377 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
110 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
575 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
580 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment