Power Law Correlation Indicator 2.0

1569 vues
1569 0
The Power Law Correlation Indicator is an attempt to chart when a stock/currency/futures contract goes parabolic forming a upward or downward curve that accelerates according to power laws.

I've read about power laws from Sornette Diedler ( http://www.marketcalls.in/trading-lesson... ). And I think the theory is a good one.

The idea behind this indicator is that it will rise to 1.0 as the curve resembles a parabolic up or down swing. When it is below zero, the stock will flatten out.

There are many ways to use this indicator. One way I am testing it out is in trading Strangles or Straddle option trades. When this indicator goes below zero and starts to turn around, it means that it has flattened out. This is like a squeeze indicator. (see the TTM squeeze indicator).

Since this indicator goes below zero and the squeeze plays tend to be mean-reverting; then its a great time to put on a straddle/strangle.

Another way to use it is to think of it in terms of trend strength. Think of it as a kind of ADX , that measures the trend strength. When it is rising, the trend is strong; when it is dropping, the trend is weak.

Lastly I think this indicator needs some work. I tried to put the power (x^n) function into it but my coding skill is limited. I am hoping that Lazy Bear or Ricardo Santos can do it some justice.
Also I think that if we can figure out how to do other power law graphs, perhaps we can plot them together on one indicator.

So far I really like this one for finding Strangle spots. So check it out.

Supprimer des scripts favoris Ajouter aux scripts favoris
//Author - SpreadEagle71
study("Power Law Correlation Indicator 2.0")
len=input(13, minval=1,maxval = 50)
demalength = input(13, minval=1)
power=input(3,minval=1, maxval=4)

autocorr = correlation(Dayreturn,Dayreturn[1],len)

plot(autocorr, color = blue , style = line , linewidth = 2,title = "Autocorr")

e1 = ema(autocorr, demalength)
e2 = ema(e1, demalength)
dema = 2 * e1 - e2
plot(dema, color=green)

hline(0, title='hline1', color=red, linestyle=dotted, linewidth=2)
hline(0.5, title='hline2', color=black, linestyle=dotted, linewidth=2)
hline(1.0, title='hline3', color=black, linestyle=dotted, linewidth=2)
Accueil Filtre d'actions Filtre Forex Filtre Crypto Calendrier économique Shows Comment ça marche Caractéristiques du graphique Prix Règles de conduite Les Magiciens de Pine Modérateurs Solutions site web & courtier Widgets Solutions de cartographie Bibliothèque de graphiques allégés Centre d'aide Parrainer un ami Demande de fonctionnalité Blog & News Twitter
Profil Paramètres du Profil Compte et Facturation Parrainer un ami Mes tickets au support Centre d'aide Idées Publiées Suiveurs Suivi Messages privés dialogue en ligne Se Déconnecter