This indicator add a trend line on chart accordingly to the CCI value. It also painting background charts to identify bearish and bullish trend.
// CCI Magic DID V1
cc = customclose
if (CCI[p](typicalPrice)>=0) then
magic=Low[0]-AverageTrueRange[p1](close)
endif
if (CCI[p](typicalPrice)<0) then
magic=High[0]+AverageTrueRange[p1](close)
endif
if (CCI[p](typicalPrice)>=0 and magic<magic[1]) then
magic=magic[1]
endif
if (CCI[50](typicalPrice)<0 and magic>magic[1]) then
magic=magic[1]
endif
hh = magic + coeff
bb = magic - coeff
////////////////////////////////////////////////
if cc > hh then
backgroundcolor(0,139,0) // vert foncé
endif
if cc > magic and cc < hh then
backgroundcolor(0,255,0) // vert clair
endif
if cc < magic and cc > bb then
backgroundcolor(255,0,255) // rose clair
endif
if cc < bb then
backgroundcolor(238,44,44) // rouge
endif
////////////////////////////////////////////////
return cc as " cc " , magic as " magic " , hh as " hh " , bb as " bb "
// Variables :
// p = 50 = periode CCI par défaut
// p1 = 5 = periode ATR par défaut
// coeff = 1 decimal
You must be logged in to post a comment.
ok
Lo estoy probando con tu indicador y en velas semanales el Santander es alcista. Veremos como evoluciona la semana que viene. Saludos y gracias por contestarme tan rápido.
pues lo leeré. Tienes razón esto de la bolsa es un trabajo.
podrías por favor desarrollar un poco más la idea de este indicador.
en la beta 10.3 de prorealtime no me da problemas. Todo muy raro.
pues no sé. Lo instalo con el fichero que adjuntas y me da errores de sintaxi.
Lo instalo con el archivo y me da errores de síntaxis. A ver, si por favor, lo podéis arreglar. Saludos
It may be a little late in the day, but having only just discovered this utility, I have messed around with various time frames and found that on the longer term Daily and Weekly chart, the tracking is quite clear, however on the very short term frames, it is necessary to experiment until a workable match is found by comparing with other indicators that might show the same trend characteristics. Thank you