The EA opens pending orders when a hammer-type candle appears (with a large shadow). SL adviser puts for the shadow at a distance of SL points from it. TP is equal to the size of the shadow minus TP. Additional features: trailing stop, breakeven, time filter.


Parameters:

  • TIMEFRAMES = 0;
  • candllevel = 50; / / candle Size at least
  • candllshadow = 180; / / candle shadow % of the candle body (at least)
  • Step = 0; //distance from the candle to the pending order
  • BarLife = 3; //how many candles does the pending order live for
  • StopLoss = 20, / / SL by Low/High + – pips
  • TakeProfit = 0; / / TP by shadow – pips
  • TrailingStop = 0; //length of the trail, if 0 then there is no trail
  • TrailingStart = 0; //when to enable the trail, for example after reaching 40 pips
  • TrailingStep = 0; //trailing step-move the stop loss no closer than TrailingStep
  • NoLoss = 0, //transfer to breakeven for the specified number of profit points, if 0 then there is no transfer to breakeven
  • MinProfitNoLoss = 10; / / minimum profit when transferring to breakeven
  • MaxOrders = 5; //maximum number of unidirectional orders in the market
  • Magic = 0; / / magic
  • Lot = 0.0;
  • RiskPercent = 5; / / percentage of the balance to calculate the lot
  • TimeStart = 0, / / time limit for the adviser
  • TimeEnd = 24; //do not open orders and close deposits if the time is not between TimeStart and TimeEnd

The adviser is free. About its improvements please contact :

  • cmillion@narod.ru
  • Skype: mqlcmillion
  • WhatsApp +79283690333
  • Telegram:   mqlcmillion

Cm Shadow Candles
Cm Shadow Candles
cm_Shadow-Candles.mq4
43.1 KiB
180 Downloads
Details