Forex



Go Back   Forex Trading > Downloads > Expert Advisors - 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 12-16-2006, 07:12 PM
Aaragorn's Avatar
Senior Member
 
Join Date: Jun 2006
Location: USA
Posts: 801
Aaragorn is on a distinguished road
Turtles EA

InvestorMe Asked me to post this on it's own thread. It's not fully debugged. I don't know why it never opens any long positions. There's still alot about this strategy I don't yet understand.
Attached Files
File Type: pdf turtles-system.pdf (270.6 KB, 899 views)
File Type: mq4 OriginalTurtles-EA_v1.mq4 (6.6 KB, 849 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
  #2 (permalink)  
Old 12-17-2006, 05:31 AM
Junior Member
 
Join Date: Dec 2006
Posts: 3
kyliejaeger is on a distinguished road
Talking Original Turtles

Valvk talks about his turtle EA currently #2 in the championship. Turtle Power!!

http://championship.mql4.com/2006/news/92

Last edited by kyliejaeger; 12-17-2006 at 05:43 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 12-17-2006, 07:42 PM
Member
 
Join Date: Mar 2006
Posts: 48
sstillwell is on a distinguished road
Quote:
Originally Posted by Aaragorn
InvestorMe Asked me to post this on it's own thread. It's not fully debugged. I don't know why it never opens any long positions. There's still alot about this strategy I don't yet understand.
Running backtest, it DOES open long and short positions...

The problem I had is that it only opens positions in backtest if I use "control points"...it doesn't open any orders at all if I use "every tick".

Weird.

I'm on IBFX...I'll start forward testing as soon as the market opens.

sstillwell
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 12-17-2006, 07:46 PM
Member
 
Join Date: Mar 2006
Posts: 48
sstillwell is on a distinguished road
Also, look out for this...
Code:
void ClosePending()
 { 
     if(OrderType()<=OP_SELL && OrderSymbol()==Symbol() && OrderComment()=="Trend Rider" && OrderMagicNumber()==MAGIC) 
        {
          if(OrderType()==OP_BUY) OrderClose(OrderTicket(),OrderLots(),Bid,3,Violet);
          else if (OrderType()==OP_SELL) OrderClose(OrderTicket(),OrderLots(),Ask,3,Violet);
        }
 }
No orders ever get sent with the comment "Trend Rider", it should be:

Code:
void ClosePending()
 { 
     if(OrderType()<=OP_SELL && OrderSymbol()==Symbol() && OrderComment()=="Turtles" && OrderMagicNumber()==MAGIC) 
        {
          if(OrderType()==OP_BUY) OrderClose(OrderTicket(),OrderLots(),Bid,3,Violet);
          else if (OrderType()==OP_SELL) OrderClose(OrderTicket(),OrderLots(),Ask,3,Violet);
        }
 }
don't you think so?

Regards,

sstillwell
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 12-17-2006, 08:49 PM
Senior Member
 
Join Date: May 2006
Posts: 130
investor_me is on a distinguished road
Quote:
Originally Posted by sstillwell
Also, look out for this...
Code:
void ClosePending()
 { 
     if(OrderType()<=OP_SELL && OrderSymbol()==Symbol() && OrderComment()=="Trend Rider" && OrderMagicNumber()==MAGIC) 
        {
          if(OrderType()==OP_BUY) OrderClose(OrderTicket(),OrderLots(),Bid,3,Violet);
          else if (OrderType()==OP_SELL) OrderClose(OrderTicket(),OrderLots(),Ask,3,Violet);
        }
 }
No orders ever get sent with the comment "Trend Rider", it should be:

Code:
void ClosePending()
 { 
     if(OrderType()<=OP_SELL && OrderSymbol()==Symbol() && OrderComment()=="Turtles" && OrderMagicNumber()==MAGIC) 
        {
          if(OrderType()==OP_BUY) OrderClose(OrderTicket(),OrderLots(),Bid,3,Violet);
          else if (OrderType()==OP_SELL) OrderClose(OrderTicket(),OrderLots(),Ask,3,Violet);
        }
 }
don't you think so?

Regards,

sstillwell
You're absolutely right. This is among a few more issues that are being worked on. I hope we could post the newer version soon so we can get contributions. Please, whoever wishes to contribute can do so and post the new version. It should be team work
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 12-17-2006, 10:12 PM
mikhaildgreat's Avatar
Senior Member
 
Join Date: Nov 2006
Posts: 103
mikhaildgreat is on a distinguished road
Lightbulb Also a turtle man

hello,

Im also developing my own turtle EA, perhaps we could work together
Anyways I also started a thread for my Ninja Turtle!

heres the link: MY TURTLES EA - need Testers

Ok Happy Holidays!
Mikhail
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 12-18-2006, 03:33 PM
Junior Member
 
Join Date: Nov 2005
Posts: 14
iPlayGames is on a distinguished road
do not use ordercomment() to identify your trades, use ordermagicnumber() instead. some brokers modify comments of orders sent to them by an EA.
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 12-18-2006, 03:36 PM
Member
 
Join Date: Mar 2006
Posts: 48
sstillwell is on a distinguished road
Good idea. We're already identifying by magic number, so matching comment is kind of redundant.

sstillwell
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 12-18-2006, 07:58 PM
Aaragorn's Avatar
Senior Member
 
Join Date: Jun 2006
Location: USA
Posts: 801
Aaragorn is on a distinguished road
I fixed the close pending function....

It still wasn't working cause it didn't have anything selected... now it works

void ClosePending()
{
for(int i=0;i<=OrdersTotal(); i++)
{
OrderSelect(i,SELECT_BY_POS,MODE_TRADES);
if(OrderSymbol()==Symbol() && OrderComment()=="Turtles" && OrderMagicNumber()==MAGIC)
{
if(OrderType()==OP_BUY) OrderClose(OrderTicket(),OrderLots(),Bid,3,Violet) ;
else if (OrderType()==OP_SELL) OrderClose(OrderTicket(),OrderLots(),Ask,3,Violet) ;
}
}
}

i know it's comparision is still redundant but that doesn't really effect anything so I didn't change it. Sometimes redundancy is security, if it doesn't hurt anything.
Attached Files
File Type: mq4 ModifiedTurtles-EA_v1.mq4 (9.1 KB, 653 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
  #10 (permalink)  
Old 12-18-2006, 11:36 PM
Member
 
Join Date: Mar 2006
Posts: 48
sstillwell is on a distinguished road
You shouldn't need to do that.

ClosePending() is called from within the PendingOrders() loop, where the order is already being selected.

What problem are you observing that makes you think it needs to be changed?

sstillwell
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
Turtles EA, turtles


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
MY TURTLES EA - need Testers mikhaildgreat Expert Advisors - Metatrader 4 120 08-22-2009 06:50 AM


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



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