Stocks News

Ma Crossing Bot MT5 Tutorial – Trading System – February 8, 2024

This tutorial applies to EA ‘MA Crossing Bot MT5’ which you can access the product page by clicking on the image below.

logo

This product is not a simple EA that opens an order when two moving averages cross. In fact, the main advantages of this EA are:

  • It includes additional filters (3rd order MA, pivot points, other filters can be implemented on request).
  • It has complete order management features (close reverse signal, break-even, stop trailing, close before weekend, max loss or win/day…).
  • All market clock symbols can be used simultaneously.

Below is a backtest of this EA against AUDJPY (default settings) from January 1, 2020.

Detailed features are described on the product page. Below is a list of EA settings with descriptions.

-====General Settings====-

sign: Warning and trading symbols (all or symbols on the chart)

There are several ways to choose which symbols to scan.
– ‘Only symbols on charts’: You should use this option if you want to use it for backtesting or apply bots to chart symbols.
– ‘All major forex pairs’: The bot scans all 28 major forex pairs (EUR/USD/GBP/CHF/AUD/NZD/JPY).
– ‘Market Clock’: The bot scans all market clock symbols.
– ‘Only symbols listed below’: Only symbols listed in the field below are checked.

Symbols to check or exclude: Here you write which symbols you want to scan (‘Only symbols listed below’ mode) or which you want to exclude (‘All major forex pairs’ and ‘Watch the market’ modes).

Broker prefix (if required): Applies only to brokers using the prefix. For example, for mEURUSD, enter m.

Broker suffix (if required): Applies only to brokers using the prefix. For example, for EURUSDm, enter m.

If you need to enter multiple symbols in this field, they must be separated by commas.

Use timer: Define the trading day and time.

Orders are only opened on trading days. However, orders can be closed/modified outside of the set times if one or more of the following parameters are enabled::
– ‘maximum loss rate/day’ ;
– ‘Maximum win rate (%)/day’ ;
– ‘Closes before the weekend’ ;
– ‘Close on reverse crossing’ ;
– ‘End order when price closes above/below Ma’;
– ‘break-even point’;
– ‘Trailing stop’.

monday: Monday Reminder and Deals

tuesday:Tuesday Reminder & Deals

wednesday: Wednesday Notifications and Deals

thursday: Thursday Notifications and Deals

friday: Friday Reminder & Deals

Saturday (Cryptocurrency): Saturday notifications and transactions (usually for cryptocurrency trading)

Sunday (Cryptocurrency): Sunday notifications and trading (usually for cryptocurrency trading)

start time: Start session

end time: End session

Indicator Alert: Terminal and/or smartphone notifications

Transaction Notifications: Terminal and/or smartphone notifications

-====Moving Average Crosses Settings====-

period: All MT5 periods

warning! Use the “CURRENT” value to use the chart’s time period!

If you use other values, the current chart period will not affect Ma calculations.

Cross-check time:: As soon as the actual bar or bar closes

Recommended value: ‘As soon as the bar closes’. If a crossover is detected in the current bar and the crossover is still present when the bar closes, an order will be opened.

Minimum Bar After Previous Crossing: The intersection is verified if there was no intersection for the previous x bars.

This setting exists to avoid market noise and range periods. That is, when a cross occurs, the location of the previous cross is found. EA calculates the number of bars between two intersection points (current and previous intersection). 2 solutions:

– Number of bars < x: Order has not been opened.

– Number of bars >= x: Order is open.

reverse logic: The buy and sell logic at the 2 MA intersection is opposite.

-=Set moving average 1=-

Ma1 period: 1st MA period

Ma1 method: SMA / EMA / SMMA / LWMA

Ma1 applied price: Closed / Open / High / Low / Median / Normal / Weighted

Ma1 shift: 1st MA movement

-=Set up 2 moving averages=-

Ma2 period: 2nd MA period

Ma2 method: SMA / EMA / SMMA / LWMA

Ma2 applicable price: Closed / Open / High / Low / Median / Normal / Weighted

Ma2 shift: 2nd MA movement

-====Filter Settings====-

-=3rd moving average setting=-

Use the third MA: Check whether the price is above (buy signal) or below (sell signal) this MA.

Ma3 period: All MT5 periods

Note: Added ‘Same as Ma1 and Ma2’ to automatically provide the same time period for Ma3 than Ma1 and Ma2 to avoid unnecessary backtesting in optimization mode.

Ma3 period: 3rd MA period

Ma3 method: SMA / EMA / SMMA / LWMA

Ma3 applicable price: Closed / Open / High / Low / Medium / Normal / Weighted

Ma3 shift: 3rd MA movement

-=RSI Settings=-

Use RSI: Check the RSI value before placing an order.

RSI Period: All MT5 periods

RSI Period: Cycle of RSI filter

RSI applied price: Closed / Open / High / Low / Median / Normal / Weighted

RSI changes: Movement of RSI filter

Minimum RSI value for purchase order: RSI > If this value, a buy order is opened.

Maximum RSI value for sell order: sell If RSI < this value, the order will be opened.

-=Pivot point settings=-

Daily PP: Check whether the price is above (buy signal) or below (sell signal) the daily PP.

Weekly PP: Check whether the price is above (buy signal) or below (sell signal) the weekly PP.

Monthly PP: Same as previous parameters for monthly PP

Note: The more filters you implement, the fewer orders will be opened. If you don’t have enough open orders, try disabling some filters.

-====Transaction Settings====-

-=General Settings=-

Allow transactions: If false, only warnings work.

Magic number: Must be unique if other EA’s are running.

‘Max Open Orders’, ‘Max Loss Percentage/Day’ and ‘Max Wins/Day %’ are calculated as magic numbers. For example, if there are 3 EA’s with the same magic number, the total number of orders opened will be the sum of the orders opened by those 3 EA’s.

max open order: Maximum number of orders opened simultaneously (if 0, no maximum)

Maximum loss rate (%)/day: Once the maximum value is reached, the EA opening order will be closed and no other orders will be opened until the next day. (no maximum if 0)

Calculation is based on account balance + open order benefits. To speed up backtesting, calculations are performed every hour during backtesting, rather than every minute during a live trading session.

Maximum win rate (%)/day: Once the maximum value is reached, the EA opening order will be closed and no other orders will be opened until the next day. (no maximum if 0)

This is the same explanation as ‘maximum win rate/day’.

Maximum loss rate (capital ratio): When the maximum is reached, the EA opening order is terminated and the EA is terminated (if 0, there is no maximum).

Same description as ‘max win/day %’ but calculations are done every 5 minutes (for backtests and real trading sessions).

Closes before the weekend: All EA orders close on Friday.

Deadline before the weekend: When ‘Closed before weekends’ is ‘true’

Take advantage of money management: Lot size (% balance) if ‘true’

Fixed lot size: Lot size per order (if ‘Enable Money Management’ is ‘false’)

Lot size (%): Balance % per order (if ‘Enable Money Management’ is ‘true’)

maximum spread: Maximum spread allowed for order opening (if 0, no maximum spread)

WARNING: If the spread value is too low, your order will not be opened! To avoid problems, we recommend setting the backtest value to ‘0’.

maximum slip: Maximum slippage allowed to open an order

Same description as ‘maximum spread’.

-=SL and TP settings=-

SL mode: Stop loss can be set at x pips above/below the current price (normal SL mode) or x pips above/below Ma (Ma SL mode).

In ‘Ma SL mode’, SL is placed below Ma for buy orders and above Ma for sell orders. For a buy order, if Ma is higher than the price, the order will not be opened. For sell orders, if Ma is lower than the price, the order will not be opened.

Ma for SL (Ma SL mode only): If you select ‘Ma SL mode’, SL will be x pips above/below the Ma selected in this parameter when the order is opened.

SL(pips, points)…: Stop loss in ‘Normal SL’ mode x pips above/below current price and Ma above/below selected in ‘Ma SL’ mode

TP(pips, points)…: Regardless of the ‘SL Mode’ you choose, when you open your order you will win x pips profit above or below the current price.

-=Additional finishing settings=-

Closed when crossing in reverse: 2 End order if MA crosses in different direction (only applicable to ‘previous_bar’ mode)

Minimum number of bars to close an order with a reverse signal: For ‘Liquid on Reverse Cross’ mode, the order will be liquidated only if there is a minimum bar between the order opening and the reverse signal.

If the intersection is uncertain, another intersection in the other direction may occur during sub-follow-up.NT bar. This parameter prevents orders from being closed too early.

Reverse intersection order initiated: Use the ‘Liquid on reverse cross’ parameter to open a new order when another order has just been closed.

Close your order when the price closes above/below Ma.: request < Ma(매수 주문) 또는 입찰 > End order if Ma (sell order)

Close your order when the price closes above/below this Ma.: MA to use for previous parameter

-=BE/TS/Grid Settings=-

Break-even point: If ‘true’, the break-even point is activated.

Break-even point in pips, points…: Triggers a break even at certain profits in pips and points…

trailing stop: If ‘true’, trailing stops are enabled.

Trail profit in pips, points…: Executes a trailing stop at a specific profit in pips, points…

Trail distance in pips, points…: Distance in pips, points… between trailing stop and price

Trail steps in pips, points…: pip units, points… for trailing stops

Additional orders open: Whenever profit reaches one level, additional orders are opened.

Maximum additional orders (per symbol) : ‘Open additional orders’ must be ‘true’.

Fixed lot size (order more): When ‘Use money management’ is ‘false’

It is better to have a smaller lot than your main order.

Lot size (%) (order more): When ‘Use money management’ is ‘true’

It is better to have a smaller lot than your main order.

Profit levels in pips and points for opening additional orders: Whenever profit reaches this stage, a new order is opened.

Pips for additional orders, SL in points: Pips of additional orders, SL in points

TP (pips, points) for additional orders: TP (pips, points) of additional orders

  • Before using the ‘All Major Forex Pairs’ mode, make sure you have 28 major currency pairs in the “Market Watch” tab in MT5.
  • We recommend that you use multi-symbol mode only for warnings. If you find a profitable way to use symbols, it is recommended to apply them in ‘only_symbol_on_the_chart’ mode.
  • EA works for all types of symbols, but in some cases (depending on the broker) adjustments to SL and TP must be made for certain types of symbols (except forex and indices). In this case, you will need to multiply your pip or point settings by 10 to match the correct value. Example: For a stop loss of $10 on the crude oil symbol, the ‘SL(pips, points…)’ parameter should take the value 100, not 10(x10). You can do some testing using backtesting to find the right values.

Major Forex Pairs :

EURUSD / GBPUSD / USDCHF / AUDUSD / USDCAD / USDJPY / NZDUSD

EURGBP / EURCHF / EURAUD / EURCAD / EURJPY / EURNZD

GBPCHF / GBPAUD / GBPCAD / GBPJPY / GBPNZD

AUDCHF / CADCHF / CHFJPY / NZDCHF

AUDCAD / AUDJPY / AUDNZD

CADJPY/NZDCAD

NZDJPY

Related Articles

Back to top button