echepata

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.
Phát hành các Ghi chú: Change the strategy parameters to be standard (100000 initial balance, with 100% of equity invested in each trade)
Phát hành các Ghi chú: 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.
Phát hành các Ghi chú: Use the closing value of the market instead of the low
Phát hành các Ghi chú: Update documentation and credits
Phát hành các Ghi chú: Cleanup chart
Mã nguồn mở

Với tinh thần của TradingView, tác giả đã xuất bản tập lệnh theo mã nguồn mở, vì thế trader có thể dễ dàng hiểu và tùy chỉnh được. Bạn có thể sử dụng miễn phí, hoặc tùy chỉnh lại mã đã được cấp phép bởi Quy tắc Chung. Bạn có thể sử dụng nó trên biểu đồ.

Bạn muốn sử dụng tập lệnh này trên biểu đồ?

Bình luận

Good long strategy,but it's a bear market now
Phản hồi
echepata liuqiba
@liuqiba, could it be turning now 🤔 ?
Phản hồi
liuqiba echepata
@echepata, Not in my opinion now
Phản hồi
Hey @echepata - this is a really interesting script, thanks for sharing. Learning you can poll the value of another ticker has just levelled up my knowledge.

I have a (dumb) question related to strategy parameters... I've been writing a few of my own scripts which seem profitable in backtesting and I've set the initial balance / order size to match my account. Is the reason you set your parameters at 100,000 / 100 done as an example with the expectation people will amend to their own sizing? I ask because the results can swing wildly depending on the parameters used. Thanks!
Phản hồi
echepata ADHDCRYPT0
Hey @ADHDCRYPT0, I'm glad you found my script useful! :) :) I set them to those values because that is what I saw in some other strategies, and I assumed (probably wrongly) that that's what everyone did! I like those values because they are nice, round values, but of course, my account is nowhere near that :p.

I think the value that affects the strategy the most is the percentage of equity for each trade. That will change the overall percentage of growth for the strategy. Changing the initial amount of 100k doesn't change the percentage performance, which is, IMO, what makes or breaks a strategy.

Happy to hear if you've noticed other scripts using different "standard" parameters, and that way I can adjust mine to those values as well. Or maybe I should just remove those parameters and let TradingView to set the default? What I've found with TV's defaults is that they are quite underwhelming... I think it only stakes 1 "unit" per trade... which could be a lot (for BTC for example) or close to nothing (like for DOGE)

Cheers!
Phản hồi
ADHDCRYPT0 echepata
@echepata, ah yeah that makes total sense. I think people use a range of default values. I've just published a strategy and used 1000 /100% and it looks pretty good. I'd love your feedback on it if you're up for taking a v quick look? I'm always keen to see how I can improve my strategies!

It's here >

Thanks!
Phản hồi
echepata ADHDCRYPT0
Hey @ADHDCRYPT0, that's very interesting. I've struggled doing strategies that work on the shorter timeframes, so kudos! I noticed that you have tuned this particular strategy for ETH. I would be wary of massaging the parameters too much to obtain the results you want. Doing this has a name, but I could not find it!

Also, I would recommend including commissions in your strategy, specially on the shorter timeframes where the gains are very small percentages. I've found that even a 0.1% commission per movement can break a scalping strategy. Of course, that is only if you are paying commissions on your trades, if not, then you must tell me how you are doing it! :D

Cheers!
Phản hồi
ADHDCRYPT0 echepata
@echepata, thanks for the feedback! I'll have to research the name of messing with parameters to suit different pairs. It's working well so far, but good to have all the info on pros/cons.

Thanks for suggesting the inclusion of commission - annoyed I missed that in the first place. Especially as I'm bot trading futures! I've added it based on my personal Binance fee structure and the strat is still 80%+ net profit on the 5M chart which is good.

Thanks again!
Phản hồi
lth_elm ADHDCRYPT0
@ADHDCRYPT0, @echepata I think the name you're looking for is "overfitting" ;) And yeah definitely a hard habit to avoid when the results looks so attractive haha
Phản hồi
echepata lth_elm
@lth_elm, Yes! Thank you! Sometimes I find myself overfitting too... it's very easy to fall into
Phản hồi