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 (5) Thread Tools Display Modes
  #121 (permalink)  
Old 07-15-2006, 12:23 AM
Banned
 
Join Date: Dec 2005
Posts: 61
forextrades is on a distinguished road
Quote:
Originally Posted by Hendrick
Before I start my holydays Wednesday next week I will try to finish version 1.2 of Phoenix. It’s my intention to remove the Surf function completely as I’m not satisfied with the performance of it. Apart from that I think it’s after all not a good idea to try to make an EA that’s suitable for a ranging as well as a trending market. I think it’s better to focus on the fact that Phoenix is a counter-trend EA that’s doing very well in a ranging market. We better try to improve Phoenix insofar that it avoids the trending markets and gets the most out of a ranging market.

How to improve Phoenix?

Avoid a trending/volatile market: I think SafePipsDistance and SafeArea are doing quit well. We maybe need a little tweaking.

Avoid trading during certain parts of the day: The TradeFrom/TradeUntil will do.

Money management is another issue. How to deal with loosing trades? There are 3 different approaches:

Phoenix is using a money management function were the number of lots is based on the free margin of your account. If the free margin decreases so will the number of lots and vice versa.

After a loosing trade you open a new trade for the same pair and you increase your lots with the intention to level out the first loosing trade. If the second is a loser too you increase your lots again. So with a TP=25 and SL=50 and Lots=1 you get the following summary:

First trade 1 lot looser -50
Second trade 2 lots looser -100
Third trade 4 lots looser -200
Fourth trade 8 lots looser -400
Fifth trade 16 lots and so on.

The idea behind this is that after a couple of losers for the same pair it becomes more and more unlikely that the following trade is a loser too. I’ve never tried this approach, but I like the idea.

The third approach is to decrease the number of lots after a couple of losers in a row (for different pairs). The idea behind this is that the EA apparently arrived in a less suitable period and have to wait for better times. Only after a couple of winning trades the number of lots will increase. I think we have sufficient options for Phoenix to avoid these less suitable periods so we leave this approach for what it is.

I think I will add the second option (increase the number of lots after a loosing trade) to the next version of Phoenix for those who want to user this.

At the end of every week I study all the trades that were made by Phoenix. This is very useful and I’ve noticed that all the JPY-pairs need a different approach. I will tell you more in my next post.

This weekend I will make a new version of Phoenix, test it on Monday and post it Tuesday. Stay tuned!
I've seen several EA's like this and not one of them was able to make money over the long haul. Blowing an account is inevitable with martingale style money management.

But I like the idea of increasing/decreasing lot sizes based on the number of winners/losers in a row. Say 3 winners in a row, increase lot size; 3 losers in a row, decrease lot sizes.

Also, maybe a better entry method would make this system more profitable. There is an indicator called a squat bar that uses volume and range to show likely reversal points. It's very accurate about 70-80% of the time, but you have to pay a monthly fee for the software. I won't mention the name of the software here as I don't want to advertise it, but it's something to look into.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #122 (permalink)  
Old 07-15-2006, 04:24 AM
Aaragorn's Avatar
Senior Member
 
Join Date: Jun 2006
Location: USA
Posts: 801
Aaragorn is on a distinguished road
Quote:
Originally Posted by AZBOfin
wow, it gets more confusing my the minute

i propose the following:

1) all calculations made are based on the servers time and not the local time

2) all time-setups in the EA should be made in GMT

3) introduction of a new variable called ServerOffset
this variable reflects an offset from GMT timezone to the servers timezone


my local time is not relevant. today i am here at GMT-7, tomorrow i could be GMT-4, next week at GMT+2
but my trading server is always at the same place. and this should be the basis for all calculations.

just my 2cents - hendrick you're the man, what do you think?


AZBOfin
I was thinking of something along those same lines...keep it simple for the time shift challenged like me...I second the motion for a ServerOffset variable..I wish I knew how to do it myself. I'm not that far yet coding...the only thing better would be to have the code detect what it needs to and adjust automatically so the user doesn't have to mess it up.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #123 (permalink)  
Old 07-15-2006, 05:17 PM
Hendrick's Avatar
Senior Member
 
Join Date: Feb 2006
Posts: 501
Hendrick is on a distinguished road
I need some help. The BUY and SELL signals of Phoenix are generated by the following piece of code:

MA =iMA(NULL,MA_Timeframe,MA_Length,0,MODE_SMA,PRICE_ OPEN,0);
RVI=iRVI(NULL,0,10,MODE_MAIN,0)-iRVI(NULL,0,10,MODE_MAIN,1);

The MA is the heart of Phoenix and the RVI (Relative Vigor Index) is an additional signal. For a BUY, RVI needs to be > 0 and for a sell <0. I’m not happy with this because it’s far to simple. What I want is an additional signal that takes account of the trend. So no SELL if the trend is up and no BUY if the trend is down. I think this can be a major improvement.

I think a simple fast and slow EMA will do. I have made an indicator (PhoenixAdditionalIndicator) that makes it visible what this signal will do. If it’s red, only SELL’s are valid, green for BUY’s and yellow for BUY’s and SELL’s.

The indicator has the following settings (with the defaults I think will perform best):

The indicator is hard-coded for TF=15M!

SlowMAPeriod = 54;
The slow Moving Average
FastMAPeriod = 14;
The fast Moving Average
PriceConstant = 4;
PRICE_CLOSE = 0
PRICE_OPEN = 1
PRICE_HIGH = 2
PRICE_LOW = 3
PRICE_MEDIAN = 4
PRICE_TYPICAL = 5
PRICE_WEIGTHED = 6
EmaMode = 3;
Simple moving average, = 0
Exponential moving average =1
Smoothed moving average = 2
Linear weighted moving average = 3
Switch = 1.0;
The Switch defines the area where SELL and BUY signals are valid. Above +Switch only BUYS and below –Switch only SELLS.

Please try this indicator and give me some feedback about the default settings.
Attached Files
File Type: mq4 PhoenixAdditonalSignal.mq4 (3.4 KB, 199 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #124 (permalink)  
Old 07-15-2006, 11:13 PM
Wackena's Avatar
Senior Member
 
Join Date: May 2006
Posts: 216
Wackena is on a distinguished road
Quote:
Originally Posted by Hendrick
I need some help. The BUY and SELL signals of Phoenix are generated by the following piece of code:

MA =iMA(NULL,MA_Timeframe,MA_Length,0,MODE_SMA,PRICE_ OPEN,0);
RVI=iRVI(NULL,0,10,MODE_MAIN,0)-iRVI(NULL,0,10,MODE_MAIN,1);

.
Hendrick, I still seem to follow you on these boards.

Firebird v63g had a trend code in it, but wasn't used. I use it in a modiifed Firebird and it seems to work in stopping trades during trends.

extern int DVLimit = 10; // included by Renato

int TrendUp=0, Trenddown=0;
double iFXAnalyser(int FXA_Period, int mode, int shift)// Made local function by MrPip

if ( (iFXAnalyser(0,MODE_DIV,0)>DVLimit*Point && iFXAnalyser(0,MODE_SLOPE,0)>0 )) Trendup=1;
if ( (iFXAnalyser(0,MODE_DIV,0)<-DVLimit*Point && iFXAnalyser(0,MODE_SLOPE,0)<0 )) TrendDown=1;

Then pur "&& TrendUp !=1" following DealTime==1 in SELL trigger. And "&& TrendDown !=1" following DealTime==1 in BUY trigger.

Another method is to put a controlling factor for RV! to regulate trading activity.

extern double RVI_Factor =50; // 0-200 factor added to RVI value to regulate trading activity

Then in SELL and BUY triggers change RVI codes to "RVI<(0-(RVI_Factor*Point))" and "RVI>(0+(RVI_Factor*Point))" respectifully.

Another method is to put a second larger iMA envelope to tighten the active trading area to encourage trading during non-trending periods.

extern double PercentLimit = 0.15; // 2nd higher envelope (band) that stops trading.

int Safe2=0;
if ( myMA*(1+(PercentLimit/100))<=Bid || myMA*(1-(PercentLimit/100))>=Ask) Safe2=1;

Put "&& Safe2==1" in SELL and BUY triggers. You can attached a 2nd Firebird type Indicator set to PercentLimit to see active trading area.

I use one Firebird with all three filters and it averages ~50% less trades with ~90% win rate. The problem I have is the effect news has on the market. I've reported to this thread, that the last 4 Fridays had a big negative effect because of carry over open trades from Thursday. I am testing eliminating trading days and/or times to see if I can better manage the historic group loses.

Hendrick, this would be a further development of your trading time results chart and it would be a lot of work. But, I would like to have an EA that is 6/24 trading time programable and can survey its history, determine bad trading times & stop trading during these times, while maintaining a ghost trade history for these times. When historic ghost trades are again profitable, these times are re-established as good trading times. Wishful thinking, but I'm going to try to work on this or see if a coder can make this work. Right now, I use yor type of chart and try to do this manually.

Way too much typing. Well, this is what happens when you drink wine while on a thread. If all of this doesn't make sense, it's the wine's fault.

Wackena
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #125 (permalink)  
Old 07-16-2006, 12:45 AM
holyguy7's Avatar
Senior Member
 
Join Date: Feb 2006
Posts: 463
holyguy7 is on a distinguished road
Quote:
Originally Posted by Hendrick
I need some help. The BUY and SELL signals of Phoenix are generated by the following piece of code:

MA =iMA(NULL,MA_Timeframe,MA_Length,0,MODE_SMA,PRICE_ OPEN,0);
RVI=iRVI(NULL,0,10,MODE_MAIN,0)-iRVI(NULL,0,10,MODE_MAIN,1);
Someone over at the Firebird thread suggested the following change:

instead of yours:

RVI=iRVI(NULL,0,10,MODE_MAIN,0)-iRVI(NULL,0,10,MODE_MAIN,1);

They changed it to:

RVI=iMACD(NULL,0,24,52,9,PRICE_CLOSE,MODE_MAIN,0)-iMACD(NULL,0,24,52,9,PRICE_CLOSE,MODE_MAIN,1);

They claimed it gave less false signals. Does that help?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #126 (permalink)  
Old 07-16-2006, 08:42 PM
HerbertH's Avatar
Member
 
Join Date: May 2006
Posts: 88
HerbertH is on a distinguished road
Additional signal

Hi Hendrick,

when preparing to trade, I always look to a higher TF to see the trend forming.
Perhaps adding an additonal signal to Phoenix on the same 15 minutes TF is to limited?

Please have a look at the Multi-Time-Frame indicator XO.
You can have it set to any TF you like, but for Phoenix working on the M15 I
would have it set to H4 or maybe even D1.
Maybe it's most flexible to have it's TF setting in the inputs panel of the EA so it can be optimized along the way.

See attched picture with the indicator loaded twice; one for M15 and the other one for H4.

Regards,
Herbert

PS, I did change Firebird's iRVI to iMACD like Holyguy7 reminded today, but although it increased Firebird's speed in backtesting as a side-effect , I was under the impression that it did not remove the false signals.
Attached Images
File Type: gif mtf-xo.gif (19.4 KB, 263 views)
Attached Files
File Type: mq4 ZZ MTF XO A.mq4 (3.6 KB, 129 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #127 (permalink)  
Old 07-17-2006, 09:31 AM
Hendrick's Avatar
Senior Member
 
Join Date: Feb 2006
Posts: 501
Hendrick is on a distinguished road
Quote:
Originally Posted by holyguy7
Someone over at the Firebird thread suggested the following change:

instead of yours:

RVI=iRVI(NULL,0,10,MODE_MAIN,0)-iRVI(NULL,0,10,MODE_MAIN,1);

They changed it to:

RVI=iMACD(NULL,0,24,52,9,PRICE_CLOSE,MODE_MAIN,0)-iMACD(NULL,0,24,52,9,PRICE_CLOSE,MODE_MAIN,1);

They claimed it gave less false signals. Does that help?
Hey Holyguy,

For Phoenix version 2 I'm now using a SMA 120 and SMA 12 on a 15M chart. The main purpose is to prevent that Phoenix is placing trades against the trend. So far it seems to work OK.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #128 (permalink)  
Old 07-17-2006, 09:33 AM
Hendrick's Avatar
Senior Member
 
Join Date: Feb 2006
Posts: 501
Hendrick is on a distinguished road
Quote:
Originally Posted by HerbertH
Hi Hendrick,

when preparing to trade, I always look to a higher TF to see the trend forming.
Perhaps adding an additonal signal to Phoenix on the same 15 minutes TF is to limited?

Please have a look at the Multi-Time-Frame indicator XO.
You can have it set to any TF you like, but for Phoenix working on the M15 I
would have it set to H4 or maybe even D1.
Maybe it's most flexible to have it's TF setting in the inputs panel of the EA so it can be optimized along the way.

See attched picture with the indicator loaded twice; one for M15 and the other one for H4.

Regards,
Herbert

PS, I did change Firebird's iRVI to iMACD like Holyguy7 reminded today, but although it increased Firebird's speed in backtesting as a side-effect , I was under the impression that it did not remove the false signals.
Hey Herberth,

See my previous answer to Holyguy.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #129 (permalink)  
Old 07-17-2006, 02:39 PM
Hendrick's Avatar
Senior Member
 
Join Date: Feb 2006
Posts: 501
Hendrick is on a distinguished road
Phoenix v2

Phoenix version 2.

Changes:
removed divergence (I think its of no use)

removed Surf-orders (performance was not good)

replaced RVI by this piece of code:

AdMA=(iMA(NULL,PERIOD_M15,120,0,0,3,1) - iMA(NULL,PERIOD_M15,12,0,0,3,1));
if(Point==0.0001) {AdMA=AdMA*1000;}
if(Point==0.01) {AdMA=AdMA*10;}
if(AdMA > 1)
{
AdSELLSignal = true;
SortOrder = "SELLSignal";
}
if(AdMA < -1)
{
AdBUYSignal = true;
SortOrder = "BUYSignal";
}
if((AdMA > -1) && (AdMA < 1))
{
AdBUYSELLSignal = true;
SortOrder = "BUYSELLSignal";
}

The purpose of this code is to prevent that Phoenix is placing trades against the trend.

For testing:
Use the settings from the file. TF=15. All available pairs.
Attached Files
File Type: zip Phoenix_EA_v2_0.zip (3.0 KB, 271 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #130 (permalink)  
Old 07-17-2006, 03:13 PM
Junior Member
 
Join Date: May 2006
Posts: 24
Yauhen is on a distinguished road
Quote:
Originally Posted by Hendrick
Phoenix version 2.

Changes:
removed divergence (I think its of no use)

removed Surf-orders (performance was not good)

replaced RVI by this piece of code:

AdMA=(iMA(NULL,PERIOD_M15,120,0,0,3,1) - iMA(NULL,PERIOD_M15,12,0,0,3,1));
if(Point==0.0001) {AdMA=AdMA*1000;}
if(Point==0.01) {AdMA=AdMA*10;}
if(AdMA > 1)
{
AdSELLSignal = true;
SortOrder = "SELLSignal";
}
if(AdMA < -1)
{
AdBUYSignal = true;
SortOrder = "BUYSignal";
}
if((AdMA > -1) && (AdMA < 1))
{
AdBUYSELLSignal = true;
SortOrder = "BUYSELLSignal";
}

The purpose of this code is to prevent that Phoenix is placing trades against the trend.

For testing:
Use the settings from the file. TF=15. All available pairs.
Thanks, put on charts.
are u make any backtest?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Tags
Phoenix_EA

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/2842-phoenix-here.html
Posted By For Type Date
Буржуйский эксперт - Технический анализ Forex This thread Refback 08-01-2008 10:24 PM
Технический анализ Forex > Буржуйский эксперт This thread Refback 02-08-2008 12:54 PM
New Profit at Pivot Strategy..Anyone know how to encode to EA?..Please comment - Page 7 Post #213 Refback 09-17-2007 02:49 PM
FIREBIRD - ШµЩЃШ­Щ‡ 12 - Sarmaye Forums This thread Refback 07-09-2007 03:26 PM
Буржуйский эксперт - Технический анализ Forex This thread Refback 06-27-2007 09:49 PM

Similar Threads
Thread Thread Starter Forum Replies Last Post
Chimera - Trending EA - based on Phoenix. Pcontour Phoenix 58 10-18-2008 12:08 PM
Phoenix 2007 (new thread) Hendrick Phoenix 1326 03-27-2008 11:34 PM
Phoenix optimization Prankie Phoenix 173 10-17-2007 08:24 AM
Phoenix 6 Expert vs Simple daraknor Phoenix 79 04-11-2007 02:09 AM
Phoenix Setting File Converters Pcontour Phoenix 37 04-06-2007 10:02 PM


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



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