Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

LinearRegSlope_V1_HTF_Signal - MetaTrader 5 script

author EAcpu | 5 reads | 0 comments |

LinearRegSlope_V1_HTF_Signal - indicator for MetaTrader 5

LinearRegSlope_V1_HTF_Signal - indicator for MetaTrader 5

LinearRegSlope_V1_HTF_Signal Displays trend direction or signals generated by executing trades LinearRegSlope_V1 indicator on the selected bar as a graphical object with colored trend indication or trade direction and sends an alert or audio signal at the moment of market entry.

If the trend continues on the selected bar, the indicator will alert via a triangle graphical object with a vertex pointing to the right, the color of which corresponds to the direction of the trend. If the trend on the selected bar changes, the indicator will alert with an arrow, color and direction corresponding to the direction of the executed trade.

All input parameters can be divided into three major groups:

 //+------------------------------------------------+
//| Indicator input parameters |
//+------------------------------------------------+
Enter string symbol_= ”” ; // Financial assets
Input ENUM_TIMEFRAMES time range = PERIOD_H6 ; // Indicator time range for indicator calculation

Input Smooth_Method SlMethod= mode_SMA ; // Smoothing method
Input integer SL length = 12 ; // smoothing depth
Input integer Sl phase = 15 ; // Smoothing parameter
Input Application_Price_IPC= PRICE_CLOSE ; // Price constant
Input unit trigger shift = 1 ; // trigger bar movement
  • LinearRegSlope_V1_HTF_Signal Indicator input parameters required for indicator visualization:
     //----Indicator display settings
    Input unit signal column = 0 ; // Signal bar index, 0 is the current bar
    Input stringSymbols_Sirname =INDICATOR_NAME "_label_" ; // Indicator label name
    Input color UpSymol_Color=blue; // Growth symbol color
    Input color DnSymol_Color=Hot Pink; // Downfall symbol color
    Input color IndName_Color=Dark Orchid; // Indicator name color
    Input unit symbol_size = 60 ; // signal symbol size
    Input unit font size = 10 ; // Indicator name font size
    Input integer X_1= 5 ; // horizontal movement of name
    Input integer Y_1=- 15 ; // Name moves vertically
    Input boolean display name = true ; // indicator name display
    Input ENUM_BASE_CORNER what corner = CORNER_RIGHT_UPPER ; // position angle
    Input unit X_= 0 ; // horizontal movement
    Input unit Y_= 20 ; // vertical translation
    
  • LinearRegSlope_V1_HTF_Signal Indicator input parameters required to trigger alarms and audio signals:
     //---- Alarm settings
    Input ENUM_ALERT_MODEalert_mode=OnlySound; // Action indication version
    Input unit alert count = 0 ; //Number of alerts submitted
  • If you want to use multiple LinearRegSlope_V1_HTF_Signal indicators on one chart, each indicator should have its own Symbols_Sirname (indicator label name) string variable value.

    Place the LinearRegSlope_V1 indicator compiled file into terminal_data_folder\MQL5\Indicators\.

    The indicator uses the SmoothAlgorithms.mqh library class (must be copied to terminal_data_folder\MQL5\Include). The use of the class "Average price series for intermediate calculations without using additional buffers" is described in detail in the article.

    LinearRegSlope_V1_HTF_Signal - indicator for MetaTrader 5

    LinearRegSlope_V1_HTF_Signal - indicator for MetaTrader 5


    Attachment download

    📎 linearregslope_v1.mq5 (9.76 KB)

    📎 linearregslope_v1_htf_signal.mq5 (15.36 KB)

    📎 smoothalgorithms.mqh (134.03 KB)

    Source: MQL5 #744

    Verification code Refresh