OPEN-SOURCE SCRIPT

Godmode 4.0.0 [Oscillator]

First off, a huge thank you to the following people:

LEGION: [cannot find user's profile URL]
LazyBear: tradingview.com/u/LazyBear/
xSilas: tradingview.com/u/xSilas/
Ni6HTH4awK: tradingview.com/u/Ni6HTH4wK/
sco77m4r7and: [cannot find user's profile URL]
SNOW_CITY: tradingview.com/u/SNOW_CITY/
oh92: tradingview.com/u/oh92/
alexgrover: tradingview.com/u/alexgrover/
cI8DH: tradingview.com/u/cI8DH/
DonovanWall: tradingview.com/u/DonovanWall/

Since I've been on TradingView I've become somewhat enthralled by Godmode and the collective work that goes in to it, so I decided to publish my own iteration, building off the ideas already present. (This is a great way to get familiar with Pine by the way, just in case there are any beginners reading this)

Changes

The first change I made was to allow the user to select whatever tickerid they wanted as a benchmark. If trading XBTUSD on BitMEX[1] for example, the indicator will react to exchange-specific activity, which means it will respond to all the little whipsaws, whipsaws that can be especially present on a futures exchange. By typing CRYPTOCAP:BTC[2] or CRYPTOCAP:TOTAL[3] we endeavor to remove noise. It can also signal earlier. Less noise and less lag. Another idea would be to choose a benchmark that has a strong inverse relationship with the asset you're trading: try CRYPTOCAP:USDT[4] as the benchmark against BTC to see what I mean.

I also added the ability to smooth the plot, yet again removing noise but adding considerable lag.

The linear regression of the wave-trend is calculated in place of the EMA. This is plotted as columns with the midline (50) as the base. This is just calculating the slope of the wave-trend and can signal a weakening trend before a reversal takes place.

Using cI8DH's True RSI script (tradingview.com/script/kfFjkxCa-True-Relative-Strength-Index-True-RSI-TRSI-cI8DH/) as inspiration, I added a function for calculating the True TSI in an attempt to remove any bullish bias. Funnily enough, when I tried to do the same with the RSI I had some problems. I'll try to resolve this in the coming weeks.

Made slight changes to the aesthetics. Tried to bring the two main plots alive by making their bold, opaque colors stand off the subtle tones in the background.

To Do List

1. I would like to sort out the issue with the True RSI.
2. When the plots are smoothed, there's an issue with the green 'Caution!' dots appearing in the lower half of the indicator.
3. I'd like to adjust the code so that if the 'Benchmark' box is empty, that it will automatically register the current tickerid as the 'Benchmark'.

If anyone has any suggestions on other fixes or how to apply the fixes mentioned by me, please don't hesitate to reach out to me here or through other media platforms.

Want to Learn?

If you'd like the opportunity to learn Pine but you have difficulty finding resources to guide you, take a look at this rudimentary list: docs.google.com/document/d/10t3ZCQAd2dpdTGPYXDKk2hAM_BQ1Zm80tk0VGHViQc4/edit?usp=sharing

The list will be updated in the future as more people share the resources that have helped, or continue to help, them. Follow me on Twitter to keep up-to-date with the growing list of resources.

Suggestions or Questions?

Don't even kinda hesitate to forward them to me. My (metaphorical) door is always open.

[1]
snapshot
BITMEX:XBTUSD

[2]
snapshot
CRYPTOCAP:BTC

[3]
snapshot
CRYPTOCAP:TOTAL

[4]
snapshot
CRYPTOCAP:USDT.D
benchmarkBill Williams IndicatorsCentered OscillatorsCSIfunctiongodmodeMFIOscillatorsTCIwilly

Script open-source

Dans le plus pur esprit TradingView, l'auteur de ce script l'a publié en open-source, afin que les traders puissent le comprendre et le vérifier. Bravo à l'auteur! Vous pouvez l'utiliser gratuitement, mais la réutilisation de ce code dans une publication est régie par nos Règles. Vous pouvez le mettre en favori pour l'utiliser sur un graphique.

Vous voulez utiliser ce script sur un graphique ?


Aussi sur:

Clause de non-responsabilité