Ticaret robotlarını ücretsiz olarak nasıl indirebileceğinizi izleyin
Bizi Facebook üzerinde bulun!
Fan sayfamıza katılın
Komut dosyasını ilginç mi buldunuz?
Öyleyse bir link gönderin -
başkalarının da faydalanmasını sağlayın
Komut dosyasını beğendiniz mi? MetaTrader 5 terminalinde deneyin
Uzman Danışmanlar

Candle shadow percent - MetaTrader 5 için Uzman Danışman

Görüntülemeler:
5451
Derecelendirme:
(19)
Yayınlandı:
2017.05.29 13:50
Güncellendi:
2018.02.27 12:48
Bu koda dayalı bir robota veya göstergeye mi ihtiyacınız var? Freelance üzerinden sipariş edin Freelance'e git

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 tarafından Rusçadan çevrilmiştir.
Orijinal kod: 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.