Forex



Go Back   Forex Trading > Downloads > Indicators - Metatrader 4
Forex Forum Register More recent Blogs Calendar Advertising Others Help






Register
Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.

From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.

Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
  • Elite Section
    Get access to private discussions, specialized support, indicators and trading systems reported every week.
  • Advanced Elite Section
    For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
See more

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 02-06-2008, 06:47 AM
cja's Avatar
cja cja is offline
Senior Member
 
Join Date: Apr 2006
Posts: 676
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 09:53 AM. Reason: Updating indicator
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #2 (permalink)  
Old 02-06-2008, 07:29 AM
Ethan Hunt's Avatar
Senior Member
 
Join Date: Jul 2007
Location: Israel
Posts: 222
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 07:50 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #3 (permalink)  
Old 02-06-2008, 11:46 AM
onetarmizi's Avatar
Senior Member
 
Join Date: Apr 2007
Posts: 189
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, 1774 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #4 (permalink)  
Old 02-06-2008, 02:45 PM
Senior Member
 
Join Date: Nov 2006
Posts: 343
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #5 (permalink)  
Old 02-06-2008, 08:14 PM
cja's Avatar
cja cja is offline
Senior Member
 
Join Date: Apr 2006
Posts: 676
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 09:44 AM. Reason: Updating info
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #6 (permalink)  
Old 02-07-2008, 07:53 AM
onetarmizi's Avatar
Senior Member
 
Join Date: Apr 2007
Posts: 189
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, 1640 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #7 (permalink)  
Old 02-07-2008, 09:13 AM
Senior Member
 
Join Date: Jan 2007
Posts: 102
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #8 (permalink)  
Old 02-07-2008, 09:50 AM
cja's Avatar
cja cja is offline
Senior Member
 
Join Date: Apr 2006
Posts: 676
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #9 (permalink)  
Old 02-07-2008, 11:33 AM
onetarmizi's Avatar
Senior Member
 
Join Date: Apr 2007
Posts: 189
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!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #10 (permalink)  
Old 02-07-2008, 01:08 PM
Member
 
Join Date: May 2006
Posts: 59
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, 1562 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
Reply

Bookmarks

Tags
Candles, ma candles, candle, alligator


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Candles newdigital Indicators - Metatrader 4 242 11-14-2009 11:18 PM
WPR Candles cja Indicators - Metatrader 4 8 04-07-2009 10:10 AM
CCI Candles cja Indicators - Metatrader 4 19 05-23-2008 05:15 PM
Stochastics Candles indicator needed hacsat Indicators - Metatrader 4 0 07-22-2007 07:14 AM


All times are GMT. The time now is 08:54 PM.



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