PDA

View Full Version : draw a line + sound alert when this line is crossed ?


rem77
02-20-2011, 12:57 PM
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

NinjaTrader_Bertrand
02-20-2011, 01:13 PM
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/forum/forumdisplay.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/helpGuides/nt7/drawline.htm

rem77
02-20-2011, 03:40 PM
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 ?

NinjaTrader_Bertrand
02-21-2011, 12:18 AM
Thanks for the suggestion rem77, this is already on our list for future consideration.

rickmaz
05-10-2012, 02:26 PM
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.

NinjaTrader_Brett
05-10-2012, 02:35 PM
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

NinjaTrader_RyanM
05-10-2012, 02:37 PM
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/forum/local_links.php?action=sendtofriend&catid=4&linkid=472