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

Trend Me Leave Me - MetaTrader 5용 expert

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

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

The Expert Advisor works with one position (can be used on netting accounts). The direction of a new open signal is calculated depending on the direction of the last closed position (BUY or SELL) and the way that position was closed (by Stop Loss or Take Profit).

General principle:

  • If a position was closed by Take Profit, the next position will be opened in the same direction;
  • If a position was closed by Stop Loss, then the next position should be opened in the opposite direction.

Type of closing is determined in OnTradeTransaction() using ENUM_DEAL_REASON: the transaction and its type is accessed in OnTradeTransaction() first:

TRADE_TRANSACTION_DEAL_ADD - adding a deal to history. It is performed as a result of order execution or making operations with the account balance.

, and then the DEAL_REASON property is checked.

If the Breakeven parameter is not equal to zero, the position will be moved to breakeven if possible.

After determining the direction in OnTradeTransaction(), check for further conditions:

  • To open a BUY position, the SAR indicator on bar #0 must be less than the Close of bar #0, and ADX on bar #0 must be less than 20.
  • To open a SELL position, the SAR indicator on bar #0 must be greater than the Close of bar #0, and ADX on bar #0 must be less than 20;


Input Parameters

  • Stop Loss (in pips) - Stop Loss value;
  • Take Profit (in pips) - Take Profit value;
  • Risk in percent for a deal - risk percent per trade;
  • Breakeven (in pips) - the breakeven value;
  • ADX: averaging period - ADX indicator parameter;
  • SAR: price increment step - acceleration factor - SAR indicator parameter;
  • SAR: maximum value of step - SAR indicator parameter.

Default parameters, EURUSD,M30 from 2017.01.08 to 2018.02.05

Trend Me Leave Me

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

AO_Divergence AO_Divergence

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

EMA Cross Contest Hedged EMA Cross Contest Hedged

A trading system based on three indicators: two iMAs (Moving Average) and iMACD (Moving Average Convergence/Divergence, MACD).

BB-Decimal BB-Decimal

Colored Bollinger Bands

D_Oscillator D_Oscillator

RSI+CCI in one window.