![]() |
|
|||||||
| General Programming General NinjaScript programming questions. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Senior Member
Join Date: Jan 2011
Posts: 294
Thanks: 9
Thanked 22 times in 19 posts
|
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. |
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
|
Hi Zeos,
This is only available with custom programming, by exposing drawing objects properties using IDrawObject: http://www.ninjatrader.com/support/h...drawobject.htm
Ryan M
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Jan 2011
Posts: 294
Thanks: 9
Thanked 22 times in 19 posts
|
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?
|
|
|
|
|
|
#4 |
|
NinjaTrader Customer Service
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
|
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
Ryan M
NinjaTrader Customer Service
Last edited by NinjaTrader_RyanM; 06-23-2011 at 02:13 PM.
|
|
|
|
|
|
#5 |
|
Senior Member
Join Date: Jan 2011
Posts: 294
Thanks: 9
Thanked 22 times in 19 posts
|
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.
|
|
|
|
|
|
#6 |
|
NinjaTrader Customer Service
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
|
Line is Iline.
http://www.ninjatrader.com/support/h.../nt7/iline.htm
Ryan M
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |