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 07-10-2012, 01:36 AM   #1
kabott
Member
 
Join Date: Feb 2009
Posts: 77
Thanks: 21
Thanked 2 times in 2 posts
Default Indicator Draw Line with Alert

Hello, i have an indicator that Draws a Line one period ahead, i would like for it to trigger a sound alert wen ever the line is crossed, but since its not a "plot" i dont know how to accomplish this, help please?
kabott is offline  
Reply With Quote
Old 07-10-2012, 02:08 AM   #2
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,377
Thanks: 252
Thanked 966 times in 949 posts
Default

kabott, you would need to work with the ILine object to be able to access the anchor points and trigger and alert signal when price would cross the value.

http://www.ninjatrader.com/support/h.../nt7/iline.htm

For ideas and "start" code you can check into Ryan's script from our sharing - http://www.ninjatrader.com/support/f...ch=line&desc=1
NinjaTrader_Bertrand is offline  
Reply With Quote
The following user says thank you to NinjaTrader_Bertrand for this post:
Old 07-10-2012, 11:05 AM   #3
kabott
Member
 
Join Date: Feb 2009
Posts: 77
Thanks: 21
Thanked 2 times in 2 posts
Default

Hi again Bertrand, thanks for the help, i got an idea from the "Line Alert" indicator example you gave me
what if i just use them both together ? would that work? i mean my indicator draw ILines and the "line alert" indie sets alerts on lines.. so would that couple do what i want? lol , is not laziness , is just limited C sharp knowledge.
kabott is offline  
Reply With Quote
Old 07-10-2012, 11:09 AM   #4
kabott
Member
 
Join Date: Feb 2009
Posts: 77
Thanks: 21
Thanked 2 times in 2 posts
Default

Quote:
Originally Posted by kabott View Post
Hi again Bertrand, thanks for the help, i got an idea from the "Line Alert" indicator example you gave me
what if i just use them both together ? would that work? i mean my indicator draw ILines and the "line alert" indie sets alerts on lines.. so would that couple do what i want? lol , is not laziness , is just limited C sharp knowledge.
Nop Doesnt work :P
kabott is offline  
Reply With Quote
Old 07-10-2012, 11:19 AM   #5
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,377
Thanks: 252
Thanked 966 times in 949 posts
Default

Sorry would not work for you here, it would need to be coded into your original script. If you interested in professional script creation for you, please out those certified NinjaScript consultants -

http://www.ninjatrader.com/partners#...pt-Consultants
NinjaTrader_Bertrand is offline  
Reply With Quote
Old 07-10-2012, 11:24 AM   #6
kabott
Member
 
Join Date: Feb 2009
Posts: 77
Thanks: 21
Thanked 2 times in 2 posts
Default

Thanks, maybe in the future, after im certain the system can be beneficial
kabott 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
draw a line + sound alert when this line is crossed ? rem77 NinjaScript File Sharing Discussion 11 04-29-2013 07:43 PM
Line Alert Indicator carlton Charting 17 11-23-2011 10:39 AM
Line Alert Indicator Alerts Once carlton Charting 7 11-18-2011 11:32 AM
Draw Extended Line Indicator Trade1953 Indicator Development 24 04-07-2011 12:08 PM
How to draw a line in an optimization indicator? ChuckAllen Version 7 Beta General Questions & Bug Reports 5 07-23-2010 02:18 PM


All times are GMT -6. The time now is 01:56 AM.