• Visão global
  • Comentários (2)
  • Discussão (35)
  • O que há de novo

Investment OsMA

This Expert Advisor consists of a strategy running on 4 timeframes M15, M30, H1, H4. The EA opens separate buy and sell orders on these timeframes. Separate settings are available for each timeframe, as well as for buy and sell orders. The EA uses standard MT4 indicators Bollinger Band, CCI, OsMA. During backtesting the EA passed through all market conditions over the past 13 years. It can be configured to trade any currency pairs. A set file for the following 6 pairs is available in comments: EURUSD, GBPUSD, USDJPY, USDCAD, AUDUSD, GBPCAD.

The EA contains the News Stop Trading system, which suspends trading during the news releases.

To enable News Stop Trading, tick “Allow WebRequest” option and add "http://www.dailyfx.com" to the list of URLs for WebRequest. To do this, open Tools > Options > Expert Advisors. Check the option "Allow WebRequests for listed URL:". Add http://www.dailyfx.com and click OK. The EA takes news from the specified websites.

Real operation monitoring as well as my other products can be found here: https://www.mql5.com/en/users/keasotik/seller


Features

  • Visible Stop Loss;
  • Additional control of orders using hidden Stop Loss and Take Profit;
  • Monitoring slippage and trading costs;
  • No Martingale;
  • No grid;
  • No Arbitrage;
  • Optional fixed lot or percent of equity;
  • You can start trading 0.01 lot with the initial deposit of $100.


Custom Settings

  • Configured pairs: EURUSD, GBPUSD, USDJPY, USDCAD, AUDUSD, GBPCAD;
  • Run on the M15 TF (it will automatically determine a higher timeframe).


Description

  • UseFIFOClose - close orders in compliance with FIFO;
  • panelshow - display the panel of total balance for today, yesterday, the day before yesterday;
  • hourtradefriday - disable trading on Friday at the specified time;
  • endhourtradefriday - time to stop opening orders on Friday;
  • closeorderfriday - close open orders on Friday after the specified time;
  • hourcloseorderfriday - time to close open orders on Friday;
  • Lots - fixed lot; if 0, activates Percent;
  • Percent - percentage of free margin;
  • InpNewsFilterEnabled - enable the News Stop Trading system;
  • InpNewsLevel - importance of the news to stop trading;
  • InpNewsMinutesBefore - the number of minutes before the news release to stop trading;
  • InpNewsMinutesAfter - the number of minutes after the news release to resume trading;
  • InpNewsTimezoneShiftTest - time zone offset for the testing mode;
  • InpNewsTimezoneShiftLive - time zone offset for the live trading mode;
  • InpNewsDoClose - close orders before the news release;
  • InpNewsDoCloseAllMinutesBefore - the number of minutes before the news release to close orders;
  • InpNewsMainColor - color of the chart messages;
  • InpNewsUpdateEachMins - news update time in minutes;
  • InpNewsShowInfo - display messages on the chart;
  • InpNewsManualUpdateMonths - the number of months to perform a manual news update (chart button);
  • OpenOrdersLimit - choose the number of opened orders at the same time;
  • MaxSpread - maximum allowed spread;
  • virtual_slandtp: enable or disable hidden SL and TP
  • sl_atr - enable sl and tp based on the ATR indicator;
  • risksl - risk per trade for sl;
  • risktp - risk per trade for tp;
  • Trailing - enable the trailing stop mode;
  • TrailingStop - profit in points to activate the trailing stop;
  • TrailingGap - step for moving the trailing stop;
  • breakeven - enable/disable breakeven;
  • breakeven distance - the number of points to activate the breakeven;
  • breakeven pips - the number of points to place the breakeven;
  • magicm15 - number to start identifying EA orders (for example, if magicm15=1, orders will be opened from 1 to 8; if magicm15=5 from 5 to 13);
  • sl_m15 - stop loss for strategies running on M15;
  • tp_m15 - take profit for strategies running on M15;
  • sl_m30 - stop loss for strategies running on M30;
  • tp_m30 - take profit for strategies running on M30;
  • sl_H1 - stop loss for strategies running on H1;
  • tp_H1 - take profit for strategies running on H1;
  • sl_H4 - stop loss for strategies running on H4;
  • tp_H4 - take profit for strategies running on H4;
  • comment - comment to open orders;
  • NumberOfTry - the number of attempts to close, open and modify orders;
  • ECN - set SL and TP together with the order, or after it had been opened (for ECN accounts);
  • slippage - slippage;
  • m15sell - enable/disable sell orders on the M15 timeframe, true/false;
  • bbm15sell - Bollinger Band period on М15 for sell orders;
  • bbdm15sell - Deviations of Bollinger Band on М15 for sell orders;
  • maccim15sell - CCI Period on М15 for sell orders;
  • ccim15sell - value of CCI on М15 for sell orders;
  • fastemam15sell - Fast Ema Period of OsMA on М15 for sell orders;
  • slowemam15sell - Slow Ema Period of OsMA on М15 for sell orders;
  • sigm15sell - Signal SMA Period of OsMA on М15 for sell orders;
  • m15buy - enable/disable buy orders on the M15 timeframe, true/false;
  • bbm15buy - Bollinger Band period on М15 for buy orders;
  • bbdm15buy - Deviations of Bollinger Band on М15 for buy orders;
  • maccim15buy - CCI Period on М15 for buy orders;
  • ccim15buy - value of CCI on М15 for buy orders;
  • fastemam15buy - Fast Ema Period of OsMA on М15 for buy orders;
  • slowemam15buy - Slow Ema Period of OsMA on М15 for buy orders;
  • sigm15buy - Signal SMA Period of OsMA on М15 for buy orders.

Other settings are similar to the above ones and apply to M30, H1, H4, for buy and sell orders. For optimization disable appropriate values of timeframes and buy and sell orders.

Default settings are for the EURUSD pair, other set files are available in comments.

Backtest and Analysis

  • Backtest with 99% quality over 13 years;
  • Reliable trading on EURUSD, GBPUSD, USDJPY, USDCAD, AUDUSD.
Ali irwan
5166
Ali irwan 2017.08.17 15:25 
 

I confuse too many settings.

My backtest for 2 months result -27% to GBPUSD

Lee Bryant
2772
Lee Bryant 2016.12.30 11:55 
 

Great seller, system backtests well and is profitable over the long term.

Versão 1.4 2017.03.28
Added:
sl_atr: enable sl based on the ATR indicator
risksl: risk per trade for sl
risktp: risk per trade for tp
breakeven: enable/disable breakeven
breakeven distance: the number of points to activate the breakeven
breakeven pips: the number of points to place the breakeven
Versão 1.3 2017.02.13
Added:
The News Stop Trading system, which suspends trading during the news releases.
Trading in compliance with FIFO.
Percent can be set as a fractional value, for example: 0,5.
It is possible to enable virtual SL and TP.
It is possible to enable the trailing stop.
Versão 1.2 2017.01.19
Version 1.2 - 2017.15.01
Added:
information panel that displays Balance, profit today, profit yesterday, profit the day before yesterday
disable opening orders on Friday after the specified time
close open orders on Friday after the specified time
select fixed lot or percentage of free margin
Versão 1.1 2016.12.26
Version 1.1 - 2016.21.12
Added:
NumberOfTry - the number of attempts to close, open and modify orders.
check - set SL and TP together with the order, or after it had been opened (for ECN accounts).
slippage - slippage size.

Small optimization of the code, error handling by the EA, check for correctness of the sl and tp values and other changes.