Another “Squeeze” indicator that plot histogram in red color when the Bollinger Bands are inside the Keltner bands, informing us of a pause in the market and a probable burst of volatility to varnish.
Bollinger bands and Keltner bands periods and deviation factors are adjustable in the settings.
Converted from MQL4 version by a request in ProBuilder English forum section.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
//PRC_Squeeze Light | indicator //07.11.2017 //Nicolas @ www.prorealcode.com //Sharing ProRealTime knowledge // --- settings //bolPrd=21 //bolDev=2.0 //keltPrd=20 //keltFactor=1.5 // --- end of settings diff = averagetruerange[keltPrd]*keltFactor stdd = std[bolPrd](close) bbs = bolDev*stdd/diff if bbs<1 then upK = 1 loK = 0 else loK = 1 upK = 0 endif return upK coloured(255,0,0) style(histogram,1) as "Squeeze On", loK coloured(255,0,0,30) style(histogram,1) as "Squeeze Off" |
Share this
No information on this site is investment advice or a solicitation to buy or sell any financial instrument. Past performance is not indicative of future results. Trading may expose you to risk of loss greater than your deposits and is only suitable for experienced investors who have sufficient financial means to bear such risk.
ProRealTime ITF files and other attachments :PRC is also on YouTube, subscribe to our channel for exclusive content and tutorials
Oups nicolas ! je pense que tu a oublié de mettre les variables “setting” accessible en externe dans le programme (à part que se soit fait intentionnellement pour voir si l’on suit ?)
Je viens de vérifier, elles y sont pourtant?
Mea culpa, j’ai fait un bête (copier/coller) et forcément cela ne pouvait pas y être puisqu’il n’y a qu’une partie de code mais une fois téléchargé les variables sont bien présentes (autant pour moi, désolé…)