OPEN-SOURCE SCRIPT

Volume Spike Strategy

Updated
This is a Pine Script implementation of “Capitalize AI: Volume Spike Strategy" by Bitcoin Trading Challenge (copied with permission).

Original Capital AI formula :

If BTC/USD 1 minute volume > BTC/USD average volume in 20-1m bar by at least 500% and if BTC/USD is below the MA(5,1m,close) of BTC/USD then buy 10,000 USD WORTH of BTC/USD

Tested on XBTUSD 1 minute.

snapshot

Original strategy is buy-only. Option for sells was added (enable in settings).

First published script -- comments/feedback appreciated


Release Notes
Enable "sell" opiton
cryptoVolume

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?


USDT(ERC20):0x89c1ada92d53e88a06131a28693fd46101bdbecb
LTC:LWx9nAqbfZcWB5GBxUuBEpdBCFyVAmSFjm
ETH(ERC20):0x89c1ada92d53e88a06131a28693fd46101bdbecb
BTC:113pXq5Lxdp3UUgTpRng24sxX7YRE9dR61p
Also on:

Disclaimer