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

Karacatica_HTF_Signal - MetaTrader 5 Script - MT4/MT5 Resource

author EAcpu | 2 reads | 0 comments |

Karacatica_HTF_Signal - indicator for MetaTrader 5

Karacatica_HTF_Signal - indicator for MetaTrader 5

The Karacatica_HTF_Signal indicator shows the trend direction or a signal based on: Karacatica indicator on the selected bar as a graphical object with colored trend indication or trading direction. It also triggers an alarm and plays an audio signal.

If the trend continues on the selected bar, the indicator will alert via a graphical object in the form of a right arrow, the color of which corresponds to the direction of the trend. If the trend of the selected bar has changed, the indicator displays diagonal arrows. Its color and direction correspond to the trading direction.

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 ; // Calculate indicator time range
Input integer i period = 70 ; // indicator period

  • Indicator input parameters required for Karacatica_HTF_Signal indicator visualization:
     //----Indicator display settings
    Enter the unit signal column = 0 ; // Number of bars to get the signal from (0 - current bar)
    Input stringSymbols_Sirname =INDICATOR_NAME "_label_" ; // Indicator label name
    Input color UpSymol_Color=lime; // Growth symbol color
    Input color DnSymol_Color=magenta; // Autumn 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 name offset
    Input integer Y_1=- 15 ; // Vertical name offset
    Input boolean display name = true ; // indicator name display
    Input ENUM_BASE_CORNER what corner = CORNER_RIGHT_UPPER ; // Display corner points
    Input unit X_= 0 ; // Horizontal offset
    Input unit Y_= 20 ; // vertical offset
    
  • The input parameters of the Karacatica_HTF_Signal indicator are necessary to generate alerts and audio signals:
     //---- Alarm settings
    Enter ENUM_ALERT_MODEalert_mode=OnlySound; // indicator trigger options
    Input unit alarm count = 0 ; // number of alarms
    
  • If you want to use multiple Karacatica_HTF_Signal indicators on one chart, each indicator should have its own Symbols_Sirname (indicator label name) string variable value.

    This indicator requires the compiled indicator file Karacatica.mq5. Place it in <terminal data folder>\MQL5\Indicators\.

    Karacatica_HTF_Signal - indicator for MetaTrader 5

    Figure 1. Trend continuation signal based on Karacatica_HTF_Signal indicator data

    Karacatica_HTF_Signal - indicator for MetaTrader 5

    Figure 2. Position opening signal based on Karacatica_HTF_Signal indicator data


    Attachment download

    📎 karacatica.mq5 (6.97 KB)

    📎 karacatica_htf_signal.mq5 (14.1 KB)

    Source: MQL5 #13904

    Verification code Refresh