MA Candles

To add comments, please log in or register
ccjjaa
2036
ccjjaa  

As requested let me know if you need anything else done with it - i have included a very simple Comment so you can see the MAs being used.

7/02/2008

Updated code to have shift values under the inputs.

ma_candles.mq4

[attach]53834[/attach]

Files:
ma_1.gif 43 kb
EthanHunt
214
EthanHunt  

Thank you for your help master cja.

Thanks man, you saved me.

tarmizi
229
tarmizi  

Alligator Candle

Hi cja,

Thank you for the sexy MA candle.

If you not mind, could you make Alligator Candle.

Refer to the picture if the candle close above the gold line(lips alligator)-The color candle should be blue.

If the candle close below the gold line the color candle should be red.

Thanks.

Files:
ahmedazizelias
385
ahmedazizelias  
cja:
As requested let me know if you need anything else done with it - i have included a very simple Comment so you can see the MAs being used.

[attach]53834[/attach]

Thank you CJA...i realy love to have ur indicators on my chart...

it makes live trading easier..

THANK YOU

ccjjaa
2036
ccjjaa  

Alligator settings

onetarmizi:
Hi cja,

Thank you for the sexy MA candle.

If you not mind, could you make Alligator Candle.

Refer to the picture if the candle close above the gold line(lips alligator)-The color candle should be blue.

If the candle close below the gold line the color candle should be red.

Thanks.

Hi

Just set this indicator to do what you require

1st the PRICE MA this way

1/MA1 = 1; MAI_MODE = 0; MAI_PRICE = 0;

2nd The ALLIGATOR line this way

2/ MA2 = 5; MA2_MODE = 2; MA2_PRICE = 4;

Then go into the code and change this line ( Line 97 Col 4 )

From this

double MA_2 (int i = 0){return(iMA(NULL,0,MA1,0,MA1_MODE, MA1_PRICE,i));}

Tothis

double MA_2 (int i = 0){return(iMA(NULL,0,MA2,

3

,MA2_MODE, MA2_PRICE,i));}

Changing the 0 to 3 will give you the correct shift value for the Alligator line

Any problems let me know

cja

tarmizi
229
tarmizi  
cja:
Hi

Just set this indicator to do what you require

1st the PRICE MA this way

1/MA1 = 1; MAI_MODE = 0; MAI_PRICE = 0;

2nd The ALLIGATOR line this way

2/ MA2 = 13; MA2_MODE = 2; MA2_PRICE = 4;

Then go into the code and change this line ( Line 97 Col 4 )

From this

double MA_2 (int i = 0){return(iMA(NULL,0,MA1,0,MA1_MODE, MA1_PRICE,i));}

Tothis

double MA_2 (int i = 0){return(iMA(NULL,0,MA2,

8

,MA2_MODE, MA2_PRICE,i));}

Changing the 0 to 8 will give you the correct shift value for the Alligator line

Any problems let me know

cja

Hi cja,

I was setup the indicator as per above but some candle is not change in color when it close above or below the gold line like picture below.

Files:
Melpheos
82
Melpheos  

nice looking indi, thanks for that. I'll have a look too see how to manage whipsaw

ccjjaa
2036
ccjjaa  

Alligator

onetarmizi:
Hi cja, I was setup the indicator as per above but some candle is not change in color when it close above or below the gold line like picture below.

Sorry my fault i set you up with the wrong alligator line try the amended settings above. I set up the cross of the SMMA13 instead of the SMMA5

with a shift of 3 not 8.

NOTE I have altered the indicator inputs so that now the shift can be accessed without going into the code.

extern string IIIIIIIIIIIIIIIIIIIII=">>> MA Settings >>>>>>>>>>>>>>>>>";

extern int MA1 = 1;

extern int MA2 = 5;

extern int MA1_MODE = 0;

extern int MA2_MODE = 2;

extern int MA1_PRICE = 0;

extern int MA2_PRICE = 4;

extern int MA1_SHIFT = 0;

extern int MA2_SHIFT = 3;

tarmizi
229
tarmizi  

Thanks a lot cja.

Now the correct setting is found.

kermut
55
kermut  

what am i doing wrong

Thanks a lot for the indicator cja. It should definitely be very very helpful. But if you look at the attached pic, I have put in the MA levels I am using in the indicator. As you can see, there seems to be something wrong. Looking forward to your reply.

REgards,

K.

ccjjaa
2036
ccjjaa  

MA Candles

kermut:
Thanks a lot for the indicator cja. It should definitely be very very helpful. But if you look at the attached pic, I have put in the MA levels I am using in the indicator. As you can see, there seems to be something wrong. Looking forward to your reply.

REgards,

K.

It is quite simple you have your lines set to an EMA setting and the MA Candles set to an MA setting that is why they do not line up.

Look at the comments on the top left they also tell you what the candles are set to.

Both the lines and candles must have the same MA/MODE/PRICE & SHIFT to line up.

Files:
ma.gif 14 kb
To add comments, please log in or register