OPEN-SOURCE SCRIPT

Bullish and Bearish Engulfing Strategy

13006
I've been trying to put a stop loss in the High or Low of the last second bar after I open a position but in this example the only way to close it, is with the opposite action. Does anyone know how to put a stop loss and order with just stop loss and close when there is a bullish or bearish engulfing bar?

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.