TradingView
c00l75
2023年4月27日早上6點51分

Bayesian predictive leading indicator 

EUR/USDOANDA

描述

--------- ENGLISH ---------
This is a predictive indicator (leading indicator) that uses Bayes' formula to calculate the conditional probability of price increases given the angular coefficient. The indicator calculates the angular coefficient and its regression and uses it to predict prices.
Bayes' theorem is a fundamental result of probability theory and is used to calculate the probability of a cause causing the verified event. In other words, for our indicator, Bayes' theorem is used to calculate the conditional probability of one event (price event in this case) with respect to another event by calculating the probabilities of the two events (past price) and the conditional probability of the second event (future price) with respect to the first event.
The red line represents the angular coefficient. The blue line represents the normalized expected price. Finally, the yellow line represents the conditional probability that the price will increase or decrease.
How to use it. In addition to the convenient histogram, which follows the angular coefficient, another practical operational application might be to go long when the blue line is above the red and yellow lines. Conversely short when the blue is below the red and yellow.
When the yellow line passes above all others, a reversal in the long direction is imminent and vice versa.
The extent of the reversal depends on how far the yellow line will be away in price from the other 2 lines.

This indicator is in its embryonic state and updates will follow to make it more graphically readable, add alerts, etc.
Stay tuned! Leave a boost and comment or write to me if you wish.

--------- ITALIANO ---------
Questo è un indicatore predittivo (leading indicator) che utilizza la formula di Bayes per calcolare la probabilità condizionata che il prezzo aumenti dato il coefficiente angolare. L’indicatore calcola il coefficiente angolare e la sua regressione e lo utilizza per prevedere i prezzi.
Il teorema di Bayes è un risultato fondamentale della teoria della probabilità e viene impiegato per calcolare la probabilità di una causa che ha provocato l’evento verificato. In altre parole, per il nostro indicatore, il teorema di Bayes serve per calcolare la probabilità condizionata di un evento (di prezzo in questo caso) rispetto a un altro evento, calcolando le probabilità dei due eventi (prezzo passato) e la probabilità condizionata del secondo evento (prezzo futuro) rispetto al primo.
La linea rossa rappresenta il coefficiente angolare. La linea blu rappresenta il prezzo previsto normalizzato. Infine la linea gialla rappresenta la probabilità condizionata che il prezzo aumenti o diminuisca.
Come si usa? Oltre al comodo istogramma, che segue il coefficiente angolare, un'altra applicazione operativa pratica potrebbe essere di andare long quando la linea blu è sopra la linea rossa e gialla. Viceversa short quando la blu è sotto la rossa e la gialla.
Quando la linea gialla passa sopra tutte le altre è imminente un'inversione in direzione long e viceversa.
L'entità dell'inversione dipende da quanto la linea gialla sarà distante di prezzo dalle altre 2 linee.

Questo indicatore è al suo stato embrionale e seguiranno aggiornamenti per renderlo graficamente più leggibile, aggiungere alert, ecc.
Stay tuned! Lascia un boost e commenta o scrivimi se desideri.

發布通知

Two types of alerts have been added: the buy signal given by the blue and red line above 0 for at least 2 consecutive candles (and vice versa). The buy signal given by the blue and red line above the yellow for at least 2 consecutive candles (and vice versa).
評論
nicolaeadrian
hello!
great work!
what setup should I use for a daily chart?
Thank you
c00l75
@nicolaeadrian, thank you! Loopback 12 is the right setting. Not bad from 10 to 12 too.
nicolaeadrian
@c00l75, thank you very much!
RabenKaiser
This indicator as a lot of potential, sadly, i find it a bit tough to read, a smoothing of the lines would be welcome, as well as an option to display lines crosses? That would be awsome! some ideas Xp
c00l75
@RabenKaiser, Hi Ruben thanks for the suggestions. I will do the improvements asap
HAPPY_TRADER_1979
Very nice work - I found it helpful with the following setup (Everybody should back test this with the item they plan to trade it against.) I only use Plot 2 and Plot 4. I set interval to 4 for 1 min time period. It works well with just the Plot 2 active - clean. I place a Zero horizontal line. I Buy Blue Line below 0 and Sell Blue Line above 0 I wait for 1 bar to confirm trade and then trade once that bar is closed. Kicks ASS.

Mille Grazie!- L'ho trovato utile con la seguente configurazione (tutti dovrebbero testarlo con l'oggetto con cui intendono scambiarlo.) Io uso solo la trama 2 e la trama 4. Ho impostato l'intervallo su 4 per un periodo di tempo di 1 minuto. Funziona bene con solo il Plot 2 attivo - pulito. Inserisco una linea orizzontale Zero. Compro Blue Line sotto 0 e Vendo Blue Line sopra 0 Aspetto che 1 bar confermi lo scambio e poi faccio trading una volta chiusa quella barra. Calci in.
c00l75
@HAPPY_TRADER_1979, Thank you, I appreciate your feedback very much. Very glad it's useful for you
c00l75
The indicator now is updated with 2 types of alert!
adeypeter
Thanks for giving the access to this indicator. You are doing a great work. DO you know when you will be able to add a buy/sell alert to this?
c00l75
@adeypeter, there are already buffers to add alerts, right click and then add alert. If you mean graphic labels I can certainly add them
更多