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

The Expert Advisor is based on the indicator with the same name Candle shadow percent. Lot is calculated based on the risk value as a percentage of free margin.

Attention: in this Expert Advisor, it is assumed that the Candle shadow percent indicator is located in the \Indicators\MyInd\Candels\ folder, which is clear from OnInit()

   m_money.Percent(Risk);
//--- create handle of the custom indicator
   handle_iCustom=iCustom(m_symbol.Name(),Period(),"MyInd\\Candels\\Candle shadow percent",
                          __1__,

You will need to edit the path to the Candle shadow percent indicator in OnInit, if it is located in another folder.

The Expert Advisor only performs actions at the moment of a new emergence, and it does not work inside the bar. 

Position opening conditions:

  • if the value of the "Candle shadow percent" indicator on the bar indexed 1 in the 0 buffer ("BufferTop") is not equal to zero, i.e. an there is an arrow on this bar, Sell will be opened
  • if the value of the "Candle shadow percent" indicator on the bar indexed 1 in the 1 buffer ("BufferLow") is not equal to zero, i.e. an there is an arrow on this bar, Buy will be opened

Recommendations for debugging: first adjust parameters only for the upper shadow, then only for the lower shadow.

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

Candle shadow percent Candle shadow percent

The indicator finds candlesticks with a minimum or maximum shadow size. Limitation on the size of the candlestick body.

Candle Shadow Candle Shadow

The indicator finds candlesticks without an upper or lower shadow. The indicator style is DRAW_ARROW.

StrangeIndicator_HTF StrangeIndicator_HTF

The StrangeIndicator indicator with the timeframe selection option available in its input parameters.

CloseAllPositions CloseAllPositions

The script closes all open positions on the current account.