Alerts for NT7 - futures trading

Go Back

> Trading Wiki > Help, Tutorials, and How-Tos

Alerts for NT7

Alerts features of NT7 using an indicator, like TrendLineAlertCustom in Downloads, uses an Extended Line as the trigger and the Alert, Print and Say functions to communicate the message.

The following code is necessary:

			foreach (IDrawObject draw in DrawObjects)
        if ((
draw.Tag.StartsWith("Trend Line")||draw.Tag.StartsWith("Resistance")||draw.Tag.StartsWith("Support")) &&draw is ILine)
ILine drawnLine = (ILinedraw;    
drawnLine.DrawType==DrawType.ExtendedLine||drawnLine.DrawType==DrawType.Line||drawnLine.DrawType==DrawType.HorizontalLine )
//Price rising above the manually drawn Trend Line        
Alert("Alert", Priority.HighInstrumentName+": $"+Close[]+", Rising Above Trendline "+LineNamesoundFileR1Color.BlackColor.Lime);
quot;TrendLineCustom " +InstrumentName+": $"+Close[]+", Rising Above  "+LineName);
over)Say(InstrumentName+&quotcrossing ABOVE "+LineName+"   at   "+Close[]);
//Price falling below the manually drawn Trend Line        
Alert("Alert", Priority.HighInstrumentName+": $"+Close[]+", Falling Below Trendline "+LineNamesoundFileF1Color.RedColor.Yellow);
quot;TrendLineCustom "+  InstrumentName+": $"+Close[]+", Falling Below  "+LineName+"   at  "+Close[]);    
under)Say(InstrumentName+&quotcrossing BELOW "+LineName+"   at  "+Close[]);

Contributors:  Big Mike ,  ZTR 
Created by  ZTR , July 5th, 2010 at 11:59 AM
Last edited by  Big Mike , July 6th, 2010 at 10:28 PM
Last comment by  Big Mike  on July 6th, 2010 at 10:29 PM
5 Comments, 2,853 Views
Page Tools
Search this Page

Posting Rules
You may not create new articles
You may not edit articles
You may not protect articles

You may not post comments
You may not post attachments
You may not edit your comments

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

All times are GMT -4. The time now is 08:01 AM.

Copyright © 2016 by All information is for educational use only and is not investment advice.
There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.

Page generated 2016-10-22 in 0.07 seconds with 27 queries on phoenix via your IP