Hi Traders,

Can someone help me with a code to do the following:
1. A bearish candle is formed;
2. A Buy stop is set at the High of the previous candle;
3. A Stop loss is set at the Low of the previous candle;
4. The stop loss is moved to the last formed candle (which is the previous of the current).