The SlopeDirectionLine trend indicator with the ability to change the algorithms of averaging and triggering alerts, push notifications and sending e-mail messages.
Indicator input parameters:
//+-----------------------------------+ //| Indicator input parameters | //+-----------------------------------+ input Smooth_Method MA_Method1=MODE_LWMA; // First smoothing method input uint Length1=12; // First smoothing depth input int Phase1=15; // First smoothing parameter //--- Phase1: for JJMA that can change withing the range -100 ... +100. It impacts the quality of the intermediate process of smoothing; //--- Phase1: for VIDIA, it is a CMO period, for AMA, it is a slow moving average period input Smooth_Method MA_Method2=MODE_SMA; // Second smoothing averaging method input int Phase2=15; // Second smoothing parameter //---Phase2: for JJMA that can change withing the range -100 ... +100. It impacts the quality of the intermediate process of smoothing; //---Phase2: for VIDIA, it is a CMO period, for AMA, it is a slow moving average period input Applied_price_ IPC=PRICE_CLOSE; // Price constant input int Shift=0; // Horizontal shift of the indicator in bars input int PriceShift=0; // Vertical shift of the indicator in pointsх input bool On_Push = false; // Allow to send push-messages input bool On_Email = false; // Allow to send e-mail messages input bool On_Alert = true; // Allow to put alert input bool On_Play_Sound = false; // Allow to put sound signal input string NameFileSound = "expert.wav"; // Name of the file with sound input string CommentSirName="SlopeDirectionLine: "; // The first part of the allert comment input uint SignalBar=1; // Bar index for getting an entry signal
The indicator uses SmoothAlgorithms.mqh library classes (must be copied to the terminal_data_folder\MQL5\Include). The use of the classes was thoroughly described in the article “Averaging price series for intermediate calculations without using additional buffers”.
MT5 Indicator – Download Instructions
SlopeDirectionLine is a Metatrader 5 (MT5) indicator and the essence of the forex indicator is to transform the accumulated history data.
SlopeDirectionLine provides for an opportunity to detect various peculiarities and patterns in price dynamics which are invisible to the naked eye.
Based on this information, traders can assume further price movement and adjust their strategy accordingly.
How to install SlopeDirectionLine.mq5?
- Download SlopeDirectionLine.mq5
- Copy SlopeDirectionLine.mq5 to your Metatrader Directory / experts / indicators /
- Start or restart your Metatrader 5 Client
- Select Chart and Timeframe where you want to test your indicator
- Search “Custom Indicators” in your Navigator mostly left in your Metatrader 5 Client
- Right click on SlopeDirectionLine.mq5
- Attach to a chart
- Modify settings or press ok
- Indicator SlopeDirectionLine.mq5 is available on your Chart
How to remove SlopeDirectionLine.mq5 from your Metatrader 5 Chart?
- Select the Chart where is the Indicator running in your Metatrader Client
- Right click into the Chart
- “Indicators list”
- Select the Indicator and delete
Click here below to download MT5 Indicator: