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

This Expert Advisor is rewritten from MQL4 and was originally published here https://www.mql5.com/en/code/7756 by its author George-on-Don.

How It Works

First, the price channel is determined (maximum High (MaxH) and minimum Low (MinL) over the period specified in the parameters). The obtained values are then used to calculate the reference level (MaxH+MinL+Close)/3.

Signals for opening a position appear as follows: if the bar closing price is below the upper limit of the channel and above the reference level, we get a Sell signal. If the bar closing price is above the lower limit of the channel and below the reference level, we get a Buy signal. 

Signals for closing a position appear as follows: if the High price of the closed bar is equal to the upper limit of the channel and the upper limit value of the channel is equal to the value on the previous bar, we get a signal for closing a Buy position. If the Low price of the closed bar is equal to the lower limit of the channel and the lower limit value of the channel is equal to the value on the previous bar, we get a signal for closing a Sell position. These conditions can very rarely be satisfied so in addition to the above closing options, the Expert Advisor also uses Stop Loss. The Stop Loss value is determined using the ATR indicator, whereby the level is calculated from the channel limits: from the lower limit when buying and from the upper limit when selling.

The Expert Advisor takes profit using a trailing stop function. 

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

 

Parameters

  • Lots - the order volume; when 0, the MaxR parameter is used.
  • SndMl - sends messages by e-mail when the Expert Advisor opens and closes positions.
  • DcF - lot reduction factor at losses. If the value is 0, the reduction is not carried out. The lower the value, the greater the lot reduction. If the lot cannot be reduced, the minimum lot is used.
  • MaxR - maximum risk from 0-1 (share of free funds). It is effective when Lots value is 0
  • pATR - the ATR period for Stop Loss.
  • rChannel - price channel period.
  • Trailing - trailing level; when 0, the trailing is off.

The original version has the isFloatLots parameter that switches between the variables Lots and MaxR. In this version, it is replaced by the Lots parameter. If Lots is 0, the MaxR parameter is used.

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

Gann_Multi_Trend Gann_Multi_Trend

The indicator of the Micro, Middle and Main Trends

MultiRVISignal MultiRVISignal

MultiRVISignal displays information on current trends using values of the four RVI indicators obtained from different time frames.

MA2CCI MA2CCI

Expert Advisor that operates based on two МАs and CCI

Fast Trading Panel Fast Trading Panel

Fast Trading Panel - the panel for fast trading