거래 로봇을 무료로 다운로드 하는 법을 시청해보세요
당사를 Telegram에서 찾아주십시오!
당사 팬 페이지에 가입하십시오
스크립트가 흥미로우신가요?
그렇다면 링크 to it -
하셔서 다른 이들이 평가할 수 있도록 해보세요
스크립트가 마음에 드시나요? MetaTrader 5 터미널에서 시도해보십시오
Experts

EMA Cross Contest Hedged - MetaTrader 5용 expert

게시자:
Vladimir Karputov
조회수:
8963
평가:
(24)
게시됨:
2018.03.01 11:55
MQL5 프리랜스 이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

The author of the ideaScriptor, the author of the MQL5 code: barabashkakvn.

An intersection of two Moving Averages based on the data of two bars is searched for generating a signal:

EMA Cross Contest Hedged

The number of the current bar can be specified in Trade bar: either bar #0 or bar #1.

If Use MACD is set to true, the EA will also take into account the position of the main MACD line relative to zero (the Trade bar parameter).

If a signal is generated when there are no open positions, a position is opened and four hedging orders are placed at a distance of Hedge level and the lifetime equal to Expiration pending orders: Buy Stop orders are placed in case of a BUY position; Sell Stop orders are placed in case of a SELL position.

Positions can be closed by an opposite signal if Close the opposite positions parameter is set to true. For example, SELL positions will be closed if a BUY signal is generated.

Once positions are opened, Trailing Stop with Trailing Step will be enabled for them.


Input Parameters

  • Lots - the volume of position to open;
  • Stop Loss (in pips) - Stop Loss value;
  • Take Profit (in pips) - Take Profit value;
  • Trailing Stop (in pips) - trailing value;
  • Trailing Step (in pips) - trailing step value;
  • Hedge level (in pips) - distance between pending orders;
  • Close the opposite positions - the flag to close opposite positions;
  • Use MACD - the flag to use MACD;
  • Expiration pending orders (seconds) - pending order expiration time;
  • MA short: averaging period - fast MA calculation parameter;
  • MA long: averaging period - slow MA calculation parameter;
  • Trade bar - the bar number to trade on;
  • magic number - unique identifier for the EA.

Example of testing EURUSD, M30:

MetaQuotes Ltd에서 러시아어로 번역함.
원본 코드: https://www.mql5.com/ru/code/19945

SAR RSI MTS SAR RSI MTS

A trading system based on two indicators: iSAR (Parabolic SAR) and iRSI (Relative Strength Index, RSI). Lot calculation based on the risk value as a percentage of free margin.

Ambush Ambush

The Expert Advisor uses Buy Stop and Sell Stop orders to trade news and large price movements.

AO_Divergence AO_Divergence

The indicator searches for divergences and displays them on the chart of the custom AO indicator.

Trend Me Leave Me Trend Me Leave Me

The EA trades using the signals of iADX (Average Directional Movement Index, ADX) and iSAR (Parabolic SAR) indicators. The profit/loss of the last closed position is taken into account. Positions are moved to breakeven.