This tutorial applies to the EA ‘MA Crossing Bot’ whose product web page is accessible by clicking on the picture beneath:
This product isn’t just an EA that may open orders when the crossing of two shifting averages happens. Certainly, the primary benefits of this EA are:
- It consists of extra filters (third MA, Pivot Factors, different filters might be applied on demand).
- It has an entire administration of orders (closing on reverse sign, break even, trailing cease, closing earlier than weekend, max misplaced or win / day …).
- It will probably work with all market watch symbols directly.
Beneath is the backtest of this EA for GBPUSD (default settings) from 01/01/2020:
Detailed options are described on the product web page. Beneath is the record of EA settings with explanations.
Symbols: symbols for alerts & buying and selling (all or image on the chart)
There are a number of potentialities to decide on which symbols needs to be scanned:
– ‘Solely image on the chart’ : it is best to use this selection for backtests or if you wish to apply the bot on the chart image ;
– ‘All main foreign exchange pairs’ : the bot will scan all 28 main foreign exchange pairs (EUR/USD/GBP/CHF/AUD/NZD/JPY) ;
– ‘Market watch’ : the bot will scan all market watch symbols ;
– ‘Solely symbols listed beneath’ : solely symbols listed within the subject beneath might be scanned
Symbols to scan or exclude: write right here symbols to scan (‘Solely symbols listed beneath’ mode) or to exclude (‘All main foreign exchange pairs’ and ‘Market watch’ mode)
Dealer prefix (if mandatory): just for brokers who use prefixes. For instance, sort m for mEURUSD
Dealer suffix (if mandatory): just for brokers who use prefixes. For instance, sort m for EURUSDm
If a number of symbols have to be entered on this subject, they have to be separated by commas
Use Timer: outline buying and selling days and hours
Orders will solely be opened on buying and selling days. Nevertheless, orders might be closed/modified even exterior of the established time if at the very least one of many following parameters is enabled:
– ‘Max % misplaced/day’ ;
– ‘Shut earlier than weekend’ ;
– ‘Shut on reverse crossing’ ;
– ‘Shut order if value closes above/beneath a Ma’ ;
– ‘Break even’ ;
– ‘Trailing cease’.
Monday: alerts & buying and selling on Mondays
Tuesday: alerts & buying and selling on Tuesdays
Wednesday: alerts & buying and selling on Wednesdays
Thursday: alerts & buying and selling on Thursdays
Friday: alerts & buying and selling on Fridays
Saturday (crypto): alerts & buying and selling on Saturday (usually for crypto buying and selling)
Sunday (crypto): alerts & buying and selling on Sunday (usually for crypto buying and selling)
Begin time: begin of the session
Finish time: finish of the session
Indicators alerts: terminal and/or smartphone notifs
Buying and selling alerts: terminal and/or smartphone notifs
-====Transferring averages crossing settings====-
Timeframe: all MT4 timeframes
Warning! If you wish to use the timeframe of the chart, use the worth “CURRENT”!
In the event you use one other worth, the present chart timeframe won’t have an effect on the Ma calculation.
Crossing validated at: precise bar or as quickly because the bar is closed
Really helpful worth: ‘as quickly because the bar is closed’. An order might be opened if a crossover is detected throughout the present bar and whether it is nonetheless there when the bar is closed.
Min bars after earlier crossing: the crossing is validated if no crossing throughout the earlier x bars
This setting is there to keep away from market noise and a interval of vary. Which means that if a cross happens, the earlier cross might be positioned. The EA will rely the variety of bars between the two crossings (present and former). 2 options:
– Variety of bars < x: the order is just not open;
– Variety of bars >= x: the order is open.
Reversed logic: purchase and promote logic of the two MA crossing is reversed
-=Transferring common 1 settings=-
Ma1 interval: interval of the first MA
Ma1 methodology: SMA / EMA / SMMA / LWMA
Ma1 utilized value: CLOSE / OPEN / HIGH / LOW / MEDIAN / TYPICAL / WEIGHTED
Ma1 shift: shift of the first MA
-=Transferring common 2 settings=-
Ma2 interval: interval of the 2nd MA
Ma2 methodology: SMA / EMA / SMMA / LWMA
Ma2 utilized value: CLOSE / OPEN / HIGH / LOW / MEDIAN / TYPICAL / WEIGHTED
Ma2 shift: shift of the 2nd MA
-=third Transferring common settings=-
Use a third MA: checks if value is above (purchase sign) or beneath (promote sign) this MA
Ma3 timeframe: all MT4 timeframes
Ma3 interval: interval of the third MA
Ma3 methodology: SMA / EMA / SMMA / LWMA
Ma3 utilized value: CLOSE / OPEN / HIGH / LOW / MEDIAN / TYPICAL / WEIGHTED
Ma3 shift: shift of the third MA
Use RSI: checks RSI worth earlier than opening an order
RSI Timeframe: all MT4 timeframes
RSI interval: interval of the RSI filter
RSI utilized value: CLOSE / OPEN / HIGH / LOW / MEDIAN / TYPICAL / WEIGHTED
RSI shift: shift of the RSI filter
Min RSI worth for a purchase order: purchase order is opened if RSI > this worth
Max RSI worth for a promote order: promote order is opened if RSI < this worth
-=Pivot factors settings=-
Each day PP: checks if value is above (purchase sign) or beneath (promote sign) day by day PP
Weekly PP: checks if value is above (purchase sign) or beneath (promote sign) weekly PP
Month-to-month PP: an identical to the earlier parameter for month-to-month PP
Word: the extra filters applied, the less orders might be opened. In the event you discover that there aren’t sufficient open orders, attempt disabling some filters.
-====Buying and selling settings====-
Enable buying and selling: if false, solely alerts are operational
Magic quantity: have to be distinctive if different EA are operating
‘Max open orders’ and ‘Max% misplaced / day’ are calculated from the magic quantity. For instance, when you have 3 EAs with the identical magic quantity, the entire variety of orders opened would be the sum of the orders opened in these 3 EAs.
Max open orders: max variety of orders opened concurrently (if 0, no max)
Max % misplaced/day: if max worth is reached, the EA open orders are closed and no different order is opened till the subsequent day (if 0, no max)
The calculation is predicated on account stability + open orders advantages. In an effort to pace up the backtests, the calculation is finished each hour throughout backtests, as a substitute of each minute for an actual buying and selling session.
Max % win/day: if max worth is reached, the EA open orders are closed and no different order is opened till the subsequent day (if 0, no max)
Identical comment than for ‘Max % win/day’.
Shut earlier than weekend: shut all EA orders on Friday
Closing time earlier than weekend: if ‘Shut earlier than weekend’ is ‘true’
Use cash administration: if ‘true’, lot measurement in % stability
Lot measurement in %: % stability per order (if ‘Use cash administration’ is ‘true’)
Fastened tons measurement: lot measurement per order (if ‘Use cash administration’ is ‘false’)
Max unfold: max allowed unfold to open an order (if 0, no max unfold)
Warning: if the worth of the unfold is simply too low, no order might be opened! To keep away from any downside, it is suggested to set the worth ‘0’ for the backtests.
Max slippage: max allowed slippage to open an order
Identical comment as ‘Max unfold’.
SL: cease loss in pips
-=Further closing settings=-
Shut on reverse crossing: shut the order if the two MA cross within the different path (just for ‘previous_bar’ mode)
If the crossing was not convincing, one other crossing within the different path could happen throughout subsequent bars. This parameter prevents the order from being closed too early.
Open an order on reverse crossing: opens a brand new order if one other order simply closed with the ‘Shut on reverse crossing’ parameter
Shut order if value closes above/beneath a Ma: shut order if ask < Ma (purchase order) or if bid > Ma (promote order)
Shut order if value closes above/beneath this Ma: MA to make use of for the earlier parameter
Break even: if ‘true’, break even is activated
Break even revenue: triggers the break even from a sure revenue in pips
Trailing cease: if ‘true’, trailing cease is activated
Path revenue: triggers the trailing cease from a sure revenue in pips
Path distance: distance in pips between trailing cease and value
Path step: step in pips for the trailing cease
Open extra orders: an extra order is opened every time the revenue reaches a step
Max extra orders (by image) : ‘Open extra orders’ have to be ‘true’
Lot measurement of extra orders: it’s higher to have smaller tons than for important orders
Revenue step in pips to open an extra order: every time the revenue reaches this step, a brand new order is opened
SL of extra orders: SL in pips of the extra orders
TP of extra orders: TP in pips of the extra orders
- Earlier than utilizing the ‘All main foreign exchange pairs’ mode, confirm that the 28 main forex pairs are current within the “Market Watch” tab of MT4.
- It’s endorsed to make use of multi-symbol mode for alerts solely. When a worthwhile methodology is discovered on a logo, it’s higher to use it in ‘only_symbol_on_the_chart’ mode.
Main foreign exchange 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