Damasta

Simple Trailing stop

Damasta Updated   
Since my exchange doesn't support trailing stop I made a script for it.

It is fully configurable, which means you can set the bars for calculation, the offset and sources for trigger and calculation.

The original purpose for me was to send a command to my bot. If you like it please comment and check out my other scripts.
Release Notes:
somehow the alertcondition didn't make it into initial release. Thus added now.
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?