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
  #641 (permalink)  
Old 04-27-2008, 09:02 PM
Senior Member
 
Join Date: Feb 2006
Posts: 587
Michel is on a distinguished road
Quote:
Originally Posted by 360648 View Post
Please
Thanks for sharing your strategy; we need minds like yours here !
But did you already forward test it ?
I don't think so, because there is an error in your code.
It's not very important because it's not an essential part of your strategy, but it cannot work correctly in forward test.
After the closing of an order, you are waiting 100 or 1000 seconds before eventually openning a new one; here is your code:
PHP Code:
  hstTotal=HistoryTotal();

   
OrderSelect(hstTotal,SELECT_BY_TICKET,MODE_HISTORY);
   
ctm=OrderCloseTime();

   if (
CurTime() - ctm waittime)
      return; 
If we replace the obsolete functions, this is equivalent to
PHP Code:
   hstTotal=OrdersHistoryTotal();

   
OrderSelect(hstTotal,SELECT_BY_TICKET,MODE_HISTORY);
   
ctm=OrderCloseTime();

   if (
TimeCurrent() - ctm waittime)
      return; 
In backtest mode this works as the ticket numbers are counted from 1, 2, 3, and so on, so OrderHistoryTotal() reflects the ticket number of the last closed order, but with a broker, the ticket numbers may be 645230, 645259, ...
Also you are depending of the sorted collumn of the history table, so it's not the highest index which point to the last closed order.
I sugest you the following code to find the lastest close time :
PHP Code:
for(int i 0OrderHistoryTotal(); ++) {
 
OrderSelect(iSELECT_BY_POSMODE_HISTORY);
 
cmt MathMax(cmtOrderCloseTime()); 

Now you should be carefull with this kind code because there is a bug in MT4 and the backtests are looking in the real history and not the one build by the backtest itself. I do not know if now this bug is fixed or not (but it's easy to check).
Cheers !
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
  #642 (permalink)  
Old 04-28-2008, 09:08 AM
Banned
 
Join Date: Apr 2008
Posts: 2
clement is on a distinguished road
Smile sorry i didnt get you

hello thank you for testing the ea pls i would like to know how well it perforemed and if the errors you stated are risky and if there have to be corrections in the ea on wat accoutn did you use if for and wat was the gain pls i will like you to help me coreect the error and end me reply so i will kjnow how well it will perform this is my first ea and i was hoping it will work without errors pls get back to me with corrections you have made and pls help me back test and forward test so i will know how well it will work pls do get back to me soon and do you think it will work with a mini acount of 1000 dollars
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
  #643 (permalink)  
Old 04-28-2008, 10:52 AM
Senior Member
 
Join Date: Feb 2006
Posts: 587
Michel is on a distinguished road
Quote:
Originally Posted by clement View Post
hello thank you for testing the ea pls i would like to know how well it perforemed and if the errors you stated are risky and if there have to be corrections in the ea on wat accoutn did you use if for and wat was the gain pls i will like you to help me coreect the error and end me reply so i will kjnow how well it will perform this is my first ea and i was hoping it will work without errors pls get back to me with corrections you have made and pls help me back test and forward test so i will know how well it will work pls do get back to me soon and do you think it will work with a mini acount of 1000 dollars
When sombody posts an EA, my intention is more to understand what is the strategy behind, what is the EA intended to do, than to use it for myself.
Then, if I understand what the author is willing to do but I see that the code is wrong to do exactly that, I call this an "error" and try to explain it to the author and also to help him to correct it. That's was the point of my previous post.

This doesn't mean that the EA is not working, but instead that it's not working as it is expected to work following my understanding.

Of course, if the EA's "author" is not the real one and if he doesn't understand anything about coding, he cannot understand what I mean.

You stated "this is my first ea", but let me have some doubt about that: inside the code there are obsolete functions which are not used since more than one year now....

Last edited by Michel; 04-28-2008 at 11:08 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
  #644 (permalink)  
Old 04-28-2008, 11:18 AM
forexmoments's Avatar
Senior Member
 
Join Date: Dec 2007
Posts: 376
forexmoments is on a distinguished road
Quote:
Originally Posted by clement View Post
hello thank you for testing the ea pls i would like to know how well it perforemed and if the errors you stated are risky and if there have to be corrections in the ea on wat accoutn did you use if for and wat was the gain pls i will like you to help me coreect the error and end me reply so i will kjnow how well it will perform this is my first ea and i was hoping it will work without errors pls get back to me with corrections you have made and pls help me back test and forward test so i will know how well it will work pls do get back to me soon and do you think it will work with a mini acount of 1000 dollars
Do you know how to use punctuation?
__________________
Ash's Free Signals
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
  #645 (permalink)  
Old 04-28-2008, 01:12 PM
cockeyedcowboy's Avatar
Senior Member
 
Join Date: Nov 2005
Posts: 480
cockeyedcowboy is on a distinguished road
Quote:
Originally Posted by forexmoments View Post
Do you know how to use punctuation?

English is not the important factor here If your into the proper english thing then find your self a forum that is based on that this is for traders not english teachers most here english is not their mother language and most do the best they can to communicate trading questions and Idears that is what this forums about not ENGLISH


Keit
,.,.,.,.,..,.,;'::::..;......,.,.,.,......,,,,,,,! !!!!!!!???????

PS put your dam punctuations were you want them and no my name is not spelled wrong
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
  #646 (permalink)  
Old 04-28-2008, 05:04 PM
Senior Member
 
Join Date: Jan 2006
Posts: 1,119
omelette is on a distinguished road
Quote:
Originally Posted by cockeyedcowboy View Post
English is not the important factor here If your into the proper english thing then find your self a forum that is based on that this is for traders not english teachers most here english is not their mother language and most do the best they can to communicate trading questions and Idears that is what this forums about not ENGLISH


Keit
,.,.,.,.,..,.,;'::::..;......,.,.,.,......,,,,,,,! !!!!!!!???????

PS put your dam punctuations were you want them and no my name is not spelled wrong
forexmoments is far more concerned about free advertising (his signature link) than punctuation - the vast majority of his posts are vaguely relevant one-liners - employing the minimium of effort, and just relevant enough to slip under the admins radar...
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
  #647 (permalink)  
Old 04-28-2008, 06:36 PM
Member
 
Join Date: Feb 2007
Posts: 87
BigBoppa is on a distinguished road
Quote:
Originally Posted by cockeyedcowboy View Post
... most here english is not their mother language and most do the best they can to communicate trading questions and Idears that is what this forums about not ENGLISH
Don´t you think that especially for non english mother language people it is easier to read if it is correct spelling and punctuation?
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
  #648 (permalink)  
Old 04-28-2008, 06:55 PM
alesio's Avatar
Member
 
Join Date: Jul 2007
Posts: 35
alesio is on a distinguished road
Quote:
Originally Posted by cockeyedcowboy View Post
this forums about not ENGLISH
HEY 81G8099A

cant u read, seems like u got a problem understanding english.

BigBoppa, my ar$e. lol
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
  #649 (permalink)  
Old 04-28-2008, 07:43 PM
Member
 
Join Date: Feb 2007
Posts: 87
BigBoppa is on a distinguished road
COOL man !
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
  #650 (permalink)  
Old 04-28-2008, 08:40 PM
cockeyedcowboy's Avatar
Senior Member
 
Join Date: Nov 2005
Posts: 480
cockeyedcowboy is on a distinguished road
I was out of line; post removed.

Keit

Last edited by cockeyedcowboy; 04-28-2008 at 09:07 PM.
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
"chameleon ea", account, bartrader, best ea, best ea for forex, best EA for forex trading, best ea for metatrader, best EA forex, best EA in forex, best ea metatrader, best ea mq4, best forex ea, best forex EA ever, Best forex Eas, best forex trading ea, carrygrid, carrygrid ea, CCI EA, Chameleon, Chameleon EA, chameleon ea forex, ea + forex, ea best forex, ea forex, EA forex trading, ea metatrader, ea, forex, eaforex, eas, ea_rabbit, EA_Rabbit 2, EURGBP 30M RULE BASED, Excalibur EA, Excalibur EA forex, forex, forex best EA, forex ea, forex Ea best, forex ea metatrader, forex ea mt4, forex ea's, forex metatrader ea, forex tsd, fusion scalper, Gann_HiLo_Activator, Gann_HiLo_Activator_v2.mq4, gomegaauto.dll, hans 123, Hans123 EA, Hans123MV22, Hans123Trader, Intelipip, intelipip ea, Intelipip EA download, live, MakeGrid_gbpUsd, MakeGrid_GbpUsd_Daily, Marko Day CCI EA, Mmc_ea, my lucky EA, mylucky EA, MyLuckyProV04p, MyLuckyProV04p.mq4, new cross angry miserable ea, OpenTrader EA, Overtrade ea, OverTrade_BS_03, PanNik_EAv4.2, scalper champ, Scalper Champ v4, SDS UMM ver1, show me your best ea, show us, SHOW US BEST EA, show us your best ea, show your best ea, SHOW, BEST, EA, STEPMA 1.45, the best ea, the best ea for forex, the best ea forex, The best forex EA, top forex ea, trendchaser, working, your best ea


Currently Active Users Viewing This Thread: 4 (3 members and 1 guests)
epeter49, kratya, profittaker
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
EA doesnt show symbols soundchild Setup Questions 7 05-03-2009 09:06 AM
Only show smallest variable Jagg Metatrader 4 5 04-03-2007 09:56 AM
How do you show buy and sell arrows on an EA rbowles Metatrader 4 1 07-31-2006 01:04 AM
MT4 demos wont show history don perry Expert Advisors - Metatrader 4 2 07-27-2006 12:15 AM


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



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