Forex
Google
New signals service!

Go Back   Forex Trading > Downloads > Indicators - Metatrader 4


Register in Forex TSD!
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time).
Click here to register and get more information

Reply
 
LinkBack (1) Thread Tools Display Modes
  1 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 02-06-2008, 05:47 AM
cja's Avatar
cja cja is offline
Senior Member
 
Join Date: Apr 2006
Posts: 539
cja is on a distinguished road
MA Candles

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

MA.gif

Last edited by cja; 02-07-2008 at 08:53 AM. Reason: Updating indicator
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-06-2008, 06:29 AM
Ethan Hunt's Avatar
Senior Member
 
Join Date: Jul 2007
Location: Israel
Posts: 176
Ethan Hunt is on a distinguished road
Thumbs up

Thank you for your help master cja.

Thanks man, you saved me.

Last edited by Ethan Hunt; 02-06-2008 at 06:50 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-06-2008, 10:46 AM
onetarmizi's Avatar
Senior Member
 
Join Date: Apr 2007
Posts: 144
onetarmizi is on a distinguished road
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.
Attached Images
File Type: gif Alligator Candle.GIF (24.1 KB, 1121 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-06-2008, 01:45 PM
Senior Member
 
Join Date: Nov 2006
Posts: 342
ahmedazizelias is on a distinguished road
Quote:
Originally Posted by cja View Post
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.

Attachment 53836

Attachment 53834
Thank you CJA...i realy love to have ur indicators on my chart...
it makes live trading easier..
THANK YOU
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-06-2008, 07:14 PM
cja's Avatar
cja cja is offline
Senior Member
 
Join Date: Apr 2006
Posts: 539
cja is on a distinguished road
Alligator settings

Quote:
Originally Posted by onetarmizi View Post
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

Last edited by cja; 02-07-2008 at 08:44 AM. Reason: Updating info
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-07-2008, 06:53 AM
onetarmizi's Avatar
Senior Member
 
Join Date: Apr 2007
Posts: 144
onetarmizi is on a distinguished road
Quote:
Originally Posted by cja View Post
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.
Attached Images
File Type: gif Alli Candle 2.GIF (23.1 KB, 993 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-07-2008, 08:13 AM
Member
 
Join Date: Jan 2007
Posts: 86
Melpheos is on a distinguished road
nice looking indi, thanks for that. I'll have a look too see how to manage whipsaw
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-07-2008, 08:50 AM
cja's Avatar
cja cja is offline
Senior Member
 
Join Date: Apr 2006
Posts: 539
cja is on a distinguished road
Alligator

Quote:
Originally Posted by onetarmizi View Post
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;
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 02-07-2008, 10:33 AM
onetarmizi's Avatar
Senior Member
 
Join Date: Apr 2007
Posts: 144
onetarmizi is on a distinguished road
Thanks a lot cja.

Now the correct setting is found.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 02-07-2008, 12:08 PM
Member
 
Join Date: May 2006
Posts: 57
kermut is on a distinguished road
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.
Attached Images
File Type: jpg ma candle discrepancy.JPG (58.7 KB, 922 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

LinkBacks (?)
LinkBack to this Thread: http://www.forex-tsd.com/indicators-metatrader-4/12212-ma-candles.html
Posted By For Type Date
World of Forex Trading » MA Candles This thread Pingback 02-06-2008 09:18 AM

Similar Threads
Thread Thread Starter Forum Replies Last Post
Candles newdigital Indicators - Metatrader 4 79 08-29-2008 09:53 PM
CCI Candles cja Indicators - Metatrader 4 19 05-23-2008 04:15 PM
WPR Candles cja Indicators - Metatrader 4 4 09-20-2007 09:32 PM
Stochastics Candles indicator needed hacsat Indicators - Metatrader 4 0 07-22-2007 06:14 AM


All times are GMT. The time now is 11:05 AM.



Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.