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

Fluctuate - MetaTrader 5용 expert

게시자:
Vladimir Karputov
조회수:
5662
평가:
(23)
게시됨:
2018.12.28 12:59
업데이트됨:
2019.01.17 11:29
Fluctuate.mq5 (71.41 KB) 조회
이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

Idea by: Nikolay Khrushchev

Code mq5 by: barabashkakvn

The EA works on hedge accounts only!

Swing-based Expert Advisor: the EA sets a pending Sell stop or Buy stop order with an increased lot and in the opposite direction.

Inputs:

  • Stop Loss, in pips (1.00045-1.00055=1 pips)
  • Take Profit, in pips (1.00045-1.00055=1 pips)
  • Trailing Stop (min distance from price to Stop Loss), in pips
  • Trailing Step, in pips (1.00045-1.00055=1 pips)
  • Money management: Lot OR Risk (only for first positions) - lot calculation type for the first position: fixed lot or in risk % relative to the deposit
  • The value for "Money management"
  • //--- trading logic
  • Step, in pips (1.00045-1.00055=1 pips) - pending stop order step
  • Lot coefficient (for a series of deals) - lot increase ratio for subsequent positions
  • Multiply the volume of all positions - enable/disable multiplying the overall volume of open positions by "Lot coefficient"
  • Maximum number of positions
  • Maximum volume of all positions
  • Profit target in money ("0.0" -> OFF)
  • Minimum Equity (in percent of balance) -> pause in trade
  • Close all positions at startup
  • //---
  • magic number - unique EA's ID
  • Start hour
  • End hour

Each time, the EA starts a trading cycle after falling within the allowed time interval between Start hour and End hour provided that there are no pending orders and no positions opened by this EA. An open position is accompanied by a pending stop order. A position volume depends on the Money management and The value for "Money management" parameters, while the volume of a pending Stop order depends on the Lot coefficient and Multiply the volume of all positions parameters.

Position direction is determined according to the following rule:

Close of bar #0 > Close of bar #1 -> open BUY; OTHERWISE -> open SELL

Pending stop order type depends on an open position:

if BUY, a Sell stop is set; if SELL, a Buy Stop is placed

A pending stop order is set at Step from the current price. Trailing Stop  and Trailing Step are enabled further on together with the profit tracking mechanisms (Profit target in money and Minimum Equity). 

When a pending order is triggered, a pending stop order with an increased lot is set again in the opposite direction.


It is recommended to run optimization on small timeframes. First of all, look for the Stop LossTake Profit and Step parameters.

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

GannSwing GannSwing

Indicator Gann Swing

Rubicons_CCI_Cross Rubicons_CCI_Cross

Indicator Rubicons CCI Cross

Volatility_Ratio2 Volatility_Ratio2

Indicator Volatility Ratio2

Lot Check Lot Check

This is a utility for rounding the lot size correctly