Coding help - page 83

 

Another "little" help.......:

some weeks ago you do the following indicator for me named Cicle Lines2 and it is good.

Now...can you create a similar indicator but only with one line forward and with between fibo time retracement of 0.382-0.5-61.8?

example:

the distance of two original lines is 20 bars.....and then appear 0.382-0.5-0.618 and 1 of that distance.

here it is your original indicator:

Files:
 

hi mladen

could you help me to code this indicator? i get this information from this forum, could it change to apply to all timeframes instead just (daily charat) i.e. today compare to yesterday candlesticks? Many thanks for help.

CCI Coloured using the MACD

I have created this indicator with ProRealTime, but with MT4 I am not so good.

As you can see on the chart the histogram of the CCI is coloured in this way :

- bar green if MACD 12,26,1 today > yesterday

- bar red if MACD 12,26,1 today < yesterday

Thanks in advance for any help you can give for created this indicator with MT4

Code for PRT

_______________________________________________

a=MACDline[12,26,1](close)

rialzo=a>a[1] and a[1]<a[2]

ribbasso=aa[2]

b=ExponentialAverage[13](c)

if rialzo then

col=1

elsif ribbasso then

col=-1

endif

c=CCI[34](typicalPrice)

return c coloured by col as "MACD Colored", b as "EMA"

__________________________________________________ __________
Files:
cci_macd.gif  30 kb
 

Hi mladen, is it possible to modify these 3 indicators which cannot show signal on current running candlestick, so that they can show signals on current running candlestick? Many thanks again 1. atr.mq4 2. atr_alert.mq4 3.atr_mtf.mq4

Files:
atr.mq4  4 kb
atr_alert.mq4  10 kb
atr_mtf.mq4  2 kb
 
kenwa:
Hi mladen, is it possible to modify these 3 indicators which cannot show signal on current running candlestick, so that they can show signals on current running candlestick? Many thanks again 1. atr.mq4 2. atr_alert.mq4 3.atr_mtf.mq4

kenwa

Find these two lines (at the end of indicators - lines 126 and 127 in the "atr" indicator) :

ExtBuffer1[0]=0;

ExtBuffer2[0]=0;

and delete them (or comment them out). That is all you have to do

 

hello mladen,

many thank. may i know what means by ' comment them out". I do not know coding.

by the way is it possible to code the above #822 , CCI and MACD indicator? many thanks.

 
kenwa:
hello mladen,

many thank. may i know what means by ' comment them out". I do not know coding.

by the way is it possible to code the above #822 , CCI and MACD indicator? many thanks.

"Comment them out" would be placing "//" at the beginning of those lines

 

Hi, coding guru,

could help me convert these to MTF versions? many thanks.

 
kenwa:
Hi, coding guru, could help me convert these to MTF versions? many thanks.

miss a file in above #827, please also convert to MTF, many thanks for help.

the stepchoopy above need the stepMa and steprsi to run.

Files:
 
mladen:
"Comment them out" would be placing "//" at the beginning of those lines

Hi mladen

is it correct? thanks for advice. I do not know coding.

for(i=0; i<limit; i++)

{

ExtBuffer1=ExtBuffer3;

ExtBuffer2=ExtBuffer4;

// ExtBuffer1[0]=0;

// ExtBuffer2[0]=0;

}

//----

return(0);

}

//+------------------------------------------------------------------+

 
kenwa:
Hi mladen

is it correct? thanks for advice. I do not know coding.

for(i=0; i<limit; i++)

{

ExtBuffer1=ExtBuffer3;

ExtBuffer2=ExtBuffer4;

// ExtBuffer1[0]=0;

// ExtBuffer2[0]=0;

}

//----

return(0);

}

//+------------------------------------------------------------------+

Yes, that is correct

Reason: