TradingView
Mtrl_Scientist
Oct 8, 2018 1:47 PM

BTC Precognition - Mtrl_Scientist 

Bitcoin / DollarBitfinex

Description

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?

Release Notes

- Works better with normal candles now, as internal calculations are forced to be done on Heikin Ashi, regardless of chosen candle format
- Added Overbought/Oversold conditions (orange) with adjustable threshold, based on normalized price action helper indicator

Reminder: Only for use with BTCUSD, as it draws data from specific exchanges!
Comments
Dianthus
@Tartarus116 get here also the order limit (2000) reached. Can you extend it pls?
Mtrl_Scientist
@Kezax, You need to increase the time frame. Trading View only allows up to 2000 orders.
crypto_nate
Really excited to try this out. Thanks for sharing with the community!
Mtrl_Scientist
@crypto_nate, You're welcome! Note that it works best with Heikin Ashi and longer time frames. I'm working on improving the results on shorter time frames though.
Arpi2018
Great work,keep it up,i am following you. One suggestion, do test on normal candlesticks instead heikin ashi.
Mtrl_Scientist
@Arpi2018, Thanks! Working on improving results for normal candles :)
taoqi
thank you
More