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

20/200 pips - Simple profitable Expert Advisor - MetaTrader 5용 expert

조회수:
22673
평가:
(50)
게시됨:
2010.11.05 17:40
업데이트됨:
2016.11.22 07:32
이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

A well-known "20/200 pips" Expert Advisor is now available in MQL5.

The code is well commented.

The trading rules are:

At some moment we look at the price difference for a certain time. If the price difference is negative and greate than some specified bias, we sell, if it positive, we buy.

It's named 20/200 pips" because it uses a fixed values of TakeProfit/StopLoss (20/200, 4-digit prices). For 5 digit prices the TP/SL ratio is 200/2000.

The Expert Advisor is designed for EUR/USD 1H, but you can try it at other symbols.

Note that code doesn't have any error processing rountines, so it cannot be used in real trading in its current form. The values of Expert Advisor parameters have been optimized for 1999-2006, so at present time the parameters aren't optimal. But even using the old parameters it's profitable in long term trading:

20/200 pips - Simple profitable Expert Advisor

The input parameters are (5-digit prices):

  • TakeProfit=200;   // Take Profit in pips
  • StopLoss=2000;   // Stop Loss in pips
  • TradeTime=18;   // Trade time GMT
  • t1=7;                  // First Bar index for Open price, for example Open[t1].
  • t2=2;                  // Second Bar index for Open price, for example Open[t2].
  • delta=70;            // Bias of Price Difference between the bars Open[t1] and Open[t2] for trading signals
  • lot=0.1;              // Lot size

For 4 digit prices the values should be changed to:

  • TakeProfit=20;    // Take Profit in pips
  • StopLoss=200;    // Stop Loss in pips
  • TradeTime=18;   // Trade time GMT
  • t1=7;                  // First Bar index for Open price, for example Open[t1].
  • t2=2;                  // Second Bar index for Open price, for example Open[t2].
  • delta=7;             // Bias of Price Difference between the bars Open[t1] and Open[t2] for trading signals
  • lot=0.1;              // Lot size

The information about this trading system, its history and improvement details you can find here.

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

CIniFile class CIniFile class

This class provides methods for working with Windows *.ini files.

Multicurrency OnTickMarketWatch tick event handler Multicurrency OnTickMarketWatch tick event handler

The OnTick event handler is designed to proceed the ticks for a certain symbol. This is the version of Multicurrency tick event handler.

FantailVMA FantailVMA

This indicator is a combination of moving average and ATR indicators.

ChartReinit ChartReinit

Chart reinitialization with recalculation of all chart indicators.