Watch how to download trading robots for free
Find us on Twitter!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Views:
4775
Rating:
(27)
Published:
2017.08.10 12:38
Updated:
2018.02.28 10:26
EveningStar.mq5 (25.94 KB) view
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

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
The EA only operates when a new bar appears.

Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/18507

EveningStar EveningStar

The indicator shows the "Evening Star" pattern.

CCheckNewCandle CCheckNewCandle

The class monitors the emergence of a candlestick

XROC2_VG_HTF XROC2_VG_HTF

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

Exp_XROC2_VG_Tm Exp_XROC2_VG_Tm

The Exp_XROC2_VG_Digit_Tm Expert Advisor trades based on signals generated by the XROC2_VG oscillator.