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

Bands 2 - MetaTrader 5용 expert

게시자:
Vladimir Karputov
조회수:
5138
평가:
(18)
게시됨:
2018.06.18 09:49
Bands 2.mq5 (41.78 KB) 조회
MQL5 프리랜스 이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

Idea by: Scriptor.

MQL5 code by: Vladimir Karputov.

This strategy is based on analyzing the values of indicator iBands (Bollinger Bands, BB) at bar #0 relative to the close price of bar #0. Where the Close price of bar #0 is within indicator Bollinger Bands and there are no pending orders, place three Buy Stop and three Sell Stop orders with a step of Step between pending orders.

At the same time you can set for each pair of orders your own Take Profit level (First Take Profit, Second Take Profit, and Third Take Profit). Stop Loss can be placed either by indicator Bollinger Bands or by indicator Moving Average - this will be the responsibility of parameter Stop loss trailing.

The orders may be placed within the time interval from Hour start to Hour end. Each order is assigned with a life time equal to parameter Hour end: If, for instance, Hour end is 23, it means that all pending orders will be automatically deleted at 11 p.m. All pending orders will also be removed at each new bar - thus, at each new bar, orders Buy Stop and Sell Stop will be placed at the changed prices of indicator Bollinger Bands.

You can enable trailing in the EA - for this purpose, parameter Trailing Stop must be greater than zero. You can also use the trailing feature to place a Stop Loss order to a breakeven. For this, you should select the StopLoss NONE value for parameter Stop loss type. At the same time, you should keep in mind that there will be hanging positions with losses. Therefore, you will have to close such positions manually.


Input parameters

  • Lots - pending order volume;
  • Hour start - starting hour of the working time interval;
  • Hour end - ending hour of the working time interval;
  • Stop loss type - selecting the type of placing the Stop Loss, i.e., by Moving Average, by Bollinger Bands, or disable them at all;
  • First Take Profit - Take Profit for the first pair of orders in the series;
  • Second Take Profit - Take Profit for the second pair of orders in the series;
  • Third Take Profit - Take Profit for the third pair of orders in the series;
  • Trailing Stop - trailing;
  • Trailing Step - trailing step;
  • Step between pending orders - step between pending orders.
  • magic number - unique identifier for the EA.

Moving Average indicator parameters

  • Moving Average: averaging period - averaging period;
  • Moving Average: horizontal shift - horizontal shift of the indicator;
  • Moving Average: smoothing type - type of the averaging method;
  • Moving Average: type of price - the type of price to calculate the indicator;

Bollinger Bands indicator parameters:

  • Bands: period for average line calculation - average line calculation period;
  • Bands: horizontal shift of the indicator - horizontal shift of the indicator;
  • Bands: number of standard deviations - number of standard deviations;
  • Bands: type of price - price type.

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

Exp_AverageChangeCandle Exp_AverageChangeCandle

A trading system based on the signals of indicator AverageChangeCandle.

XStdDevSpeed_direction XStdDevSpeed_direction

Indicator XStdDevSpeed_direction shows the information on the market volatility, using the values of indicator XStdDevSpeed with a fixed timeframe.

2XMA_Ichimoku_Signal 2XMA_Ichimoku_Signal

A semaphore signal indicator using the algorithm of indicator 2XMA_Ichimoku_Oscillator.

Martingale Martingale

Dynamic managing the lot size depending on the balance.