PDA

View Full Version : Trendline Alert


atrader101
12-04-2009, 03:45 AM
Is it possible to create an alert when a trendline is breached, in the same way the pricealert operates?

Thanks.

NinjaTrader_Bertrand
12-04-2009, 03:55 AM
atrader101, unfortunately this is not supported.

With NinjaTrader 7 you could custom code this, as trendline values and tagID's would become accessible via code - http://www.ninjatrader.com/webnew/NT7/NinjaTrader7.html

atrader101
12-04-2009, 03:59 AM
Thanks Bertrand

naxo79
07-16-2010, 05:30 AM
Anyone done this?

luxurious_04
07-26-2010, 02:22 AM
Is anybody there who could give me sample indicator that will announce the trade is present.:confused:

higher.high
04-17-2011, 11:53 PM
atrader101, unfortunately this is not supported.

With NinjaTrader 7 you could custom code this, as trendline values and tagID's would become accessible via code - http://www.ninjatrader.com/webnew/NT7/NinjaTrader7.html (http://www.ninjatrader.com/support/forum/../../webnew/NT7/NinjaTrader7.html)

Could you please elaborate on this. How can one get the "value" of a line? You mean calculate the angle based on start/end/etc and figure out if price would be crossing the line?

When I had such a code written earlier, I had problems getting a correct calculation when the line crossed gaps in periods as is the case for example with futures and weekends.

NinjaTrader_Bertrand
04-18-2011, 03:04 AM
You can use the ILine interface and access those methods / properties - http://www.ninjatrader.com/support/helpGuides/nt7/iline.htm, this would include start / end Y points.