Bonjour à tous,
A partir de deux indicateurs créés par Nicolas que j’ai fusionné ( le GRAB Candlestick Index et le Volatility Cycle Index ) j’aurais aimé faire un screener où le squeeze se trouve sous un certain niveau (-100) par exemple
ou mieux après une certaine période sous un niveau , repérer le décalage à la hausse du squeeze
Le screener que j’ai fais ne retourne rien alors les bonnes volontés sont les bienvenues pour sa fabrication.
// SQUEEZE EMAC 23 mars 2017
////////////////////////////////////
EMAC = average[p,mmTYPE](close)
// p = 34
// mmTYPE = exponentielle
////////////////////////////////////
//PRC_Volatility Cycle indicator 02.12.2016 Nicolas @ www.prorealcode.com
//Sharing ProRealTime knowledge converted and adapted from Metatrader4 version
InpBandsPeriod=20 // Period
Smooth=2 // Smoothness
StdDev = std[InpBandsPeriod] (EMAC)//(close)
highindex = highest[InpBandsPeriod](StdDev)[1]
lowindex = lowest[InpBandsPeriod](StdDev)[1]
if barindex>InpBandsPeriod then
VolDer = (StdDev-highindex)/(highindex-lowindex)
VolSmooth = average[Smooth](VolDer)
if VolSmooth>0 then
VolSmooth = 0
elsif VolSmooth<-1.0 then
VolSmooth = -1.0
endif
endif
/////////////////////////////////
Squeeze = volsmooth * average [psq](EMAC)
// psq = 20 periode squeeze
RETURN VolSmooth as "Volatility Cycle" , Squeeze as " Squeeze "
problème avec ce code c’est qu’il retourne des valeurs d’échelle très disparates, il serait donc souhaitable d’avoir un retour avec une échelle de 0 à 100.
bonne journée
avec le code initial c’est mieux
// SQUEEZE EMAC 23 mars 2017
////////////////////////////////////
EMAC = average[p,mmTYPE](close)
// p = 34
// mmTYPE = exponentielle
////////////////////////////////////
//PRC_Volatility Cycle indicator 02.12.2016 Nicolas @ www.prorealcode.com
//Sharing ProRealTime knowledge converted and adapted from Metatrader4 version
InpBandsPeriod=20 // Period
Smooth=2 // Smoothness
StdDev = std[InpBandsPeriod] (EMAC)//(close)
highindex = highest[InpBandsPeriod](StdDev)[1]
lowindex = lowest[InpBandsPeriod](StdDev)[1]
if barindex>InpBandsPeriod then
VolDer = (StdDev-highindex)/(highindex-lowindex)
VolSmooth = average[Smooth](VolDer)
if VolSmooth>0 then
VolSmooth = 0
elsif VolSmooth<-1.0 then
VolSmooth = -1.0
endif
endif
/////////////////////////////////
RETURN VolSmooth as "Volatility Cycle" , - 0.95 as " - 0.95 "
Bonsoir supertiti,
ce screener détecte les baisses de volatilité ou la phase 1 des bollinger ?
Merci en tout cas pour le partage.
J’ai placé ton indicateur grab avec les bollinger cela donne une vu rapide dès mouvements hausses ou baisses.
J’ai ouvert un tropic sur la possibilité de mettre sous forme d’indicateur ou screener la théorie de Dow avec l’indicateur fractal zig-zag