OPEN-SOURCE SCRIPT

Crypto momentum strategy

アップデート済
This strategy is based on LazyBear's Squeeze Momentum indicator. It analyzes when the trend in the momentum is shifting, locating the peaks and the valleys, and takes those as sell and buy signals respectively. This is a long strategy, so it also takes into consideration the 50 period Exponential Moving Average to identify upward trends. If the closing price of the candle is above the 50EMA, and the slope of the 50EMA is trending upwards, then the buy signal is executed. If these conditions are not met, the buy signal is ignored.

This strategy works well with crypto trading on the day/week charts.

It has a profit ratio of 4:1 on average, and roughly half of the trades are profitable.
リリースノート
Change the strategy parameters to be standard (100000 initial balance, with 100% of equity invested in each trade)
リリースノート
Added setting to consider the behavior of the crypto market to enter trades. This improves the performance on lesser known coins that are very affected by the market, but has an adverse effect on big cap coins like Bitcoin and Ethereum (that have a great influence on the market). I recommend turning it off for these big coins, and leaving it on for all the others.

It works by polling the value of CRUPTOCAP:TOTAL, and checking if it's above its 50 ema, and if the ema is trending upwards. If these conditions are not met, the entry signal is ignored.
リリースノート
Use the closing value of the market instead of the low
リリースノート
Update documentation and credits
リリースノート
Cleanup chart
Exponential Moving Average (EMA)lazybearslope

オープンソーススクリプト

TradingViewの精神に則り、このスクリプトの作者は、トレーダーが理解し検証できるようにオープンソースで公開しています。作者に敬意を表します!無料で使用することができますが、このコードを投稿で再利用するには、ハウスルールに準拠する必要があります。 お気に入りに登録してチャート上でご利用頂けます。

チャートでこのスクリプトを利用したいですか?

免責事項