Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
to create an NinjaTrader native alert promatically
Collapse
X
-
Tags: None
-
You may find this is what you are looking for: https://ninjatrader.com/support/help.../nt8/alert.htm
Thanks.
-
thanks for the reply. but actually that's not what I'm looking for. I read it but that Alert() only displays alert message upon called.Originally posted by jeronymite View PostYou may find this is what you are looking for: https://ninjatrader.com/support/help.../nt8/alert.htm
Thanks.
I was hoping to set up Ninjatrader native alert with triggering logic configured, so that I don't need to write this triggering logic myself.
Comment
-
Hello leontancfa,
Thanks for your post.
To create alerts programmatically in a custom NinjaScript, you would need to code the logic into your script that triggers the alert to fire and call the Alert() method.
The Strategy Builder could be used to set up the condition(s) to trigger the alert and call the Alert() method. Then, you could click the 'View code' button to see the generated syntax.
See the help guide documentation below for more information.
Alert(): https://ninjatrader.com/support/help.../nt8/alert.htm
Conditions: https://ninjatrader.com/support/help...on_builder.htm
Actions: https://ninjatrader.com/support/help...t8/actions.htm
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>
Comment
-
@NinjaTrader_BrandonH:
This is not a satisfying response as there is no reference at all on any object usable from c#.
There is no place we can find sample on how to set an alert programmaticaly.
There are no reference available on some objects used by the alerts. Condition for exampl, AlertConditionItem is another example.
Comment
-
Hello Philippe56140,
The help guide provides a code example. Scroll to the bottom of the help guide page.
Code:if(RSI(14, 3)[0] >= 20) Alert("myAlert", Priority.High, "Reached threshold", NinjaTrader.Core.Globals.InstallDir+@"\sounds\Aler t1.wav", 10, Brushes.Black, Brushes.Yellow);
Where you have mentioned:
I don't quite understand what this means..There are no reference available on some objects used by the alerts.
Alerts have a string message that appears in the Alerts Log window, and can play a sound. When you say available objects, use ToString() on the object if you want to put text about the object in the message.
That I am aware of, AlertConditionItem is not an object type in NinjaScript.Code:Alert("myAlert", Priority.High, [B]order.ToString()[/B], NinjaTrader.Core.Globals.InstallDir+@"\sounds\Aler t1.wav", 10, Brushes.Black, Brushes.Yellow);
Note, programmatically means programmed with code in C#. There is also the Alerts window, if you want to set up alerts on a chart with a point and click interface.
Chelsea B.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
571 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
330 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
548 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
548 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment