Modified:
6,789

Xmaster Formula Indicator for MetaTrader 4 Download - [TradingFinder]

$4FreeFor a limited time
Xmaster Formula Indicator for MetaTrader 4 Download - [TradingFinder]
Xmaster Formula Indicator for MetaTrader 4 Download - [TradingFinder] 0
Xmaster Formula Indicator for MetaTrader 4 Download - [TradingFinder] 1
Xmaster Formula Indicator for MetaTrader 4 Download - [TradingFinder] 2
Xmaster Formula Indicator for MetaTrader 4 Download - [TradingFinder] 3
222
7K
1
Modified:

The Xmaster Formula Indicator is a combination of the Moving Average and MACD indicators. This tool enhances the ability to identify both the strength and direction of a trend with greater accuracy.

The Xmaster Metatrader 4 Indicator provides Entry Signals for traders using green and red arrows.

A specialist from the TradingFinder development team said:
"Some users mistakenly type XHmaster instead of Xmaster when searching for the indicator. This mistake has caused difficulties for some individuals in finding accurate information. To avoid this confusion, users should ensure they search using the correct name, which is Xmaster."

Xmaster Formula Specifications Table

The specifications table includes general information about the performance of the Formula X Master indicator:

Category

Volatility - Bands and Channels - Oscillator

Platform

MetaTrader 4

Skill Level

Beginner

Indicator Type

Continuation - Reversal

Timeframe

Multi Timeframe

Trading Style

Intraday Trading

Markets

All Markets

Xmaster Formula Code

Here is a part of Xmaster formula code for MT4:

      
        //+------------------------------------------------------------------+
//| XMaster Formula |
//| Copyright © tradingfinder.com 2023 -2025 |
//+------------------------------------------------------------------+
#property copyright "tradingfinder.com"
#property link      "https://tradingfinder.com/products/indicators/mt4/"
#property version   "1.05"
#property indicator_separate_window
#property indicator_buffers 5
#property indicator_color1 Lime
#property indicator_color2 Red
#property indicator_color3 Red
#property indicator_color4 Yellow
#property indicator_color5 Yellow

extern bool alert_on = true;
extern bool alert_sound = false;
extern bool alert_email = false;

int fast_period = 40;
int arrow_gap = 200;
int ma_method = MODE_SMMA;
int applied_price = PRICE_LOW;

double red_line[], green_line[], line_buffer[], up_arrow[], down_arrow[];
datetime last_alert;

// Alerts on trend change
void manage_alert(string dir, double tp, double sl, double price) {
   if (Time[0] == last_alert) return;
   last_alert = Time[0];
   string msg = "XMASTER FORMULA " + dir + " Price " + DoubleToStr(price, 4);
   if (tp != 0) msg += ", TakeProfit " + DoubleToStr(tp, 4);
   if (sl != 0) msg += ", StopLoss " + DoubleToStr(sl, 4);
   if (alert_on) Alert(msg + " " + Symbol() + ", " + Period() + " min");
   if (alert_sound) PlaySound("alert.wav");
   if (alert_email) SendMail("Xmaster Formula", msg);
}

int init() {
   IndicatorBuffers(5);
   SetIndexBuffer(0, red_line);     SetIndexStyle(0, DRAW_ARROW); SetIndexArrow(0, 159);
   SetIndexBuffer(1, green_line);   SetIndexStyle(1, DRAW_ARROW); SetIndexArrow(1, 108);
   SetIndexBuffer(2, line_buffer);  SetIndexStyle(2, DRAW_NONE);
   SetIndexBuffer(3, up_arrow);     SetIndexStyle(3, DRAW_ARROW); SetIndexArrow(3, 226);
   SetIndexBuffer(4, down_arrow);   SetIndexStyle(4, DRAW_ARROW); SetIndexArrow(4, 225);
   IndicatorShortName("XMASTER FORMULA");
   return(0);
}

int deinit() { return(0); }

// MA wrapper
double ma_value(int shift, int period) {
   return iMA(NULL, 0, period, 0, ma_method, applied_price, shift);
}

int start() {
   int i, counted = IndicatorCounted();
   if (counted < 0) return (-1);
   int sqrt_period = MathFloor(MathSqrt(fast_period));
   int short_period = MathFloor(fast_period / 1.9);
   int total = Bars - counted + fast_period + 1;
   if (total > Bars) total = Bars;

   double trend_dir[], tmp_ma[];
   ArraySetAsSeries(trend_dir, true); ArrayResize(trend_dir, total);
   ArraySetAsSeries(tmp_ma, true); ArrayResize(tmp_ma, total);

   // Compute double smoothed MA
   for (i = 0; i < total; i++)
      trend_dir[i] = 2.0 * ma_value(i, short_period) - ma_value(i, fast_period);
   for (i = 0; i < total - fast_period; i++)
      line_buffer[i] = iMAOnArray(trend_dir, 0, sqrt_period, 0, ma_method, i);

   // Detect trend direction and signal
   for (i = total - fast_period; i > 0; i--) {
      tmp_ma[i] = tmp_ma[i + 1];
      if (line_buffer[i] > line_buffer[i + 1]) tmp_ma[i] = 1;
      else if (line_buffer[i] < line_buffer[i + 1]) tmp_ma[i] = -1;

      if (tmp_ma[i] > 0) {
         red_line[i] = line_buffer[i];
         green_line[i] = EMPTY_VALUE;
         if (tmp_ma[i + 1] < 0  i == 1)
            manage_alert("UP Buy", 0, Close[1] - arrow_gap * Point, Close[1]);
      } else if (tmp_ma[i] < 0) {
         green_line[i] = line_buffer[i];
         red_line[i] = EMPTY_VALUE;
         if (tmp_ma[i + 1] > 0  i == 1)
            manage_alert("DOWN Sell", 0, Close[1] + arrow_gap * Point, Close[1]);
      }
   }

   // Show yellow arrow at signal transition
   for (i = 0; i < total - 1; i++) {
      if (green_line[i + 1] == EMPTY_VALUE  green_line[i] != EMPTY_VALUE)
         up_arrow[i] = green_line[i];
      if (red_line[i + 1] == EMPTY_VALUE  red_line[i] != EMPTY_VALUE)
         down_arrow[i] = red_line[i];
   }
   return(0);
}

Uptrend Conditions

The price chart of Gold (XAU/USD) on the 4-hour timeframe is shown below.

The green arrow signals an uptrend and trend reversal. In such conditions, traders can use the green arrow as an Entry Signal and open a Buy position.

Bullish Trend Conditions
The continuation indicator of Formula X Master is in an uptrend

Downtrend Conditions

The price chart below shows the USD/JPY currency pair on the 5-minute timeframe.

The red arrow signals a trend reversal and indicates a downtrend, providing a Sell position opportunity for traders.

Bearish Trend Conditions
Returning indicator and continuation of the X Master formula in a downward trend

Indicator Settings

The provided image shows the default settings of the Formula X Master indicator:

Indicator Settings
Xmaster Formula Indicator Settings
  • Chart-theme: Chart theme
  • Alert-on: Enable alerts
  • Alert-sound: Sound alert
  • Alert-email: Email alert

Conclusion

The Xmaster Formula Indicator combines two widely used indicators to help traders identify entry and exit points, trend direction through green and red arrows.

This tool is particularly useful for day traders and swing traders.

score of blog
5 From 5.0
(3)
Rate this post
FAQs

Does this indicator provide entry signals?

Yes, this indicator provides entry zones using green and red arrows.

Does this indicator only show entry points?

No, one of the key features of this indicator is its ability to identify trends.

0Comment