Coding help - page 599

 
TEAMTRADER:
Did not help but I see if I squeeze the chart then the arrows show. I will remember this when I am checking - the pop up alert is a long stop and a reminder to squeeze the chart.

Thanks anyway.

TEAMTRADER

That can not be changed. Chart is adjusted only to prices - not to indicator(s) values, and if some indicator values is out of the price bounds, it might be invisible. Nothing can be done from the mql code to change that. The only way is what you did : manual chart vertical scaling

 
apprentice coder:
And when using mt4?

What do you mean?

 
twinumbers:

What do you mean?

I mean when using metatrader 4 not metatrader 5

 

Hello Masters, i found this indicator but it´s for Prorealtime, can you trasnslate to mt4, please?

//ESTRAPERLO REMIX

//Creado por Miguel Ángel Castillo basado en el Estraperlo. Octubre 2015

//Parte de código de Macd Normalisé by hk_lisse

//Parte de código de Macd de Carlos Rozas

//Parte de código de Capital Proporcional Medio by Javier Alfayate

//Revisado por Miguel Leugim (sud_miguel@hotmail.com). Octubre 2015

//Indicador estraperlo

val1=Exponentialaverage[5](close)

val2=ExponentialAverage[13](close)

mmacd=val1/val2-1

se=ExponentialAverage[m](mmacd)

gd2=average[60](mmacd)

sd=1*STD[60](mmacd)

bollsup=gd2+sd

bollinf=gd2-sd

//Oscilador Macd

valor1=ExponentialAverage[12](close)

valor2=ExponentialAverage[26](close)

a=valor1/valor2-1

b=exponentialaverage[50](highest[n](a))

c=exponentialaverage[50](lowest[n](a))

if a>b then

SC=a-b

else

SC=0

endif

if a<c then

SV=a-c

else

SV=0

endif

//Indicador Capital Proporcional Medio

capital = volume * close

volmax = highest[200](capital)

vol = ((capital*100/volmax)*4/5)

volmed = ExponentialAverage[50](vol)

CPM = (vol - volmed)

volumen = capital / (Average[20](capital)[1]) > 2 AND CPM > 0

IF volumen THEN

bvol = 1.2

ELSE

bvol = 0

ENDIF

RETURN SC*100 COLOURED (255,153,0) as "SC",SV*100 COLOURED (0,204,51)as "SV", bvol COLOURED (0,0,200) as "Volumen", 0 as "Cero",mmacd*100 as "LM",se*100 as "S",bollsup*100 as "BSUP",bollinf*100 as "BINF"

---------------------------------------------------------------------------------------------------

En el cuadro de variables :

m = media = 20

n = n = 50

 

//ESTRAPERLO REMIX

//Creado por Miguel Ángel Castillo basado en el Estraperlo. Octubre 2015

//Parte de código de Macd Normalisé by hk_lisse

//Parte de código de Macd de Carlos Rozas

//Parte de código de Capital Proporcional Medio by Javier Alfayate

//Revisado por Miguel Leugim (sud_miguel@hotmail.com). Octubre 2015

//Indicador estraperlo

val1=Exponentialaverage[5](close)

val2=ExponentialAverage[13](close)

mmacd=val1/val2-1

se=ExponentialAverage[m](mmacd)

gd2=average[60](mmacd)

sd=1*STD[60](mmacd)

bollsup=gd2+sd

bollinf=gd2-sd

//Oscilador Macd

valor1=ExponentialAverage[12](close)

valor2=ExponentialAverage[26](close)

a=valor1/valor2-1

b=exponentialaverage[50](highest[n](a))

c=exponentialaverage[50](lowest[n](a))

if a>b then

SC=a-b

else

SC=0

endif

if a<c then

SV=a-c

else

SV=0

endif

//Indicador Capital Proporcional Medio

capital = volume * close

volmax = highest[200](capital)

vol = ((capital*100/volmax)*4/5)

volmed = ExponentialAverage[50](vol)

CPM = (vol - volmed)

volumen = capital / (Average[20](capital)[1]) > 2 AND CPM > 0

IF volumen THEN

bvol = 1.2

ELSE

bvol = 0

ENDIF

RETURN SC*100 COLOURED (255,153,0) as "SC",SV*100 COLOURED (0,204,51)as "SV", bvol COLOURED (0,0,200) as "Volumen", 0 as "Cero",mmacd*100 as "LM",se*100 as "S",bollsup*100 as "BSUP",bollinf*100 as "BINF"

---------------------------------------------------------------------------------------------------

En el cuadro de variables :

m = media = 20

n = n = 50

 

Sorry i don´t know i did

Files:
 
jolugarpe:
Sorry i don´t know i did

jolugarpe

That is an empty document with nothing in it

 

//ESTRAPERLO REMIX

//Creado por Miguel Ángel Castillo basado en el Estraperlo. Octubre 2015

//Parte de código de Macd Normalisé by hk_lisse

//Parte de código de Macd de Carlos Rozas

//Parte de código de Capital Proporcional Medio by Javier Alfayate

//Revisado por Miguel Leugim (sud_miguel@hotmail.com). Octubre 2015

//Indicador estraperlo

val1=Exponentialaverage[5](close)

val2=ExponentialAverage[13](close)

mmacd=val1/val2-1

se=ExponentialAverage[m](mmacd)

gd2=average[60](mmacd)

sd=1*STD[60](mmacd)

bollsup=gd2+sd

bollinf=gd2-sd

//Oscilador Macd

valor1=ExponentialAverage[12](close)

valor2=ExponentialAverage[26](close)

a=valor1/valor2-1

b=exponentialaverage[50](highest[n](a))

c=exponentialaverage[50](lowest[n](a))

if a>b then

SC=a-b

else

SC=0

endif

if a<c then

SV=a-c

else

SV=0

endif

//Indicador Capital Proporcional Medio

capital = volume * close

volmax = highest[200](capital)

vol = ((capital*100/volmax)*4/5)

volmed = ExponentialAverage[50](vol)

CPM = (vol - volmed)

volumen = capital / (Average[20](capital)[1]) > 2 AND CPM > 0

IF volumen THEN

bvol = 1.2

ELSE

bvol = 0

ENDIF

 

Why are sma and geo man of all averages exactly the same on chart?

 
apprentice coder:
Why are sma and geo man of all averages exactly the same on chart?

For financial time series (where the consecutive values are close to each other and when absolute difference compared to values is very, very small in %) that is expected to be like that. They would be difference if consecutive values were far apart

Reason: