거래 로봇을 무료로 다운로드 하는 법을 시청해보세요
당사를 Telegram에서 찾아주십시오!
당사 팬 페이지에 가입하십시오
스크립트가 흥미로우신가요?
그렇다면 링크 to it -
하셔서 다른 이들이 평가할 수 있도록 해보세요
스크립트가 마음에 드시나요? MetaTrader 5 터미널에서 시도해보십시오
조회수:
6093
평가:
(26)
게시됨:
2012.11.16 13:09
업데이트됨:
2016.11.22 07:32
MQL5 프리랜스 이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

This Expert Advisor is rewritten from MQL4 and was originally published here https://www.mql5.com/en/code/8101 by its author izhutov,.

How It Works

Three MA's are used.

Conditions for buying:

The fast moving average crosses the middle moving average upwards. The fast MA is above the slow MA, the fast MA is above the slow MA from the previous bar, the fast MA on the previous bar is above the slow MA, the fast MA on the previous bar is above the slow MA from the previous bar. The middle MA is above the slow MA, the middle MA is above the slow MA from the previous bar, the middle MA on the previous bar is above the slow MA, the middle MA on the previous bar is above the slow MA from the previous bar.

Conditions for selling:

The conditions for selling and buying mirror each other. The fast moving average crosses the middle moving average downwards. The fast MA is below the slow MA, the fast MA is below the slow MA from the previous bar, the fast MA on the previous bar is below the slow MA, the fast MA on the previous bar is below the slow MA from the previous bar. The middle MA is below the slow MA, the middle MA is below the slow MA from the previous bar, the middle MA on the previous bar is below the slow MA, the middle MA on the previous bar is below the slow MA from the previous bar.

The lot size for positions to be opened can be fixed or proportional to free margin. There is an additional function to reduce the lot size at losses - the more consecutive losing trades, the smaller the lot size. A trailing stop can be set for an open position.

The image below shows the performance of the Expert Advisor in the strategy tester's visual mode.

 

Parameters

  • MaximumRisk - Risk (used if Lots=0).
  • Lots - Lot.
  • DecreaseFactor - Lot reduction factor after losing trades. 0 - reduction disabled. The smaller the value, the greater the reduction. Where it is impossible to reduce the lot size, the minimum lot position is opened.
  • TakeProfit - Take Profit in points.
  • StopLoss - Stop Loss in points.
  • TrailingStop - Trailing Stop in points. If the value is 0, the Trailing stop function is disabled.
  • FastPeriod - Fast МА period.
  • FastShift - Fast МА shift.
  • MiddlePeriod - Middle МА period.
  • MiddleShift - Middle МА shift.
  • SlowPeriod - Slow MA period.
  • SlowShift - Slow МА shift.

Note

It is not recommended to set FastShift, MiddleShift, SlowShift values at less than 1. The Expert Advisor ckecks the indicators on the zero bar only when the new bar opens (it is not supposed to work on the zero (forming) bar). The original version does not have any external parameters of moving averages.

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

ATR_OpenIndent_v2 ATR_OpenIndent_v2

The indicator shows the opening price of the senior time frame (e.g., 1-day time frame) and draws line indents to the opening price, thus forming a range.

CSelectFile CSelectFile

The file selection graphical interface class.

Exp_3rdGenerationXMA Exp_3rdGenerationXMA

The Expert Advisor based on the change in the 3rdGenXMA moving average direction.

CCI T3 Tick CCI T3 Tick

The CCI indicator smoothed using Tillson's algorithm.