![]() |
|
|||||||
| General Programming General NinjaScript programming questions. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Member
Join Date: Feb 2009
Posts: 77
Thanks: 21
Thanked 2 times in 2 posts
|
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?
|
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,377
Thanks: 252
Thanked 966 times in 949 posts
|
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
Bertrand
NinjaTrader Customer Service |
|
|
|
|
The following user says thank you to NinjaTrader_Bertrand for this post: |
|
|
|
#3 |
|
Member
Join Date: Feb 2009
Posts: 77
Thanks: 21
Thanked 2 times in 2 posts
|
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.
|
|
|
|
|
|
#4 | |
|
Member
Join Date: Feb 2009
Posts: 77
Thanks: 21
Thanked 2 times in 2 posts
|
Quote:
|
|
|
|
|
|
|
#5 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,377
Thanks: 252
Thanked 966 times in 949 posts
|
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
Bertrand
NinjaTrader Customer Service |
|
|
|
|
|
#6 |
|
Member
Join Date: Feb 2009
Posts: 77
Thanks: 21
Thanked 2 times in 2 posts
|
Thanks, maybe in the future, after im certain the system can be beneficial
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |