OrionAlgo

BTC ATH ROI

OrionAlgo Atualizado   
This indicator shows the ROI % of Bitcoin from when it passed its ATH of the previous bull cycle. I found it interesting that each time it crossed its ATH it took around 260-280 days to peak for each one. This bull run seems to follow between both of the previous bull runs including this recent dip.

There are a couple issues I want to fix but can't figure out:
1. You need to completely scroll out and move towards 2013 on the Daily chart for all 3 lines to show up. Would be nice to load all of that data at the start.
2. I can't query the value of the plots after they have been offset. This would be useful to create a prediction bias for the current plot so would could see where btc might go.

If you peeps know of a way to load all data or query plot values after offsets, please share. That would be awesome.
Notas de Lançamento:
Cleaned up the plots a bit by moving smoothing and rsi into roi function.
Notas de Lançamento:
Created a new function to try to reference the historical bars. This fixes drawing issues up to the current bar, but not past the current bar. User still needs to scroll out to get the first historical bars, but we are on the right track.
Using the new v2 function I was able to create a 'prediction' curve based on previous cycles and current cycle.
Script de código aberto

Dentro do verdadeiro espírito TradingView, o autor deste script publicou ele como um script de código aberto, para que os traders possam compreender e checar ele. Um viva ao autor! Você pode usá-lo gratuitamente, mas a reutilização deste código em uma publicação é regida pelas Regras da Casa. Você pode favoritá-lo para usá-lo em um gráfico.

Aviso legal

As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.

Quer usar esse script no gráfico?