Forex
Google
New signals service!

Go Back   Forex Trading > Trading systems > Phoenix


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

Reply
 
LinkBack (4) Thread Tools Display Modes
  #81 (permalink)  
Old 02-15-2007, 10:34 PM
Junior Member
 
Join Date: Dec 2006
Posts: 12
JB_007 is on a distinguished road
Thanks for pointing out the template settings file and AutoHotKey.

I was thinking of completely automating the process by using Excel and MetaTrader together. Excel for keeping track of (and computing) variable start and end values and then copying them into MetaTrader and running the optimization.

I will give it a go over next few days and tell you guys how it goes.


Quote:
Originally Posted by daraknor
I made a template settings file you can load to do testing on. If you load it, many many settings will be uncovered. I recommend optimizing signal and trade settings separately.

Metatrader4 uses Genetic Algorithms to focus on profitable settings to find which settings generate the most profit. I think the settings file I generated has something like 17,000,000,000 possibilities. the GA system runs about 3000 of those, spread around quite a bit. Next, it tests about 7000 settings "near" the existing settings by adjusting one parameter up or down based on the "step" value.

I think the reason it said 10 hours and then cut down to 3 hours completion time was because either A) an exhaustive search was done using settings I filter out (5.7.2 feature) or B) some of the test results were cached from previous testing and were simply reused instead of retested.

One thing I do is stop tests once they hit a certain low balance or low result. If you test with 10k and the test hits 8k in the first month of data, no point in waiting on 5 more months of data to tell you exactly how bad the results are. A savings of 5/6 time for that test.

Remember to keep at least the 2 weeks of most recent data out of the optimized test, and then try the settings on those tests. If the settings are positive on those tests, you more likely have a winner. GA system will make clumped results.

I prefer the macro program AutoHotKey, I have scripted games and repetitive tasks with it. We can likely program AutoHotKey to run the 2week filter, copy and paste the results.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #82 (permalink)  
Old 02-16-2007, 12:37 AM
daraknor's Avatar
Senior Member
 
Join Date: Oct 2006
Location: Portland, OR USA
Posts: 996
daraknor is on a distinguished road
Please do JB_007, I look forward to the results. I simply have too much going on :/ If you use autohotkey it is important that

#1 you use a screen resolution other people can use (1024x768 is what I use.. ugh)
#2 the applications are full screen.

You can switch applications by name so sending ALT-TAB isn't needed. Are you aiming for 2 rounds or 3? Can the date ranges be specified in Excel or Macro? (I'd recommend Excel, copy paste).

PContour's Excel to .set file writing should probably be useful for loading up results and importing them if you want to do a 3+ stage optimization. I documented a suggested 6 weeks optimize, 2 week test, 4 week test out of chronological order:
4 weeks (test3 of best results)
6 weeks (optimized, test1)
2 weeks (test2 of best results)
Longer time frames yield better results, but take longer. A better answer might be test1: 4 months test2: 1 month test3: 1-3 months
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #83 (permalink)  
Old 02-16-2007, 04:11 AM
Junior Member
 
Join Date: Dec 2006
Posts: 12
JB_007 is on a distinguished road
After testing AutoHotKey for few hours, I believe it is the best tool for the job.

I liked the fact that rather than just recording mouse actions and keyboards, it generates the script (macro) which can then be customized by hand.

I use 1024x768 screen resolution so that shouldn't be a problem.

I haven't been following the optimization thread so I do not fully understand the optimization strategy you described - I think I understand what you are talking about. This is a similar to strategy used for testing Neural Networks - 2/3 of data is used for training the network and the remaining 1/3 data is used for testing.

I can assure you that I will exhaustively read the optimization thread before continuing.

re using Excel and Metatrader together - that was just an idea I came up with to fully automate the optimization process. I will have to investigate it further.


Quote:
Originally Posted by daraknor
Please do JB_007, I look forward to the results. I simply have too much going on :/ If you use autohotkey it is important that

#1 you use a screen resolution other people can use (1024x768 is what I use.. ugh)
#2 the applications are full screen.

You can switch applications by name so sending ALT-TAB isn't needed. Are you aiming for 2 rounds or 3? Can the date ranges be specified in Excel or Macro? (I'd recommend Excel, copy paste).

PContour's Excel to .set file writing should probably be useful for loading up results and importing them if you want to do a 3+ stage optimization. I documented a suggested 6 weeks optimize, 2 week test, 4 week test out of chronological order:
4 weeks (test3 of best results)
6 weeks (optimized, test1)
2 weeks (test2 of best results)
Longer time frames yield better results, but take longer. A better answer might be test1: 4 months test2: 1 month test3: 1-3 months
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #84 (permalink)  
Old 02-16-2007, 08:30 PM
daraknor's Avatar
Senior Member
 
Join Date: Oct 2006
Location: Portland, OR USA
Posts: 996
daraknor is on a distinguished road
You are right about the NN reference, that is where I got the strategy from. The main reason to the 3rd round of testing is to more clearly delineate long term settings from short term settings.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #85 (permalink)  
Old 02-17-2007, 08:25 PM
Senior Member
 
Join Date: Nov 2006
Posts: 283
autumnleaves is on a distinguished road
Trend or not

Here is a conundrum for you. As I understand it, Phoenix is not trend aware, which I interpret to mean that it works the same way whether the market is trending or not.

Now a trend is usually a fairly large scale (time and amplitude) phenomenon, which we might term a metawave, whereas Phoenix presumably makes its living off wavelets and even ripples (i.e., two or three orders below a metawave in amplitude and time).

So it makes no sense to me that Phoenix should post systematically different results in a trending or non trending market. Instead, if Phoenix has good weeks and bad weeks, could this not simply be a statistical fluctuation? If so, then there must be considerable room for improvement in its signal interpretation, because an efficient EA should not be subject to large statistical fluctuations. In other words, it should be able to consistently separate bad trading situations from good trading situations, and enter and leave the market accordingly.

Comment please.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #86 (permalink)  
Old 02-17-2007, 09:41 PM
daraknor's Avatar
Senior Member
 
Join Date: Oct 2006
Location: Portland, OR USA
Posts: 996
daraknor is on a distinguished road
As a trend reversal system, Phoenix should be aware of all things related to trend reversals. First and foremost is indications of a strong trend but Phoenix does not currently do this. Secondly, Phoenix needs to be aware of support and resist lines (fibonacci, gann, murrey) and trade accordingly.

Nearing S&R isn't a requirement to trade, but it would be considered a confirming signal and more lots might be placed, or a confirming signal would overcome a weak signal exhibited by other indicators.

If a strong trend is detected, Phoenix shouldn't try to fight it (trade filter).

All of these are partially implemented in my Phoenix 6 code. I'll resume work on it this coming week. My first goal for Phoenix was to make it stable and make similar trades under similar conditions. Using the contributed signal count code along with the bug fixes makes Phoenix 5.7.0 perform in a way that I would trust money on. Phoenix 6 is designed to be more adaptable to different market types and not loose as much (or make money even) when a different market type is detected (strong trend most important).
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #87 (permalink)  
Old 02-18-2007, 05:16 AM
Pcontour's Avatar
Senior Member
 
Join Date: Nov 2006
Location: Canada
Posts: 172
Pcontour is on a distinguished road
Quote:
Originally Posted by autumnleaves
Here is a conundrum for you. As I understand it, Phoenix is not trend aware, which I interpret to mean that it works the same way whether the market is trending or not.

Now a trend is usually a fairly large scale (time and amplitude) phenomenon, which we might term a metawave, whereas Phoenix presumably makes its living off wavelets and even ripples (i.e., two or three orders below a metawave in amplitude and time).

So it makes no sense to me that Phoenix should post systematically different results in a trending or non trending market. Instead, if Phoenix has good weeks and bad weeks, could this not simply be a statistical fluctuation? If so, then there must be considerable room for improvement in its signal interpretation, because an efficient EA should not be subject to large statistical fluctuations. In other words, it should be able to consistently separate bad trading situations from good trading situations, and enter and leave the market accordingly.

Comment please.
I've been thinking about this issue for some time, particularly, since Hendrik's contest version of Phoenix, ran into a series of losses in the closing stages of the contest. One way to make it through a bad stretch is, to reduce the amount you trade when the percentage of trades you are losing on, rises. Daraknor has some great adaptive ideas for changing settings. My update for the MM section in much more primitive all it does is cuts back on the lot size based on the last 3 trades.


I have posted the code here with an update to Phoenix_5_7_2a and Phoenix_5_7_2_W. Please click the link for details.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #88 (permalink)  
Old 02-18-2007, 05:40 AM
alamanjani's Avatar
Senior Member
 
Join Date: Nov 2006
Location: USA WY & EU Slo
Posts: 144
alamanjani is on a distinguished road
Hi everyone

Daraknor, I'm glad, you are feeling better!

Quote:
Originally Posted by autumnleaves
... because an efficient EA should not be subject to large statistical fluctuations. In other words, it should be able to consistently separate bad trading situations from good trading situations, and enter and leave the market accordingly.
About separating bad trading from good trading conditions, and because once Daraknor asked for some (indicators/help) with determining the trend, I thought to attach this interesting indicator. It may help, it may not...

Author is Luis Damiani, he was second in the championship and his EA was long time with Phoenix exchanging first and second place. If I heard correct, this indicator is part of his 2nd place winning EA Dumasa.

I got indicator here:
http://www.damianifx.com.br/indicators.php

Author's note about this indicator: "Used to filter whipsawed markets out. When noise line (grey) is above signal line (green) even trading ranges strategies will have poor performance - by Luis Guilherme Damiani"

Bertbin and Azbo, great spreadsheet, thank you! Btw, you are doing good work with your's testings!

I can't forward testing latelly, because my laptop is sometimes with me in the car so I don't have it on the internet 24/7.

I was trying to do some optimization few times, but looks like, I must of have some problems with my historic charts. No matter how I was 'optimizing' or even if I'm using current data, results are bad. I was trying to reload alpari data, had to manually delete old data, something went wrong there, I'm sure, shouldn't be so complicated... so I gave up and I'm now waiting on settings from someone else (LOL) or on new version Phoenix 6.

I'm also trying to learn some manual trading strategies (you know, just in case) but due of lack of free time, I'm still at the very first step.

Anyway, just though to step in and say hi to everyone.

Have a nice day everyone. (and you Bertbin, be carefull, that you don't get some sun burns. (here we go again, I'm jealous again LOL)

Mario

P.s. Daraknor, do you plan, to put on Phoenix fund new version when will be ready or you will start with 5.7.x? Just curious...
Attached Files
File Type: mq4 Damiani_volatmeter.mq4 (3.3 KB, 28 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #89 (permalink)  
Old 02-18-2007, 11:36 AM
Senior Member
 
Join Date: Oct 2006
Location: Margarita Island - Venezuela
Posts: 315
bertbin is on a distinguished road
Hi Mario
Good to see you back here
I went on the Damiani Web site as you suggested in your long post.
On the graphs that Damiani shows, there is another indicator named 1Damitrix or 1Damitrix adaptsys that seems great for the trend (and reverse/bounce moments)
But unfortunatly I didn't find it in the avalaible indicators...
Any idea(s) ???
See you soon I hope...
(Send you some warm degres from here at 12h30 GMT -07h30 in the morning here - air : 26 Celsius water : 23 Celsius and poor wind :2/5 knots coming from east)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #90 (permalink)  
Old 02-21-2007, 10:00 PM
daraknor's Avatar
Senior Member
 
Join Date: Oct 2006
Location: Portland, OR USA
Posts: 996
daraknor is on a distinguished road
I plan to trade PhoenixFund with 5.7.2a. I will probably set up 5.7.2W temporarily for USDJPY, but only USDJPY until a demo validates some other settings in forward testing.

Thank you for the indicator! Do you know the redistribution policy? It is currently configured as an indicator for manual trading. It is original enough I would want to maintain copyright even if I rewrote the code. I will probably email Mr. Damiani regarding the code if it works well for integration.

My current workload is based around unpacking, so I can find things I'm looking for in under 2 hours. Once most of the unpacking is complete, I'll resume work on Phoenix 6. My major task this week is adding new hosting customers.

Happy Day: PhoenixFund was approved as an FXDD IB. See PhoenixFund thread for details
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Tags
phoenix_ea, Pendulum, 1Damitrix, phoenix, "order modify error 130"

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

LinkBacks (?)
LinkBack to this Thread: http://www.forex-tsd.com/phoenix/4645-phoenix-optimization.html
Posted By For Type Date
Phoenix 2007 (new thread) - Page 60 This thread Refback 07-09-2008 09:11 PM
Forex Factory - Phoenix 2007 (new thread) This thread Refback 01-17-2008 06:22 AM
Phoenix 2007 (new thread) - Page 61 This thread Refback 10-14-2007 11:13 PM
Phoenix 2007 (new thread) - Page 60 This thread Refback 08-10-2007 09:07 AM

Similar Threads
Thread Thread Starter Forum Replies Last Post
Backtesting/Optimization newdigital Expert Advisors - Metatrader 4 485 12-01-2008 05:25 AM
Optimization cpu usage, need help Big Joe Indicators - Metatrader 4 4 08-16-2007 11:46 PM
Martingale Optimization pelele79 Expert Advisors - Metatrader 4 19 05-07-2007 11:27 AM
How do I use the optimization? huhenyo Metatrader 4 1 03-15-2007 09:39 AM
Optimization cardio Metatrader 4 1 01-25-2006 01:30 PM


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



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