Expert Advisors • Indicators • Scripts • Libraries

MQL.RobotFX.org is the biggest collection of MetaTrader expert advisors (MT5 & MT4), indicators, scripts and libraries that can be used to improve trading results, minimize risks or simply automate trading tasks

MetaTrader 5 Expert Advisor | EveningStar

The EveningStar Expert Advisor trades the "Evening Star" pattern. The below image shows an example of operation of the underlying indicator, while the EA does not draw anything on the chart.

MetaTrader Experts, Indicators, Scripts and Libraries

Lot is calculated based on the risk value as a percentage of free margin.

For more information about the "Evening Star" pattern please see the EveningStar indicator code.

Expert Advisor parameters:

  • Evening Star - the type of position to open (Buy or Sell)
  • Take Profit (in pips) 
  • Stop Loss (in pips)
  • Risk in percent for a deal - risk per trade as percent of free margin
  • Shift in bars (from 1 to 255)
  • Gap. true -> gap is taken into account
  • Candle 2 type. true -> type of candle 2 is taken into account
  • Candle sizes. true -> candle sizes is taken into account
  • true -> close opposite positions - handling of opposite positions
  • magic number
The EA only operates when a new bar appears.
18507

Best MetaTrader Indicators + Profitable Expert Advisors