How to use:
Put your mouse cursor where you need to create a line and push "A" key (if you keep the default key), the line will be created automatically, you can do it as many times as you need.
The lines are drawn with the color and style you choose in parameters.
By default, when the price crosses a line you will receive an alert, or a smartphone notification as you like.
Now you can use a secondary line. So you can use the first line for heavy resistance and support and the second one for alert or small resistance and support. If you want more, I can add more.
extern string LineHorizontal="A"; //Key to Create a SR Line (1) extern color LineResistcolor=clrDodgerBlue; //Resistance Line Color (1) extern color LineSupportcolor=clrDarkOrange; //Support Line Color (1) extern ENUM_LINE_STYLE LineStyle=STYLE_SOLID; //Style of SR Lines (1) extern int Linewidth=1; //Choose the width of the line (1) extern string LineHorizontalSecond="Q"; //Key to Create a SR Line (2) extern color LineResistcolorSecond=clrDodgerBlue; //Resistance Line Color (2) extern color LineSupportcolorSecond=clrDarkOrange; //Support Line Color (2) extern ENUM_LINE_STYLE LineStyleSecond=STYLE_DOT; //Style of SR Lines (2) extern int LinewidthSecond=1; //Choose the width of the line (2) extern bool TakecareManualTrendline=true; //Take care of your Trendline added manually extern string DeleteLastLine="X"; //Key to Delete Last SR Line extern bool AlarmCrossWhithAlert=true; //Send an Alert extern bool AlarmCrossWhithPushSmartphone=true; //Send a Notification extern bool MagnetLinePriceOnFullPip = true; //To make a line at 1.1500 even if the mouse is at 1.15002 extern double DefaultLotSize=0.1; //Lot Size to Calc Money Values extern int history=200; //Number of candles to check, could be 200 minutes or 200 weeks depending on your timeframe extern int MaxDeviation=10; //If the candle stops at less than 10 pips it will appear in the history of support and resistance extern color Textcolor=clrRed; //Color of mouse position and history extern bool Commentornot=true; //You can choose to see mouse and history of support/resistance in the comment or in positionable label
You can see in purple the number of pips separated from the actual price, if you put your mouse on the label or the line, it will show you the value by using your default lot size.
In yellow, you can see the floating box, you can move around the information of mouse price and history in your chart. You can see by clicking in the label of a line the history of the line.
In the blue circle, you can see the price at your mouse cursor position. The line have been created in few seconds, the style and the color are changed automatically.
In this example, you can see that the line 0.71 has color change when the price goes under, and an alert have been send via MetaTrader alert box. But you can choose to have smartphone notification or both.
If you have other idea, you can share it.
RSI EA based on overbought and oversold levels.Personal Assistant - The Next Generation
Personal Assistant The Next Generation is there to make your trading easy, basically it does what a real assistant does — provides information and executes your orders.
This indicator shows Flag and Pennant patterns.MySQL library for MQL4 with proper memory management
Library provides functions for management of MetaTrader 4 to MySQL database connections. Fixed memory allocation and release problems of the original library.