Hello Everyone,
I have been interested in algorithmic trading for a while now, and have picked up coding in Python/C++ 2 years ago, which made it possible for me to understand Pine Script (Trading View's proprietary language) fairly easily. I got interested in Bitcoin in 2013, but have only started actually investing in mid 2017. Making money during a bull run is easy but it's really the bear market that teaches you a lesson. So I went about and tried to avoid losses in future bear markets by digging into the analysis of financial time series. I looked around and found useful books, examples of pine script code, technical analyses from fellow chartists and sought out to combine it all into algorithms that can help prevent losses during the next bear market.
I came up with several profitable scripts, but let this be the first one I'm actually sharing with you guys. It draws data from all major Bitcoin exchanges (Hence this script will ONLY work for BTCUSD) and is based on CVI, Fractal Adaptive Moving Avergage ( FRAMA ), and some calculus operations to make sense of their relationship.
I tried to tidy the final version up as much as possible, so that it becomes straightforward to use. All you need to look at is when the bar becomes green/red, the bar height is just the integrated area since it's crossed the 0-line and can serve as a threshold on lower time frames to avoid noise.
I've got a degree in Chemistry, so don't take this as financial advice, but please do let me know what you think!
Note:
- This is a re-upload because the first version got pulled due to linking to Twitter
- Script works best with Hekin Ashi candles
Planned features:
- Reduce amount of signals on lower time frames
- Make it work better with normal candles
Suggestions?