Engulfing Candle cBot
Engulfing Candle cBot
10 Jul 2017, 14:09
Hi,
I am new to coding, and am finding it very difficult to code the following even thought it may be very simple, i have searched the forum if anyone has already implemented it however i cant find anything.
Would anyone be able to code me a cBot for the following rules;
Bullish Engulfing Candle
Low1<Low2
Open1<Open2
High1>High2
Close1>CLose2
When this pattern is formed, i want it to place a Buy Stop at the high of the bullish candle, and Stop Loss and the low of the candle. However everytime a new candle is formed i want it to move the Stop Loss to the low of the new candle only if the low is above the previous candles low.
Bearish Engulfing Candle
Low1<Low2
Open1>Open2
High1>High2
Close1<Close2
When this pattern is formed, i want it to place a Sell Stop at the low of the bearish candle, and Stop Loss and the high of the candle. However everytime a new candle is formed i want it to move the Stop Loss to the high of the new candle only if the high is less than the preious candles high.
I would be very greatful if somone could help me out.
Thank you
Nadeem