Forex
Google
New signals service!

Go Back   Forex Trading > Trading systems > Ema Cross


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

View Poll Results: What do you think about Counter-Trend strategies?
They are good. 194 30.46%
They are bad. 97 15.23%
Good strategies! But have to be well programmed. 232 36.42%
I don’t know what you are talking about. 129 20.25%
Multiple Choice Poll. Voters: 637. You may not vote on this poll

Reply
 
LinkBack (10) Thread Tools Display Modes
  #511 (permalink)  
Old 03-29-2006, 03:01 PM
codersguru's Avatar
Senior Member
 
Join Date: Oct 2005
Posts: 987
codersguru has a spectacular aura aboutcodersguru has a spectacular aura aboutcodersguru has a spectacular aura about
Arrow

Quote:
Originally Posted by glader
I quess you are using default settings, right?

Codersguru - REALLY thanks for your work. Looking forward for your lessons of coding :]
Hi glader,

Thanks!

Yes, I'm (always) using the default settings.
__________________
Hope it helps !
Coders' Guru
Senior MQL programmer:
www.xpworx.com/custom.htm
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #512 (permalink)  
Old 03-29-2006, 03:06 PM
Senior Member
 
Join Date: Dec 2005
Posts: 217
eric79 is on a distinguished road
Hi Codersguru
In the first statement, why does it open 4 trades (for usdjpy and also the pending orders)? Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #513 (permalink)  
Old 03-29-2006, 03:30 PM
codersguru's Avatar
Senior Member
 
Join Date: Oct 2005
Posts: 987
codersguru has a spectacular aura aboutcodersguru has a spectacular aura aboutcodersguru has a spectacular aura about
Arrow

Quote:
Originally Posted by eric79
Hi Codersguru
In the first statement, why does it open 4 trades (for usdjpy and also the pending orders)? Thanks
It's something like the grid maker to increase the profits.
__________________
Hope it helps !
Coders' Guru
Senior MQL programmer:
www.xpworx.com/custom.htm
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #514 (permalink)  
Old 03-29-2006, 04:00 PM
Junior Member
 
Join Date: Mar 2006
Posts: 5
migrane is on a distinguished road
Thumbs up EMAs 1 bar back ??

I just noticed while looking at your code that for the Cross_2 you were doing the EMAs on the current bar and for Cross_6 you are doing them 1 bar back ? Any reason for this ?!?

Cross_2
SEma = iMA(NULL,0,ShortEma,0,MODE_EMA,PRICE_CLOSE,0);
LEma = iMA(NULL,0,LongEma,0,MODE_EMA,PRICE_CLOSE,0);

Cross_6
SEma = iMA(NULL,0,ShortEma,0,MODE_EMA,PRICE_CLOSE,1);
LEma = iMA(NULL,0,LongEma,0,MODE_EMA,PRICE_CLOSE,1);

Migrane
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #515 (permalink)  
Old 03-29-2006, 04:06 PM
Junior Member
 
Join Date: Mar 2006
Posts: 5
migrane is on a distinguished road
Trailing Stop on Short EMA ??

Quote:
Originally Posted by iliaazshareef
Hi All,
I was testing the EMA_Cross_6 version .
I wanted to do this adjustment if it is possible! The stop loss to be lets say 5 pips below/above the shortEMA as per buy or sell. How to put this in the EA?
thx for your help.

Am I understanding this correctly ? would this be like a trailing stop on the short EMA ?

Migrane.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #516 (permalink)  
Old 03-29-2006, 04:26 PM
codersguru's Avatar
Senior Member
 
Join Date: Oct 2005
Posts: 987
codersguru has a spectacular aura aboutcodersguru has a spectacular aura aboutcodersguru has a spectacular aura about
Arrow

Quote:
Originally Posted by migrane
I just noticed while looking at your code that for the Cross_2 you were doing the EMAs on the current bar and for Cross_6 you are doing them 1 bar back ? Any reason for this ?!?

Cross_2
SEma = iMA(NULL,0,ShortEma,0,MODE_EMA,PRICE_CLOSE,0);
LEma = iMA(NULL,0,LongEma,0,MODE_EMA,PRICE_CLOSE,0);

Cross_6
SEma = iMA(NULL,0,ShortEma,0,MODE_EMA,PRICE_CLOSE,1);
LEma = iMA(NULL,0,LongEma,0,MODE_EMA,PRICE_CLOSE,1);

Migrane
When you test your EA in MST it's better to use 0 bar (the current bar).
But in the forward and Live mode it's recommended to use 1 bar (Previous completed bar).
__________________
Hope it helps !
Coders' Guru
Senior MQL programmer:
www.xpworx.com/custom.htm
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #517 (permalink)  
Old 03-29-2006, 04:44 PM
codersguru's Avatar
Senior Member
 
Join Date: Oct 2005
Posts: 987
codersguru has a spectacular aura aboutcodersguru has a spectacular aura aboutcodersguru has a spectacular aura about
Talking Emac7

Do you still believe in Stragey Tester??

I do!

Try out MoneyMaker (EMAC7).
Attached Images
File Type: gif StrategyTester.gif (5.3 KB, 351 views)
Attached Files
File Type: htm StrategyTester.htm (623.8 KB, 274 views)
File Type: mq4 MoneyMaker.mq4 (5.1 KB, 348 views)
__________________
Hope it helps !
Coders' Guru
Senior MQL programmer:
www.xpworx.com/custom.htm
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #518 (permalink)  
Old 03-29-2006, 04:55 PM
codersguru's Avatar
Senior Member
 
Join Date: Oct 2005
Posts: 987
codersguru has a spectacular aura aboutcodersguru has a spectacular aura aboutcodersguru has a spectacular aura about
Talking EMAC_HEDGED statement update!

Check out the statement so far!

Note: Attached modified version of the EA!
Attached Files
File Type: mq4 EMA_CROSS_CONTEST_HEDGED.mq4 (8.8 KB, 354 views)
File Type: htm Statement.htm (17.7 KB, 356 views)
__________________
Hope it helps !
Coders' Guru
Senior MQL programmer:
www.xpworx.com/custom.htm
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #519 (permalink)  
Old 03-29-2006, 05:06 PM
Junior Member
 
Join Date: Mar 2006
Posts: 5
migrane is on a distinguished road
Quote:
Originally Posted by codersguru
Do you still believe in Stragey Tester??

I do!

Try out MoneyMaker (EMAC7).
So besides doing EMA at 4 and 24 and your code getting a bit more "streamlined" has anything else changed ?! I cant really tell

Migrane.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #520 (permalink)  
Old 03-29-2006, 06:45 PM
codersguru's Avatar
Senior Member
 
Join Date: Oct 2005
Posts: 987
codersguru has a spectacular aura aboutcodersguru has a spectacular aura aboutcodersguru has a spectacular aura about
Arrow

Quote:
Originally Posted by migrane
So besides doing EMA at 4 and 24 and your code getting a bit more "streamlined" has anything else changed ?! I cant really tell

Migrane.
It makes grid of pending orders at the Level , Step and Size you want.

Level: What the price level from the current price or last pending order you want to open the position.

Step: The pips between the orders.

Size: The number of orders for every currency.
__________________
Hope it helps !
Coders' Guru
Senior MQL programmer:
www.xpworx.com/custom.htm
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/ema-cross/925-ema-cross.html
Posted By For Type Date
OzFx Forex System • View topic - MA cross_over signal [arrow] Post #54 Refback 03-25-2008 08:58 AM
OzFx Forex System • View topic - MA cross_over signal [arrow] Post #54 Refback 03-16-2008 04:14 PM
ืคื•ืจื•ื - STRATEGY BANK This thread Refback 03-08-2008 06:00 PM
ืคื•ืจื•ื - STRATEGY BANK This thread Refback 02-24-2008 05:34 PM
XP Worx - Custom MetaTrader (MQL4) Programming and Free Expert Advisors - Indicators - Libraries - Scripts - MetaTrader Extensions (c++ DLLs) This thread Refback 12-28-2007 05:05 PM
ืคื•ืจื•ื - STRATEGY BANK This thread Refback 12-07-2007 07:06 PM
BIGWAVE BBS Post #663 Refback 10-15-2007 05:57 PM
Firebird EA, please test this one, it is one of the greats - Page 15 This thread Refback 08-30-2007 11:15 PM
Firebird EA, please test this one, it is one of the greats - Page 15 @ Forex Factory This thread Refback 06-23-2007 05:21 PM
XP Worx - Custom MetaTrader (MQL4) Programming and Free Expert Advisors - Indicators - Libraries - Scripts - MetaTrader Extensions (c++ DLLs) This thread Refback 06-21-2007 10:53 AM

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cross! creative Indicators - Metatrader 4 156 08-27-2008 07:19 AM
MA cross/Price cross MA EA Pipsta_UK Expert Advisors - Metatrader 4 5 05-10-2007 08:50 PM
3 MA cross demontaz Indicators - Metatrader 4 2 04-15-2007 06:24 AM
ema cross 1f4 General Discussion 5 05-21-2006 03:13 PM


All times are GMT. The time now is 12:33 PM.



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