EveningStar – EA MetaTrader 5

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.

Indicator Evening Star

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
Alternative:  B-clock with Spread - indicator MetaTrader 4
The EA only operates when a new bar appears.


πŸ“ˆ ROBOTFX MetaTrader Expert Advisors and Indicators to maximize profits and minimize the risks