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 (24) Thread Tools Display Modes
  #331 (permalink)  
Old 03-29-2007, 02:49 AM
Pcontour's Avatar
Senior Member
 
Join Date: Nov 2006
Location: Canada
Posts: 172
Pcontour is on a distinguished road
Quote:
Originally Posted by daraknor
5.7.3 sounds great, it would be nice to have a new maintenance release.

We can use the MinLot/MaxLot settings from broker if the value is zero, but it would also be nice to give people the option of a manual override. Something like:
if(U_MinLot==0) U_MinLot = MarketInfo(Symbol(),MODE_MINLOT);
if(U_MaxLot==0) U_MaxLot = MarketInfo(Symbol(),MODE_MAXLOT);
Good idea that should suit everyone.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #332 (permalink)  
Old 04-02-2007, 09:30 AM
daraknor's Avatar
Senior Member
 
Join Date: Oct 2006
Location: Portland, OR USA
Posts: 996
daraknor is on a distinguished road
Todo list repost

I will go through and verify this soon, I want to make sure each signal is accurate and correct the copy paste errors.

I have a todo list now, in no particular order. Anyone, feel free to join in.
Verify Signal interpretation from PContour
Tweak signal trade data in P6 Beta1
Create stealth trading system that is TS compatible
Combine "sliding" and "contracting" trailing stop systems.
Write P6 Simple and Advanced documentation
Wire transfer (attempt 3, now that the bank and fxdd agree on account name) money to PhoenixFund
Write up the guide on optimization I worked out with hhsmoney. (I can email edited logs if anyone is interested but I think I need to rewrite a lot of it)
Troubleshoot Chimera Signals.
Analyze signal 4 RSI declining signal in backtest
Optimize currencies (hhsmoney has USDJPY grinding at the moment)
Test long term validity of trend filter, test performance of Gann Style S&R lines. (Both are in P6 Adv Beta1 already)
Do calculations on time-to-reversal, either Elliot Wave style, or magnitude+timing (suspect 25-40% of reversals come at regular times or regular intervals)
Website for PhoenixFund needs updating
Create a single archive of all settings files created. Group them by Number for signal optimization, Group them by letter for changes to risk, trailing stops, modes, etc.

I was distracted by TF and life this weekend, I think we need to step up performance on P6 :/

Edit:
Confirm Grace/Force code
Confirm ParaSAR TS

Last edited by daraknor; 04-02-2007 at 10:15 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #333 (permalink)  
Old 04-09-2007, 06:42 PM
Wackena's Avatar
Senior Member
 
Join Date: May 2006
Posts: 216
Wackena is on a distinguished road
Avoid Ranging Market

I've tested this ATR-ratio indicator in other EAs and have found it to be fairly good at avoiding entry in a narrow ranging market. In my tests, it improved win/loss ratio. Accomplished by avoiding ranging market entry about 80%.

It takes ratio of two ATR scans, 1 short - 1 long, and then compares this value to a stationary threshold limit. If ATR difference is above threshold limit, then trades are allowed. If below, no trades.

Code:
extern int short_atr=7;
extern int long_atr=49;
extern double triglevel=0.87;

double atr1,art2;

atr1 = triglevel;
double dAtrShort = iATR(NULL, 0, short_atr, 0);
double dAtrLong = iATR(NULL, 0, long_atr, 0);
if(dAtrLong != 0) atr2 = dAtrShort / dAtrLong;
if atr2 > atr1 then order entry OK.

Wackena
Attached Images
File Type: gif usdjpy=m30-atr.gif (15.2 KB, 238 views)
Attached Files
File Type: mq4 ATR ratio.mq4 (2.3 KB, 73 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #334 (permalink)  
Old 04-10-2007, 10:20 AM
m6m6's Avatar
Senior Member
 
Join Date: Dec 2006
Location: Sherbrooke, Quebec, Canada
Posts: 145
m6m6 is on a distinguished road
Suggestion

I observed a lot of Phoenix signals and I think it would be interesting to place delayed orders with Buy Limit/Sell Limit instead of market orders. Most of the times, phoenix takes a position that goes up and down a few times before really enters into the profit zone. Let say it place an order 5 or X (outside settings) pips lower on a buy signal. Most of the time, it will take the trade anyway so we could have 5 pips more if TP and 5 pips less in case of a loosing trade. I would leave the TP and SL the same as if it would have opened at the signal time.

What do you guys thinks ?
Is it difficult to code ?
__________________
"A discovery is said to be an accident meeting a prepared mind." Albert Szent-Gyorgyi
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #335 (permalink)  
Old 04-11-2007, 02:06 AM
Pcontour's Avatar
Senior Member
 
Join Date: Nov 2006
Location: Canada
Posts: 172
Pcontour is on a distinguished road
Lightbulb

Quote:
Originally Posted by m6m6
I observed a lot of Phoenix signals and I think it would be interesting to place delayed orders with Buy Limit/Sell Limit instead of market orders. Most of the times, phoenix takes a position that goes up and down a few times before really enters into the profit zone. Let say it place an order 5 or X (outside settings) pips lower on a buy signal. Most of the time, it will take the trade anyway so we could have 5 pips more if TP and 5 pips less in case of a loosing trade. I would leave the TP and SL the same as if it would have opened at the signal time.

What do you guys thinks ?
Is it difficult to code ?
It sounds good. Lets see if it will really make money, providing I can code it. Not every idea is compatible with the existing code.
I added it to my list of things to do.
I think it might be easy, but I am not sure. I will email you some code hopefully based on P_5.7.3, and let you validate it. I put your idea fourth on my list.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #336 (permalink)  
Old 04-11-2007, 02:11 AM
m6m6's Avatar
Senior Member
 
Join Date: Dec 2006
Location: Sherbrooke, Quebec, Canada
Posts: 145
m6m6 is on a distinguished road
Quote:
Originally Posted by Pcontour
It sounds good. Lets see if it will really make money, providing I can code it. Not every idea is compatible with the existing code.
I added it to my list of things to do.
I think it might be easy, but I am not sure. I will email you some code hopefully based on P_5.7.3, and let you validate it. I put your idea fourth on my list.
Thank you very much PContour. I appreciate your help and will test it hard when available.
__________________
"A discovery is said to be an accident meeting a prepared mind." Albert Szent-Gyorgyi
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #337 (permalink)  
Old 04-12-2007, 12:24 PM
daraknor's Avatar
Senior Member
 
Join Date: Oct 2006
Location: Portland, OR USA
Posts: 996
daraknor is on a distinguished road
M6M6: It is very compatible with Phoenix 6, suggestions like that are 100x easier to implement in P6 than in P5.

Wackena: I'll implement it in P6 Beta 3 to be released this weekend. I'm still playing around with signals and optimization. I'm going to add a different RSI as well, so we can have a few signals to choose from and then set up different "trading methodologies" all in a single code base. (Only difference between Trend and Countertrend will be signal input)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #338 (permalink)  
Old 04-15-2007, 11:04 AM
daraknor's Avatar
Senior Member
 
Join Date: Oct 2006
Location: Portland, OR USA
Posts: 996
daraknor is on a distinguished road
I don't like moving averages in general, and here is something experts have to say, from "Encylopedia of Trading Strategies" page 110:
Quote:
THE ISSUE OF LAG
Besides their ability to decrease the amount of noise in a time series, moving averages are versatile, easy to understand, and readily calculated. However, as with any well-damped low-pass filter or real-time data smoothing procedure, reduced noise comes at a cost: lag. Although smoothed data may contain less noise and, therefore, be easier to analyze, there will be a delay, or “lag,” before events in the original time series appear in the smoothed series. Such delay can be a problem when a speedy response to events is essential, as is the case for traders.
Sometimes lag is not an issue, e.g., when a moving average of one time series
is predictive of another series. This occurs when the predictor series leads the series to be predicted enough to compensate for the lag engendered by the moving average. It is then possible to benefit from noise reduction without the cost of delay. Such a scenario occurs when analyzing solar phenomena and seasonal tendencies.
Also, lag may not be a serious problem in models that enter when prices cross a moving average line: In fact, the price must lead the moving average for such models to work. Lag is more problematic with models that use the slope or turning points in the average to make trading decisions. In such cases, lag means a delayed response, which, in turn, will probably lead to unprofitable trades. A variety of adaptive moving averages and other sophisticated smoothing techniques have been developed in an effort to minimize lag without giving up much noise reduction. One such technique is based on standard time series forecasting methods to improve moving averages. To eliminate lag, Mulloy (1994) implements a linear, recursive scheme involving multiple moving averages. When the rate of movement in the market is appropriate to the filter, lag is eliminated; however, the filters tend to “overshoot” (an example of insufficient damping) and deteriorate when market behavior deviates from filter design specifications.
Chande ( 1992) took a nonlinear approach, and developed a moving average that adapts to the market on the basis of volatility. Sometimes lag can be controlled or eliminated by combining several moving averages to create a band-pass filter. Band-pass filters can have effectively zero lag for signals with periodicities near the center of the pass-band; the smoothed signal can be coincident with the original, noisy signal when there is cyclic activity and when the frequency (or periodicity) of the cyclic activity is close to the frequency maximally passed by the filter.
While Phoenix6 appears to nail the cusp of a change in the USDCHF settings, it doesn't appear to pick the direction well. It could simply be that the settings need to have a reduced profit and use trailing stops.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #339 (permalink)  
Old 04-16-2007, 04:45 AM
Pcontour's Avatar
Senior Member
 
Join Date: Nov 2006
Location: Canada
Posts: 172
Pcontour is on a distinguished road
Planned Itmes for Phoenix 5.7.4

The themes for the next release. Improve default values, and provide error translation.
  • I'm planning to make up a piece of code to translate the meaning of the err numbers. This should help clear up misguided beliefs and instill some truth. It's also going to save everyone time so they don't need to go look them up themselves. Since the trade has been blown, there should be a moment or two available to spit out a error code translation.

The following has been completed.

1. Extra debug information to help with problems
2. Change default decrease factor to 901010
3. Change default minlot to 0 to kick in my new fix to prevent lot size problems.

No change to the settings file for 5.7.4.

No. I have no planned date.

I recommend that you change your settings file to the default values as mentioned in step 2 and 3 above in version 5.7.3. It would reduce the number of errors you should see.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #340 (permalink)  
Old 04-22-2007, 04:14 AM
daraknor's Avatar
Senior Member
 
Join Date: Oct 2006
Location: Portland, OR USA
Posts: 996
daraknor is on a distinguished road
Real Dollars At Risk for Lot Size

I have an idea for lot management, and I haven't seen it elsewhere. If anyone knows of code that does this, I'd love to see it and possibly reuse it. I'm working on this because it is too easy to destroy an account using common methods for lot sizing by simply choosing too many currency pairs.

The "risk" of a trade has nothing to do at all with the margin or balance, but we give it that name and appearance in the EA.

The "risk" of a trade is the amount of money on the table, not the amount of margin on the table. Let's say I'm willing to loose $500 on a single trade. How do I calculate lot sizes for that? How do I determine the SL level? If we have SL, we assign lots based on $/pip*SL*lot=risk. If (user) risk is $500 and SL is 50 pips and the $/pip = $10 then we know lot=1. Now we have a bit of an issue, because the lotsize determines the $/pip. If $/pip=1, then we would have 10 lots which then makes each pip worth $10. It is a circular situation, and what we really need is dollars per pip per lot or $/pip/lot=10 or we phrase the entire thing in the basic unit, the pip.

Instead of saying how many $ we risk, we can choose how many pips we risk, in full lot sizes. This also removes the need to calculate how much each pip would be worth. If I'm willing to risk 100 "full lot pips" on a trade (or $1000 on EURUSD), and the SL is 50, then that would mean I'm willing to risk 2 lots. That becomes $20 per pip. With a SL of 50 and $20 per pip, that is $1000. Since pips are usually about $10 per trade, this isn't that strange. However, some currencies like USDMXN or USDNOK get a little strange on the math. GBPJPY is also strange on the math, and the conversion would need to be known.

So we have two options. #1 Recalculate the $ per pip per full lot, and then convert the math over to determine lotsize. #2 Determine the lot size purely from SL and max pips lost. Unfortunately, expressing things in pips might become confusing and for all currency pairs where the second currency is not USD the pip math gets confusing for the user.

Now, there is another issue. Margin. We need the FreeMargin to stay open. Using the current system (FreeMargin/ multiplier_for_sanity* some_number_which_pretends_to_be_risk) we have free margin open, but a long term trade could easily destroy the account even with small lotsize. (1000 pips SL) If we are doing $ at risk per trade, then the FreeMargin needs to stay open, but we *know* mathematically that the account won't go bust. If we have a minimum margin value preserved in dollars, then we would avoid the bottom line. Unfortunately, this isn't compatible with the way brokers do the math. They calculate margin by %. Many brokers will start closing trades at around 50% or 75%. I have never heard of a trader on here recommending risking more than a small % of the overall account per trade. I would think that the FreeMargin% should always stay above 100% (In other words, fully leveraged but I would only use this math if we're calculating the maximum risk in real dollars per trade.)

Unfortunately there isn't a direct simple calculation we can do to predict the total margin potential. We could have a fixed ($$) or dynamic (% of All $$) system that is protected from loss in trade.

Ultimately the system for risk allocation should be safe for multiple systems to trade with.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Tags
phoenix, Phoenix_5_6_03.mq4, phoenix mq4, phoenix ea, mq4 profitable tested

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/4636-phoenix-development-suggestions-mq4-post-1-a.html
Posted By For Type Date
Forex Factory - Phoenix 2007 (new thread) This thread Refback 06-27-2008 06:56 PM
Phoenix 2007 (new thread) - Page 60 This thread Refback 06-22-2008 11:34 PM
Forex Factory - Phoenix 2007 (new thread) Post #1 Refback 06-22-2008 12:31 PM
Forex Factory - Phoenix 2007 (new thread) This thread Refback 04-27-2008 02:55 PM
Phoenix 2007 (new thread) - Page 65 Post #1 Refback 04-20-2008 04:13 PM
Phoenix 2007 (new thread) - Page 65 Post #1 Refback 04-01-2008 10:32 AM
Forex Factory - Phoenix 2007 (new thread) This thread Refback 02-11-2008 07:45 PM
Phoenix 2007 (new thread) - Page 65 Post #1 Refback 02-06-2008 08:35 PM
Forex Factory - Phoenix 2007 (new thread) This thread Refback 01-08-2008 11:37 PM
Phoenix - Page 2 - Fxopen forex forum - forex review - trading methods - education - analytics This thread Refback 12-26-2007 10:22 AM
Phoenix 2007 (new thread) - Page 65 Post #1 Refback 11-27-2007 07:54 PM
Phoenix 2007 (new thread) - Page 65 Post #1 Refback 11-05-2007 02:10 PM
Firebird EA - fixed version - - Page 109 This thread Refback 10-27-2007 01:21 PM
Phoenix 2007 (new thread) - Page 61 This thread Refback 10-14-2007 11:13 PM
Forex Factory - Phoenix 2007 (new thread) Post #1 Refback 09-30-2007 11:23 PM
Phoenix 2007 (new thread) - Page 65 Post #1 Refback 09-25-2007 08:22 PM
Phoenix 2007 (new thread) - Page 65 Post #1 Refback 08-16-2007 05:57 PM
Forex Factory - Phoenix 2007 (new thread) Post #1 Refback 08-08-2007 09:50 AM
Phoenix 2007 (new thread) - Page 63 This thread Refback 07-23-2007 10:41 AM
Mega Portal - Forex Pivots Brasil This thread Refback 07-16-2007 03:03 PM
Phoenix 2007 (new thread) - Page 60 This thread Refback 07-12-2007 12:01 AM
raffaelegalbiati's bookmarks tagged with This thread Refback 06-25-2007 11:28 AM
Форум трейдеров. Marketiva FAQ по русски. Бонусы. E-Gold. Заработок в интернете: Forex, автосерфинг, HYIP, PTC, CAP. This thread Refback 06-22-2007 07:18 PM
Phoenix 2007 (new thread) - Page 65 @ Forex Factory Post #1 Refback 06-21-2007 02:04 PM

Similar Threads
Thread Thread Starter Forum Replies Last Post
Phoenix 6 - Development, Download, Bugs - See Post#1 daraknor Phoenix 87 11-23-2008 11:51 AM
"Phoenix - FAQ, Stable, User support -Read Post #1" depictureboy Phoenix 187 10-29-2008 11:16 PM
Suggestions for a 4 hr. Trading System? marcf Suggestions for Trading Systems 2 05-23-2007 08:20 PM


All times are GMT. The time now is 01:05 PM.