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.
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:
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 = 0; i < OrderHistoryTotal(); i ++) {
OrderSelect(i, SELECT_BY_POS, MODE_HISTORY);
cmt = MathMax(cmt, OrderCloseTime());
}
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 !
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
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....
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
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
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
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...
... 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?