Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Link Alert to Drawing tool automatically
Collapse
X
-
Link Alert to Drawing tool automatically
Hi, very inexperienced with indicator development but I wanted to be able to save a drawing tool setup with Alert conditions on it so I don't have to enter them manually every time. For example anytime I drew a specific kind of trendline such as F4, it would automatically have a specific Alert - Submit MIT order condition attached to it, to avoid having to go in and insert it manually every time. Any suggestions of where to start would be appreciated.Tags: None
-
Hello delux9,
Welcome to the NinjaTrader forums!
Below is a link to a forum thread with some helpful starting resources on C# and NinjaScript.
That functionality would have to already exist with the system built in drawing tools to be able to use the those particular hot keys.
However, you can make a script that responds to key presses, and trigger actions like alerts and drawing objects.
A heads up, working with key presses is intermediatory in coding proficiency.
Below are some links to examples of capturing keypresses.
This is a conversion of the a1ChartNotes indicator by monpere. Chart Notes v3 Add notes to your chart. For example, identify a chart template, or put specific notes on how to trade a particular chart, or instrument, etc. – Added selectable fonts and text color – Control Shift toggles compact/expanded visibility (number of lines shown) […]
An example of initiating a drawing tool.
mahToolBar – Version 6 This version updates the code to includes several new icons for NT8 default Drawing Tools plus additional chart management tools. The mahToolBar6 indicator installs drawing tools icons in the NinjaTrader 8 Main Toolbar for a one-click drawing. The early version of this indicator with selected tools used sample scripts from several […]
And a link to the help guide on Alert().
Chelsea B.NinjaTrader Customer Service
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
64 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
93 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
48 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|
||
|
Started by cmoran13, 04-16-2026, 01:02 PM
|
0 responses
106 views
0 likes
|
Last Post
by cmoran13
04-16-2026, 01:02 PM
|
||
|
Started by PaulMohn, 04-10-2026, 11:11 AM
|
0 responses
63 views
0 likes
|
Last Post
by PaulMohn
04-10-2026, 11:11 AM
|

Comment