NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > NinjaScript Development Support > Indicator Development

Indicator Development Support for the development of custom indicators using NinjaScript.

Reply
 
Thread Tools Display Modes
Old 06-03-2010, 08:08 AM   #1
trade.ripper
Member
 
Join Date: May 2010
Posts: 56
Thanks: 0
Thanked 0 times in 0 posts
Default Horizontal Line Price with alarm

Ok Boys and Girls,

I really can't believe that NT doesn't have this available yet - so for what its worth, here is an indicator that will display a price on a horizontal line or ray. I put it together with duct tape and bailing wire and a bunch of snippets from this forum.

To set the alarm, go to the properties of the indicator and make sure that AlertsOnLines is set to true. If you want an email sent, fill in your email and set SendEmail to true. Make sure that the email notification is set up in Control Center..

To set the alarm on a line you add "-a" to the tag. The tag is in the properties (right mouse click on the line) on the data tab. The Tag is an auto generated ID for each item on the charts. So it might look like this: 3-a.

Cheers!
Attached Files
File Type: zip HorizontalLinePrice.zip (4.2 KB, 156 views)
trade.ripper is offline  
Reply With Quote
Old 06-03-2010, 08:15 AM   #2
NinjaTrader_Tim
NinjaTrader Customer Service
 
NinjaTrader_Tim's Avatar
 
Join Date: Nov 2009
Location: Denver, CO
Posts: 1,424
Thanks: 0
Thanked 3 times in 3 posts
Default

Hi trade.ripper,

Thanks for the post!

Similarly, please see the indicator posted here - http://www.ninjatrader.com/support/f...d=1&linkid=314
NinjaTrader_Tim is offline  
Reply With Quote
Old 06-03-2010, 08:37 AM   #3
trade.ripper
Member
 
Join Date: May 2010
Posts: 56
Thanks: 0
Thanked 0 times in 0 posts
Default

Yep I saw that! But its not really what I was after. I like to be able to throw lines on my charts and know what price level they are at. I usually have several levels that I am watching.

Any idea of when NT will have alerts & data display available on ALL drawing objects?
trade.ripper is offline  
Reply With Quote
Old 06-03-2010, 08:40 AM   #4
NinjaTrader_Tim
NinjaTrader Customer Service
 
NinjaTrader_Tim's Avatar
 
Join Date: Nov 2009
Location: Denver, CO
Posts: 1,424
Thanks: 0
Thanked 3 times in 3 posts
Default

Hi trade.ripper,

I will forward your suggestion on to our development team.
NinjaTrader_Tim is offline  
Reply With Quote
Old 06-22-2010, 08:54 AM   #5
54321
Junior Member
 
Join Date: Jun 2010
Posts: 8
Thanks: 0
Thanked 0 times in 0 posts
Default

Thanks, I've set the parameters as you've stated, but it does not work. Has anyone gotten this to work?

Quote:
Originally Posted by trade.ripper View Post
Ok Boys and Girls,

I really can't believe that NT doesn't have this available yet - so for what its worth, here is an indicator that will display a price on a horizontal line or ray. I put it together with duct tape and bailing wire and a bunch of snippets from this forum.

To set the alarm, go to the properties of the indicator and make sure that AlertsOnLines is set to true. If you want an email sent, fill in your email and set SendEmail to true. Make sure that the email notification is set up in Control Center..

To set the alarm on a line you add "-a" to the tag. The tag is in the properties (right mouse click on the line) on the data tab. The Tag is an auto generated ID for each item on the charts. So it might look like this: 3-a.

Cheers!
54321 is offline  
Reply With Quote
Old 06-22-2010, 09:24 AM   #6
trade.ripper
Member
 
Join Date: May 2010
Posts: 56
Thanks: 0
Thanked 0 times in 0 posts
Default

Can you be a bit more specific? What doesn't work? Can you see a price on a horizontal line?
trade.ripper is offline  
Reply With Quote
Old 06-22-2010, 05:12 PM   #7
54321
Junior Member
 
Join Date: Jun 2010
Posts: 8
Thanks: 0
Thanked 0 times in 0 posts
Default

well, i set it to "true" and altered the tag to -a, but no sound was forthcomming when a line was crossed?? Not sure what i did wrong? any ideas? thx
54321 is offline  
Reply With Quote
Old 06-23-2010, 08:35 AM   #8
trade.ripper
Member
 
Join Date: May 2010
Posts: 56
Thanks: 0
Thanked 0 times in 0 posts
Default

Ok here is an updated version. It should find the sound files in the installation directory. You can also set the name of the alarm that you want to use.

Let me know if you have any issues...
Attached Files
File Type: zip HorizontalLinePrice.zip (4.3 KB, 209 views)
trade.ripper is offline  
Reply With Quote
Old 07-29-2012, 06:34 AM   #9
mystiq
Senior Member
 
Join Date: Apr 2010
Posts: 147
Thanks: 21
Thanked 1 time in 1 post
Default

Quote:
Originally Posted by trade.ripper View Post
Ok here is an updated version. It should find the sound files in the installation directory. You can also set the name of the alarm that you want to use.

Let me know if you have any issues...
import failed. duplicate method names.missing required file


...any updates? or screenshots?
mystiq is offline  
Reply With Quote
Old 07-29-2012, 10:33 AM   #10
stocktraderbmp
Senior Member
 
Join Date: Jun 2011
Location: Ireland
Posts: 184
Thanks: 32
Thanked 20 times in 19 posts
Default

Try this one
Attached Files
File Type: zip LabelHorizLinesWAlerts.zip (4.2 KB, 57 views)
stocktraderbmp 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
Horizontal line at specific price suprsnipes General Programming 3 02-18-2010 09:38 AM
Price/Time alert alarm bugman4/u Suggestions And Feedback 1 07-06-2009 03:54 AM
Price Marker(s) on Horizontal Line and other Drawing Tools adamnjen Suggestions And Feedback 3 04-29-2008 07:12 AM
Alarm when an horizontal line or range is reached tradingkevin Suggestions And Feedback 1 05-10-2007 06:56 PM
adding a price value next to the horizontal line tradingkevin Suggestions And Feedback 2 05-10-2007 05:40 PM


All times are GMT -6. The time now is 05:42 AM.