If you're looking to get a solid grip on market trends, the ForexOFFTrend_HTF_Signal indicator for MetaTrader 5 is your go-to tool. This nifty indicator not only shows the trend direction, but it also generates signals based on the ForexOFFTrendSign indicator at the selected bar. It presents this information visually with color-coded trend indications and also comes equipped with alert features.
When the trend is steady at your chosen bar, you'll see a right arrow displayed. The color of this arrow corresponds to the trend's direction. If there's a shift in the trend, a diagonal arrow appears, with its color and direction indicating the new deal direction.
Let’s break down the input parameters into three main categories:
- ForexOFFTrendSign Input Parameters:
input string Symbol_=""; // Financial asset input ENUM_TIMEFRAMES Timeframe=PERIOD_H6; // Indicator timeframe for calculation input uint SSP = 7; // Period of finding extreme points input uint KPer = 7; // Period of signal envelop shift input double Kmax = 50.6;
- ForexOFFTrend_HTF_Signal Indicator Visualization Parameters:
//---- indicator display settings input uint SignalBar=0; // Bar number for getting a signal (0 - current bar) input string Symbols_Sirname=INDICATOR_NAME"_Label_"; // Indicator labels names input color Upsymbol_Color=clrLimeGreen; // Uptrend symbol color input color Dnsymbol_Color=clrDeepPink; // Downtrend symbol color input color IndName_Color=clrDarkOrchid; // Indicator name color input uint Symbols_Size=60; // Signal symbols size input uint Font_Size=10; // Indicator name font size input int X_1=5; // Horizontal name offset input int Y_1=-15; // Vertical name offset input bool ShowIndName=true; // Indicator name display input ENUM_BASE_CORNER WhatCorner=CORNER_RIGHT_UPPER; // Display corner input uint X_=0; // Horizontal offset input uint Y_=20; // Vertical offset
- ForexOFFTrend_HTF_Signal Alert and Audio Signal Parameters:
//---- alerts settings input ENUM_ALERT_MODE alert_mode=OnlySound; // Indicator triggering option input uint AlertCount=0; // Number of alerts
If you’re planning to use multiple ForexOFFTrend_HTF_Signal indicators on one chart, make sure each one has its own Symbols_Sirname value to avoid any mix-ups.
Don’t forget, this indicator requires the compiled file ForexOFFTrendSign.mq5. You can find it in your <terminal_data_folder>\MQL5\Indicators\ directory.

Fig.1. ForexOFFTrend_HTF_Signal. Signal of trend continuation

Fig.2. ForexOFFTrend_HTF_Signal. Signal for a deal
Related Posts
- Mastering the Open Range Breakout Indicator for MetaTrader 5
- Unlock Trading Insights with Volume Profile + Range v6.0 for MetaTrader 5
- Mastering the Fibonacci ZigZag Indicator for MetaTrader 5
- ID Lite Info MA: A Comprehensive Indicator for MetaTrader 5
- Unlocking Trading Insights with Volume Profile + Range v6.0 for MetaTrader 5