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
Glad to hear you guys are still testing, I'm going to be working on this later tonight so I should have some updates.
-neta1o
EDIT: I found a few bugs with this where it doesn't close all orders, also I need to make sure the target profit is in
ratio to the pip step or even when it succeeds it will fail. You may see a lot of no market to open. It will give this message every
time it checks. I'll update this later as well.
Hi neta1o, there is also a little bug here :
PHP Code:
for(cnt=0;cnt<OrdersTotal();cnt++)
{
OrderSelect(cnt, SELECT_BY_POS, MODE_TRADES);
if (OrderSymbol()==Symbol() && OrderMagicNumber()==MagicNumber)
{
LastTicket=OrderTicket();
LastPrice=OrderOpenPrice();
LastLots=OrderLots();
if (OrderType()==OP_BUY)
{
Profit=OrderProfit();
lastType=1;
}
if (OrderType()==OP_SELL)
{
Profit=OrderProfit();
lastType=2;
}
OpenOrders++;
}
One cannot assume that the last opened order will always be the latest of the scan loop; this may not to be a problem in BT, but it could be when working on the terminal as the order depends of the sorted column of the trade tab.
An easy and safe way to check if the order is the last one is to compare the TicketNumbers.
Another mistake seems a bad computation of the total profit.
So I suggest something like this :
I haven't read the whole thread on this, but if you are opening and closing trades based entirely on indicators (and therefore searching for the trend, I assume) you might want to add a time filter to prevent opening new orders during the Asian session, you might filter out some of the whip.
I'll be adding more intelligence to the indicator soon. Here is the updates with the bug fixes. There was one other one when multiple orders were open if profit was reached it was only closing the last order and not all of them.
-neta1o
It doesn't really matter what currency pair you use this on (I use EURUSD and GBPUSD), the more movement the better and only H4 for now.
Tests with that criteria would help my development, thanks everyone.
I haven't read the whole thread on this, but if you are opening and closing trades based entirely on indicators (and therefore searching for the trend, I assume) you might want to add a time filter to prevent opening new orders during the Asian session, you might filter out some of the whip.
Just a thought.
I considered filtering out certain sessions but my belief is that there are profits to be made in every session with the right strategy.
Right now my goal is to give this indicator the intelligence to do the best it can with the built in MT4 indicators. After that I'll run more tests. If certain sessions really negatively affect this EA then I'll consider having this EA shift strategies during different sessions.
Maybe during the news announcements and big whip times I could have it shift to a makegrid strategy. Obviously this is a bit out of my present scope, but these are some of my thoughts for now.
Well here is the program entirely re-written. DO NOT TRADE WITH THIS LIVE.
You may demo trade if you wish. Basically, I rewrote the 10points3 code from scratch. I took out a lot and cleaned up the 10points3 code. I also added a new function called marketQuality. This is the basis of the entry and the exit of the program.
Right now I have a simple RSI script in there, but it clearly doesn't succeed. If any big runs happens it'll fail.
I plan on adding a lot of intelligence to this.
Test it out demo if you'd like and. Let me know what we can add or subtract.
What are some good indicators that are true to direction real time?
EDIT: This has no T/P or S/L because it uses indicators to open and close the orders.
I think to make a truly successful EA we'll need to make more of the variables dynamic. It needs to adjust with the market or it will always fail. The TakeProfit and the PipStep may need to be dynamic depending on the market volume and trade volatility. It would also probably make sense to program in a conservative money management so we can avoid having everyone tinker with the maxtrade variable. The maxtrade variable can then be dynamic based on account balance.
This EA is performing very well and it seems that I am the only one interested.
neta1o is on to something here and needs helpers to test and report results, he has spent lots of his time rewriting the code from scratch and has given it to us freely, the least we can do it forward test and report.
Using a mini account and trading .1 units it has produced a closed profit of $80 since the 9th with no floating loss. A lot better than other commercial EAs I am testing under the same conditions.
John
Edited to add that the slow start was due to my using the M30 timeframe and the EA getting whipsaw from the RSI signals. As soon as the H4 was used the results were quite different.
Last edited by yeoeleven; 07-12-2007 at 10:42 AM.
Reason: Adding an explanation