![]() |
|
|||||||
| NinjaScript File Sharing Discussion Discussion for shared NinjaScript files. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Junior Member
Join Date: Jun 2010
Posts: 15
Thanks: 0
Thanked 0 times in 0 posts
|
Hi,
I would like to draw a line and to hear a sound alert when this line is crossed. do you know how to do this ( or maybe there is some indicator doing this ) ? Thanks for your help. Regards |
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,377
Thanks: 252
Thanked 966 times in 949 posts
|
rem77, for just an alert on crossing a price level set you could check into the Price Alert indicators published here on the forums in our sharing section - http://www.ninjatrader.com/support/f...splay.php?f=37
With NT7 you could monitor a hand drawn line and then 'get' it's ending value programmatically and issue then an alert via PlaySound() or Alert() if this value is crossed by price - http://www.ninjatrader.com/support/h...7/drawline.htm
Bertrand
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Jun 2010
Posts: 15
Thanks: 0
Thanked 0 times in 0 posts
|
Hi Bertrand,
thank you for the answer. To "monitor a hand drawn line" is just what I would like. Unfortunately my programming knowledge in NT7 is at 0 stage and I can not find any indicator doing this.Assuming that it is not too complicated, could somebody code such an indicator ? Thanks in advance ![]() rem77 PS Bertrand, would it be possible to add to the next version of NT7: an alert feature to hand drawn line properties, where this alert would be activated in case of crossing of this line ? |
|
|
|
|
|
#4 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,377
Thanks: 252
Thanked 966 times in 949 posts
|
Thanks for the suggestion rem77, this is already on our list for future consideration.
Bertrand
NinjaTrader Customer Service |
|
|
|
|
|
#5 |
|
Junior Member
Join Date: May 2011
Posts: 4
Thanks: 0
Thanked 0 times in 0 posts
|
I was wondering about this also. I would really help but what i need is the ability to set a high and low value via a line or whatever and be alerted audible and maybe even email (email not necessary) but the key to my request is i need to have it set to alert me when the price closes ABOVE my high line or BELOW my low line on a close of the candle or time period whether it be a 3m 15 min or 30 min chart. alert on price hit is good too but more important is alert on price close above or below set range.
|
|
|
|
|
|
#6 |
|
NinjaTrader Customer Service
Join Date: Dec 2009
Location: Denver, CO, USA
Posts: 6,498
Thanks: 109
Thanked 291 times in 280 posts
|
Rick,
You should be able to do this already in NinjaTrader. Right click on the chart and add the Price Alert. Here you type in the price you want an alert and set calculate on bar close to true instead of false. You will get a sound alert when this line is hit and this way the alert will only trigger when the bar closes. -Brett
Brett
NinjaTrader Customer Service |
|
|
|
|
|
#7 |
|
NinjaTrader Customer Service
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
|
Thanks for the post rickmaz. I created an indicator here that can help alert on crossing of manually drawn lines. Apply it to a chart and then and it will check if any of your lines are eligible (must set one point in past and one point in future). If price crosses it raises alert to File > New > Alerts window.
http://www.ninjatrader.com/support/f...d=4&linkid=472
Ryan M
NinjaTrader Customer Service |
|
|
|
|
|
#8 |
|
Junior Member
Join Date: May 2011
Posts: 4
Thanks: 0
Thanked 0 times in 0 posts
|
thanks, I am wondering. is there option to set the alert to trigger only when the bar closed. Anotherwards I want it to close above or below a line not just cross it.
|
|
|
|
|
|
#9 |
|
NinjaTrader Customer Service
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
|
Yes, you could set CalculateOnBarClose = true (each indicator has this setting) and it will only check for crosses on bar close.
Ryan M
NinjaTrader Customer Service |
|
|
|
|
|
#10 |
|
Junior Member
Join Date: May 2012
Posts: 2
Thanks: 0
Thanked 3 times in 2 posts
|
You can draw a trend line or a horizontal line and when is cross a alarm will set!LineAlert.zip
ES 12-12 (5 Min) 2012-09-20.jpg |
|
|
|
|
The following user says thank you to bxstr106 for this post: |
|
|
|
#11 |
|
Member
Join Date: Feb 2011
Posts: 55
Thanks: 9
Thanked 2 times in 2 posts
|
Does this work for a window that just had an indicator in it? For example, I have a window with just RSI, and would like it to make an alert once the line is crossed. I can only get it to work on a chart with price bars.
Thanks. |
|
|
|
|
|
#12 | |
|
Junior Member
Join Date: Mar 2013
Posts: 17
Thanks: 5
Thanked 0 times in 0 posts
|
Quote:
Hello, This would be my 1st indicator, how do you use it? I imported it successfully (I was prompted during the installation that some of my local files were more up to date, so I didn't overwrite them). After that it said that the installation had been successful. Then I went to the indicators and picked a Price Alert indicator where I can enter a specific price. But... how will this work with every line, horizontal line, etc that I draw? I've just draw a few and there's no alert when the price closes above it? |
|
|
|
|
![]() |
| Tags |
| alert, line, trendline |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Draw Line Help | safetrading | Indicator Development | 2 | 01-20-2011 02:33 PM |
| Alert on line | fskidd | Version 7 Beta General Questions & Bug Reports | 1 | 01-12-2010 07:16 AM |
| line alert | achiever | Miscellaneous Support | 3 | 09-23-2009 03:13 PM |
| Can draw dot, arrow, etc. but cannot draw line | cunparis | Strategy Development | 10 | 03-21-2009 01:44 AM |
| how to draw a parallel line to a trend line? | tradewiz | Charting | 4 | 12-19-2007 04:42 AM |