Forex
Google
New signals service!

Go Back   Forex Trading > Trading systems > Martingale/Average Cost and Hedging


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

 
 
LinkBack (90) Thread Tools
  1 links from elsewhere to this Post. Click to view.
Old 07-09-2007, 11:24 PM
Senior Member
 
Join Date: Feb 2006
Posts: 519
Michel is on a distinguished road
Quote:
Originally Posted by neta1o View Post
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(cntSELECT_BY_POSMODE_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 :
PHP Code:
  LastTicket 0;
  for(
cnt=0;cnt<OrdersTotal();cnt++)
  {
      
OrderSelect(cntSELECT_BY_POSMODE_TRADES);
      if (
OrderSymbol()==Symbol() && OrderMagicNumber()==MagicNumber
      {            
          
Profit += OrderProfit();       
          
OpenOrders ++; 
          if(
OrderTicket() > LastTicket)
          {
              
LastTicket OrderTicket();
              
LastPrice OrderOpenPrice();
              
LastLots OrderLots();
              
LastType OrderType();
              
LastTime OrderOpenTime();
           }   
       }
  } 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
 
Old 07-09-2007, 11:26 PM
static's Avatar
Senior Member
 
Join Date: Apr 2006
Location: 西海岸
Posts: 125
static is on a distinguished road
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.
__________________
魑魅魍魎
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
 
Old 07-10-2007, 01:16 AM
Member
 
Join Date: Jun 2007
Posts: 70
neta1o is on a distinguished road
Wow

Thanks for the changes Michel

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.

Last edited by neta1o; 07-10-2007 at 01:26 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
 
Old 07-10-2007, 01:21 AM
Member
 
Join Date: Jun 2007
Posts: 70
neta1o is on a distinguished road
Quote:
Originally Posted by static View Post
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.

-neta1o
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
 
Old 07-10-2007, 01:35 AM
Member
 
Join Date: Oct 2005
Posts: 33
manz66 is on a distinguished road
Different kind of indicators

Look at this indicator, looks dynamic. Link:

Trend Explosion Forex Trading System - Forex Trading Forum

Quote:
Originally Posted by neta1o View Post
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
 
Old 07-10-2007, 01:51 AM
Member
 
Join Date: Jun 2007
Posts: 70
neta1o is on a distinguished road
Quote:
Originally Posted by manz66 View Post
Look at this indicator, looks dynamic. Link:

Trend Explosion Forex Trading System - Forex Trading Forum
Did you see any links to code or download? I couldn't find it, just a description...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
 
Old 07-10-2007, 02:10 AM
Member
 
Join Date: Oct 2005
Posts: 33
manz66 is on a distinguished road
This system is based on multi time frame indicators

Here is a link to get this kind of MTF indicators in TSD

Multi Timeframe Indicators

To understand what indicators he is using here is video link:

YouTube - FOREX: Trend Explosion FOREX Trading System

Quote:
Originally Posted by neta1o View Post
Did you see any links to code or download? I couldn't find it, just a description...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
 
Old 07-10-2007, 03:01 AM
Member
 
Join Date: Jun 2007
Posts: 70
neta1o is on a distinguished road
Thanks manz66

I'm also currently looking at the following indicators

ADX
RVI
HMA
Waddah Attar Trend
etc...

Keep checking back
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
 
Old 07-10-2007, 03:24 PM
Senior Member
 
Join Date: Jun 2006
Posts: 743
yeoeleven is on a distinguished road
Fxao

neta1o,

after the change over to H4 the EA has performed better, the whipsaw effect has been removed.

As mentioned previously I have added GBPUSD to the EURUSD to give FXAO more of a challenge and am continuing to test on a very small mini account.

It may have been lucky to be in the right direction over the past surge upwards in both pairs but it has generated good profit.

Will be very interested to test your new version with extra indicators in place when you have the time to devote to it.

John
Attached Images
File Type: gif FXAO#2.gif (4.5 KB, 517 views)
Attached Files
File Type: htm FXAO#2.htm (18.3 KB, 50 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
 
Old 07-12-2007, 09:38 AM
Senior Member
 
Join Date: Jun 2006
Posts: 743
yeoeleven is on a distinguished road
Fxao

So where are the results from the testing??

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.
Attached Images
File Type: gif FXAO#3.gif (4.5 KB, 450 views)
Attached Files
File Type: htm FXAO#3.htm (21.3 KB, 39 views)

Last edited by yeoeleven; 07-12-2007 at 09:42 AM. Reason: Adding an explanation
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
 

Bookmarks

Tags
www.autotradingfx.com, 10points 3, 10point, 10points3, forex, 10points, 10points 3.mq4, 10p3v0.04, Terminator, 10 points dynamic stop, Center of Gravity2.ex4
Thread Tools

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

LinkBacks (?)
LinkBack to this Thread: http://www.forex-tsd.com/martingale-average-cost-hedging/3473-10points-3-mq4.html
Posted By For Type Date
Salire e ritracciare - Pagina 16 - Forum di Finanzaonline.com This thread Refback 08-07-2008 01:59 PM
Salire e ritracciare - Pagina 16 - Forum di Finanzaonline.com This thread Refback 08-07-2008 05:20 AM
Salire e ritracciare - Pagina 16 - Forum di Finanzaonline.com This thread Refback 08-06-2008 10:40 PM
Salire e ritracciare - Pagina 16 - Forum di Finanzaonline.com This thread Refback 08-06-2008 09:20 PM
Part Time Wealth Building Trading System - Weekly Scalping - Page 88 This thread Refback 08-06-2008 01:57 PM
Is This My Holy Grail EA :D This thread Refback 07-10-2008 04:03 AM
Martingale EA - Alternative to FXTradepro This thread Refback 07-09-2008 03:25 PM
¥á¥¿¥È¥ì¡¼¥À¡¼¤À¤¡¡ª¡¡ This thread Refback 06-13-2008 04:13 PM
FX¥·¥¹¥Æ¥à¥È¥ì¡¼¥É¼«Æ°ÇäÇã¼ÂÁ©¼¼ Post #3546 Refback 06-08-2008 12:11 PM
¥á¥¿¥È¥ì¡¼¥À¡¼¤À¤¡¡ª¡¡ 200805 This thread Refback 06-06-2008 02:32 PM
Wonderful Expert - Forex Trading | MetaTrader Indicators and Expert Advisors This thread Refback 05-16-2008 10:38 AM
[intraday]martingale strategy dan variasinya - Page 6 - Forexindo Forum This thread Refback 05-14-2008 01:40 AM
Expert Advisors on live account - Alpari (UK)'s Forex and CFDs Forum This thread Refback 05-01-2008 07:50 PM
íÇÇÎæÇä åá íæÌÏ ÇÓÊÑÊÌíå ÌíÏå á scapling - ãäÊÏíÇÊ ÇáãÊÏÇæá ÇáÚÑÈí This thread Refback 04-30-2008 02:28 PM
Expert Advisors on live account - Alpari (UK)'s Forex and CFDs Forum This thread Refback 04-23-2008 05:45 AM
Martingale EA - Alternative to FXTradepro This thread Refback 04-03-2008 01:13 PM
تست اکسپرت 10Points3 - Sarmaye Forums This thread Refback 03-29-2008 06:39 AM
Per tutti: Expert Advisor/Strategia da valutare - Forex Forum This thread Refback 03-27-2008 05:13 PM
Forex Mini - 300 30000 forex mini This thread Refback 03-18-2008 07:13 AM
FX¥·¥¹¥Æ¥à¥È¥ì¡¼¥É¼«Æ°ÇäÇã¼ÂÁ©¼¼ Post #3546 Refback 03-16-2008 02:11 PM
FX¥·¥¹¥Æ¥à¥È¥ì¡¼¥É¼«Æ°ÇäÇã¼ÂÁ©¼¼ Post #3546 Refback 03-16-2008 12:37 PM
Download 10points3 Ea - Type Your Search Here This thread Refback 03-10-2008 12:24 PM
10points3¤Î¿·¤·¤¤¥Ð¡¼¥¸¥ç¥ó¡Ö10p3MultiPipStepV001¡× FX¥·¥¹¥Æ¥à¥È¥ì¡¼¥É¼«Æ°ÇäÇã¼ÂÁ©¼¼ Post #3546 Refback 03-09-2008 10:42 AM
10points3 Ea - Type Your Search Here This thread Refback 02-27-2008 12:38 AM
Which EA is making money for you? This thread Refback 02-25-2008 11:12 AM
Per tutti: Expert Advisor/Strategia da valutare - Forex Forum This thread Refback 02-23-2008 11:03 AM
Which EA is making money for you? This thread Refback 02-20-2008 07:35 AM
Which EA is making money for you? This thread Refback 02-19-2008 07:30 PM
Diskuzní fórum Financnik.cz :: Se Sidem o Forexu :: Sbìrna AOS,EA,TS Post #1390 Refback 02-15-2008 10:08 PM
FX¥·¥¹¥Æ¥à¥È¥ì¡¼¥É¼«Æ°ÇäÇã¼ÂÁ©¼¼ Post #3191 Refback 02-15-2008 06:38 PM
FX¥·¥¹¥Æ¥à¥È¥ì¡¼¥É¼«Æ°ÇäÇã¼ÂÁ©¼¼ Post #3191 Refback 02-08-2008 03:31 PM
Part Time Wealth Building Trading System - Weekly Scalping - Page 88 This thread Refback 02-03-2008 04:01 AM
Martingale EA - Alternative to FXTradepro This thread Refback 01-28-2008 12:14 AM
FX¥·¥¹¥Æ¥à¥È¥ì¡¼¥É¼«Æ°ÇäÇã¼ÂÁ©¼¼ Post #3191