NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > NinjaScript Development Support > General Programming

General Programming General NinjaScript programming questions.

Reply
 
Thread Tools Display Modes
Old 06-23-2011, 01:36 PM   #1
Zeos6
Senior Member
 
Join Date: Jan 2011
Posts: 294
Thanks: 9
Thanked 22 times in 19 posts
Default Alerts on Lines

Hi,
Is it possible to attach an alert to a line? Yes, I know it can be programmed and I can do this but I wanted to know if this is already built into NT7 and I am missing something. Please let me know. Thank you.

Is it possible to modify the existing built-in line tool to add an alert?
Or, how can I build a custom line tool with alerts and link it inot NT7?
Any info would be gretaly appreciated. Thank you.
Zeos6 is offline  
Reply With Quote
Old 06-23-2011, 01:42 PM   #2
NinjaTrader_RyanM
NinjaTrader Customer Service
 
NinjaTrader_RyanM's Avatar
 
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
Default

Hi Zeos,

This is only available with custom programming, by exposing drawing objects properties using IDrawObject:
http://www.ninjatrader.com/support/h...drawobject.htm
NinjaTrader_RyanM is offline  
Reply With Quote
Old 06-23-2011, 01:47 PM   #3
Zeos6
Senior Member
 
Join Date: Jan 2011
Posts: 294
Thanks: 9
Thanked 22 times in 19 posts
Default

Thanks Ryan. I neeed a little bit more.What part are you answering? Are you saying I can create a custom line tool with alerts using the IDraw object? So would I create an indicator code that exposes the property desired and run it on the chart?
Zeos6 is offline  
Reply With Quote
Old 06-23-2011, 01:54 PM   #4
NinjaTrader_RyanM
NinjaTrader Customer Service
 
NinjaTrader_RyanM's Avatar
 
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
Default

This will be in an indicator or strategy script. You're not creating a new drawing object tool, but rather using NinjaScript to expose properties related to drawing objects. They're identified by the tag, so these can be code placed and manually placed objects.

To see examples and what properties you can expose, use the IDraw page for the specific object you plan to work with.

Horizontal Line:
http://www.ninjatrader.com/support/h...zontalline.htm
Last edited by NinjaTrader_RyanM; 06-23-2011 at 02:13 PM.
NinjaTrader_RyanM is offline  
Reply With Quote
Old 06-23-2011, 02:00 PM   #5
Zeos6
Senior Member
 
Join Date: Jan 2011
Posts: 294
Thanks: 9
Thanked 22 times in 19 posts
Default

Thanks Ryan. What is the IDraw object for line. I find horizontal line, vertical line extended line but not line.
Last edited by Zeos6; 06-23-2011 at 02:13 PM.
Zeos6 is offline  
Reply With Quote
Old 06-23-2011, 04:49 PM   #6
NinjaTrader_RyanM
NinjaTrader Customer Service
 
NinjaTrader_RyanM's Avatar
 
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
Default

Line is Iline.
http://www.ninjatrader.com/support/h.../nt7/iline.htm
NinjaTrader_RyanM is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Label Horizontal/Ray lines with Alerts sam777 Indicator Development 6 01-26-2012 04:45 AM
Alerts -A better way to set price alerts needed djohn Suggestions And Feedback 18 09-09-2011 02:15 PM
Changing the default colors of lines & rays, fib lines, etc joemiami Charting 4 03-28-2011 08:01 AM
Label Horizontal Lines With Alerts and NT7/20 Mike12345 NinjaScript File Sharing Discussion 6 12-12-2010 11:40 AM
Drawing tools for Median Lines - Action Reaction Lines mahlonhersh Charting 3 09-24-2010 01:09 PM


All times are GMT -6. The time now is 09:00 PM.