Download MetaTrader 5

Watch how to download trading robots for free

Interesting script?
So post a link to it -
let others appraise it

You liked the script? Try it in the MetaTrader 5 terminal


Candle shadow percent - indicator for MetaTrader 5

| English Русский 中文 Español Deutsch 日本語 Português

votes: 17
2017.05.29 13:50

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


  • The candlestick body parameter
  • The minimum size of the candlestick body
  • Parameters of the upper shadow
  • true -> display candlesticks based on the upper shadow 
  • The size of the upper shadow (as a percentage of the body) 
  • true -> minimum size, false -> maximum size
  • Symbol code (32-255)
  • Parameters of the lower shadows
  • true -> display candlesticks based on the lower shadow 
  • The size of the lower shadow (as a percentage of the body)
  • true -> minimum size, false -> maximum size
  • Symbol code (32-255)
  • The shift parameter
  • The vertical shift of the arrows (0-255)

An example of search based on the upper shadow, the size of the upper shadow is set as the MAXIMUM size. In other words, we are looking for the upper shadow, which does not exceed the specified MAX value:

Candle shadow percent

An Expert Advisor based on this indicator is available here: Candle shadow percent.

Translated from Russian by MetaQuotes Software Corp.
Original code:

Candle Shadow Candle Shadow

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

Exp_CloseAllPositionsByTime Exp_CloseAllPositionsByTime

The Expert Advisor closes all positions opened on the account, if the current server time has exceeded the time limit specified in the input variables.

Candle shadow percent Candle shadow percent

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

StrangeIndicator_HTF StrangeIndicator_HTF

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