Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Indicator Comparing the price of different series
Collapse
X
-
Indicator Comparing the price of different series
Hello, I am not very familiar with NinjaScript. I'm looking for an indicator that draws out an alert when "data 1" and "data2" have moved in a direction more strongly than "data 3" over a set number of bars. Does such a thing exist or will I need to develop my own?Tags: None
-
Hello GiovanniTunk,
Thank you for your post.
I am not aware of an indicator that displays an alert when "data 1" and "data 2" moved in a direction more than "data 3" over a set number of bars. You would need to develop a custom NinjaScript indicator to accomplish this. NinjaScript indicators could be programmed in a NinjaScript Editor window (New > NinjaScript Editor) by right-clicking on the Indicators folder and choosing New Indicator.
I've included some educational resources on C# and creating indicators from the NinjaTrader 7 help guide. NinjaScripts are different between NinjaTrader 7 and NinjaTrader 8, but the concepts are still relevant.
Programming Basics - https://ninjatrader.com/support/help...g_concepts.htm
Developing Indicators - https://ninjatrader.com/support/help...indicators.htm
Indicator tutorials - https://ninjatrader.com/support/help...ndicators2.htm
I am also linking you to the Educational Resources section of the Help Guide in NinjaTrader 8 to help you get started with NinjaScript: https://ninjatrader.com/support/help..._resources.htm
And the MSDN (Microsft Developers Network) C# Language Reference: https://ninjatrader.com/support/help...erence_wip.htm
We also have a webinar on using the NinjaScript Editor.
Live Webinar - https://ninjatrader.com/Webinar/NinjaScript-Editor-401
Recorded Video - https://www.youtube.com/watch?v=BA0W4ECyVdc
Additionally, I would suggest taking a look at the Code Breaking Changes documentation in the NinjaTrader 8 help guide. It provides a high-level overview of the NinjaScript changes you can expect between NinjaTrader 7 and NinjaTrader 8.
Code Breaking Changes - https://ninjatrader.com/support/help...ng_changes.htm
The Strategy Builder could also be used to create conditions and draw objects on a chart instead of place executions. Please see these help guide links for more information about Strategy Builder conditions.
And, here is a link to our publicly available Strategy Builder 301 training video - https://www.youtube.com/watch?v=_KQF2Sv27oE&t=13s
Please let us know if we may assist further.<span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>
- Likes 1
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
44 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
58 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
35 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|
||
|
Started by cmoran13, 04-16-2026, 01:02 PM
|
0 responses
95 views
0 likes
|
Last Post
by cmoran13
04-16-2026, 01:02 PM
|
||
|
Started by PaulMohn, 04-10-2026, 11:11 AM
|
0 responses
59 views
0 likes
|
Last Post
by PaulMohn
04-10-2026, 11:11 AM
|

Comment