OPEN-SOURCE SCRIPT

"Buy signal" from Cipher B for 3commas

Updated
This is another modification for cipher B indicator from VuManChu. I also would like to acknowledge "The Art of Trading" channel in youtube for their mastery pine script course.

This script is designed to send alerts to 3commas platform. In strategy.entry in comment option, you can incorporate your token for your bot.

The buy signal accomplishes only when BTC is above simple moving average (SMA).
When BTC crosses down SMA, any position closes immediately.

The parameters were tuned for this particular plot.


Release Notes
To make it safer I added local trend filter, so position will be opened after "buy signal" from cipher B only when both BTC and pair of interest uptrending. Local trend filter defined as sma function (length=20, timeframe=1H). I modified cancel all function and add the checkbox this option, so your position can be closed if price cross down the sma curve, reflected as yellow on the plot.
Trend Analysistrendfollowing

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 publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?


Also on:

Disclaimer