Qorbanjf

DEMA/EMA & VOL (Short strategy)

Hello,
I am trying to build a short momentum strategy that is based off of the DEMA crossing under the EMA, but because many momentum strategies send too many signals, I have also implemented a volatility condition based on the average true range percentage (ATRP). Essentially, as momentum moves downwards + volatility (ATRP) moves upwards, it shorts the security. However, I am having an issue with exiting trades. I think this would be a great strategy if I could simply get the strategy to exit the trades. Does anyone mind looking through the source code and tell me what I might be doing wrong? In return, I would hope that this strategy could be useful to you in same way! Thank you for looking!
Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

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.

Want to use this script on a chart?