supertiti

CCI Magic DID V1

Category: Indicators By: supertiti Created: May 15, 2016, 6:07 PM
May 15, 2016, 6:07 PM
Indicators
11 Comments
CCI Magic DID V1

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

Download
Filename: CCI-Magic-DID-v1.itf
Downloads: 127
supertiti
supertiti Master
mal nommer les choses est ajouter à la misère du monde --- A. Camus
Author’s Profile

Comments

Lotech123
6 years ago
#

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

AngelPujalt
10 years ago
#

ok

supertiti
10 years ago
#

Hola Angel

Las funciones backgroundcolor etc etc no funcionan con la version 10.2.

Para saber mas sobre la 10.3  tu tienes un resumen muy completo de Nicolas dentro de " documentacion" and " graphical "

AngelPujalt
10 years ago
#

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.  

AngelPujalt
10 years ago
#

pues lo leeré. Tienes razón esto de la bolsa es un trabajo.

supertiti
10 years ago
#

Primero tienes que leer un poco el manual de probuilder. aqui tienes las respuestas. el trading es ante todo un trabajo !  la 10.2 vs la 10.3 no es lo mismo !!

saludos

AngelPujalt
10 years ago
#

podrías por favor desarrollar un poco más la idea de este indicador.

AngelPujalt
10 years ago
#

en la beta 10.3 de prorealtime no me da problemas. Todo muy raro.

AngelPujalt
10 years ago
#

pues no sé. Lo instalo con el fichero que adjuntas y me da errores de sintaxi.

supertiti
10 years ago
#

Hola Angel,

No hay problema con el codigo. Lo comprobado  hoy con el codigo de la patalla y el fechero .itf. El problema viene de ti.

un saludo

Didier

 

ÀNGEL PUJALT I GOMIS
10 years ago
#

Lo instalo con el archivo y me da errores de síntaxis. A ver, si por favor, lo podéis arreglar. Saludos

ProRealCode ProRealCode
Loading...