I can provide the exact formula, I just do not know where to place it in the process. Thank you.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Indicator language Help
Collapse
X
-
Indicator language Help
Hello, I used some indicators on another platform that I would like to use on NT7 as well. However, I cannot figure out the codes or where to place them when creating the indicator from scratch? Could someone please help me?
I can provide the exact formula, I just do not know where to place it in the process. Thank you.Tags: None
-
garofjm, to get started you would want to work with the indicator wizard setting up the 'core' skeleton of your new script. You can start this process via Tools > New NinjaScript > Indicator
To get a feeling for the framework you're then operating in, I would highly suggest to step through those tutorials here - http://www.ninjatrader.com/support/h.../tutorials.htm
-
Thank you. I have gone through the tutorials, but am stuck on where and how to enter the calculation logic. For example, this is what I am trying to enter.
MovingAverage (open - Close, Bars used in Avg) / MovingAverage (Range, Bars Used in Avg) *50 + 50.
The "Bars Used In Average" will be a default value of 8, but would also like to adjust it if need be. I just cannot figure out where to put these codes in ,if I can put it all together like above, or the specific "codes" that NT7 uses. Can you help? Thank you.
Justin
Comment
-
You would need to use the NinjaScript specific syntax NT7 would use and 'understand'. The OnBarUpdate() section is where you would enter logic you would want to see processed on every bar going from left to right.
User inputs for your script to control parameters 'on the fly' from the UI could be of course created as well - http://www.ninjatrader.com/support/f...ead.php?t=5782
The basic moving average would be called with this syntax - SMA(Close, 50)[0] > gives you the most recent value of the MA.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
576 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
334 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
553 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
551 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment