Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

Candle Shadow Percent - MetaTrader 5 Expert | Forex Indicator Download - MT4/MT5 Resources

author EAcpu | 3 reads | 0 comments |

The Expert Advisor is based on the candlestick shadow percentage indicator of the same name. Lot size is calculated based on risk value as a percentage of available margin.

Note: In this Expert Advisor, it is assumed that the Candlestick Percent Indicator is located in the \Indicators\MyInd\Candels \ folder, as can be clearly seen from OnInit()

  m_money.Percent(risk); //--- Create a handle to a custom indicator Handle_i custom = custom (m_symbol.Name(), period (), “MyInd\\Candels\\Candle shadow percentage” ,
                          __1__,

You need to edit the path of the Candle Shadow Percent indicator in OnInit (if it is in another folder).

The Expert Advisor only performs operations when new ones appear and does not work within bars.

Conditions for opening a position:

Debugging suggestions: first adjust only the parameters of the upper shadow line, and then only adjust the parameters of the lower shadow line.


Attachment download

📎 candle_shadow_percent.mq5 (27.69 KB)

Source: MQL5 #17940

Verification code Refresh