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
  #31 (permalink)  
Old 11-19-2006, 08:31 PM
daraknor's Avatar
Senior Member
 
Join Date: Oct 2006
Location: Portland, OR USA
Posts: 996
daraknor is on a distinguished road
I recommend using SciTE text editor. It works on windows, linux, etc. If you turn on "C" style syntax highlighting you get many features like syntax checking. It has code collapsing so you can shrink functions, tabs so you can compare multiple files, if you move cursor near a } it shows the matching {, very advanced find/replace options etc. It doesn't have the lookup tools that you get using MetaEditor of course, but you don't need those at all if you are just reading text. I tend to use SciTE when I develop Python and PHP, but I have specialized IDE for C/C++. The more familiar you are with MQL functions, the more reason to use SciTE over MetaEditor for development. For code review I always recommend SciTE. I am working on a code cleanup/optimization project now, and I think SciTE saved me several hours of checking curly braces, etc. Only feature I want out of Visual Studio that isn't present in SciTE is auto re-indent (find a blob of unintended code and auto indent every line).
http://www.scintilla.org for download (free software). If anyone else knows of a free lightweight text editor with auto-reindent and code collapsing, please let me know

For matching code with code to replace, I recommend find. For printing out line numbers on several pages of code, I have no idea except possibly in whatever program you use to print. I think SciTE can do that but I'm allergic to printing. Actually I need a new ink cartridge but that's more personal.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #32 (permalink)  
Old 11-20-2006, 07:37 AM
Senior Member
 
Join Date: Oct 2006
Posts: 183
Trader83 is on a distinguished road
Quote:
Short Version: Try MaxTrades=3 signal_count = 10 and variations of similar settings.
Long Version: I'm glad people are very interested in this. To perform a very similar test you can also set MaxTrades = 2 or more. That way if you are in a buy trade and you get a sell signal, you enter the second position. It is highly recommended to have signal_count set to ?? value so you don't enter the same signal each tick up to the maximum value. (see "Weekly build notes" in this thread) It may be better to use "confirming signals per bar" instead of "confirming signals per tick" when combined with MaxTrades. Please see the links in this thread, the code change to do this is moving one line of code 4 or 5 lines higher.
There can be no signal for entering second position after Phoenix opened first position. That is why I propose to enter second position not by signal, but by distance from the entering point of the first Phoenix position. This second enter should be made between Phoenix SL point and Phoenix Enter point. The closer to SL, the less will be Stoploss of second position, the greater will Takeprofit (distance from entering second position and Breakeven point of first Phoenix position). Simply by having good gain\profit ration we'll get profit.
The only thing is that what is the probability if the price goes -40pips, then returns to breakeven (and goes to Phoenix TP). It is very timeconsuming to test it manually, so it would be great if somenody could add to code of Phoenix several options:
- to enter second ''not Phoenix'' trade when prices goes to -X pips
- SL of that second trade is the same as Phoenix position one
- Take profit - variable (usually - entering price of Phoenix position)
- ability to decrease number of that second trades (as ptice can fluctuates a lot, and btw we can get 2 or 3 trades while holding Phoenix position)

On the whole, this idea is based not on signals, but on statistics, that Phoenix makes a lot of correct entries, which overcome bad entries. Plus, goog gain\loss ratio.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #33 (permalink)  
Old 11-20-2006, 08:20 AM
Senior Member
 
Join Date: Oct 2006
Posts: 183
Trader83 is on a distinguished road
CFD and Gold

Btw, what about using Phoenix to trade CFD and Gold? Any ideas?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #34 (permalink)  
Old 11-20-2006, 09:02 AM
ienaplinsky's Avatar
Member
 
Join Date: Nov 2006
Location: italy
Posts: 48
ienaplinsky is on a distinguished road
Eurusd

Hi guys

is it possible to include the parameters for eur/usd in the code?

"

if(PrefSettings == true)
{
if((Symbol() == "EURUSD") || (Symbol() == "EURUSDm"))

.........

Is there a problem because Phoenix doesn't work with eur usd?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #35 (permalink)  
Old 11-20-2006, 09:51 AM
Diam0nd's Avatar
Senior Member
 
Join Date: Oct 2006
Posts: 235
Diam0nd is on a distinguished road
Quote:
Originally Posted by daraknor
This is thread for development, code submissions, different EA builds and ideas for development. I request that the first 3 posts are held by people willing to actively work on this, and then people can post their ideas and suggestions.

The first 3 posts will be actively edited when new information is released so new people always read the most current official information on the first post.

I personally like the idea of 3 builds:
Stable - okay to run all modes with real money, verified profitable on at least 2 weeks of live testing and no reported killer bugs. An "ultra stable" version should also be released. Older stable versions will be released.
Testing - live testing performed on mostly stable builds to be candidates for "stable" build. Live testing verifies profitability and consistency.
weekly or nightly build - all code submissions combined together so people can backtest the latest features.

Current Stable: None. Maybe Phoenix 5.6.3 with modes 2/3 completely blocked from trading.
Current Testing: Phoenix 5.6.3 Mode 1/Mode 2
Weekly build: Phoenix 5.6.4

Weekly build notes: HerbertH Mode3 fix (SL updated on 2 and 3 when 1 TP), Dagnar@FF Consecutive Signals (Ignore Buy/Sell signals less than threshhold, setting of 5 had excellent results), and Daraknor "MaxTrades" option added for mode 1(untested). Details are post #10.
Guys, I suggest you add time and date of last modification as a comment line into the ea. Would be really helpful and well, the more precise the less confusion. Just my 2 cents.



Cheers,
Diam0nd




I LOVE
__________________
- MetaTrader v4.00 Build 220 (7 Nov 2008)
- MetaTrader MultiTerminal v4.00 Build 213 (20 Mar 2008)
- Always use the latest (^ABOVE^) MetaQuotes products, saves a lot of nerves. What's new.
"METAQUOTES FOR LIFE!"
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #36 (permalink)  
Old 11-20-2006, 06:38 PM
daraknor's Avatar
Senior Member
 
Join Date: Oct 2006
Location: Portland, OR USA
Posts: 996
daraknor is on a distinguished road
Quote:
Originally Posted by Denkhaus
OrderModify Errors 130.

The Errors occur in Mode3_MoveSL_Trade_3() function. I think the reason is that
SL is greater OrderOpenPrice() in a Long order and vicaversa in a Short order.


It seems that the EA code is not fully checked if API Errors happen.
I think we should introduce API call checking for each API call and evaluate
GetLastError() if possible. This would make Phoenix more reliable.
I agree, Error Handling is better than Error Reporting only.
The fix for this issue is to call RefreshRates(); then immediately set the SL at current price+ MarketInfo(Symbol(), MODE_STOPLEVEL) for sell orders and Current Price - MarketInfo(Symbol(), MODE_STOPLEVEL) for buy orders.

I'll code this for release end of week if nobody else does. If you do make the change, please post it as a code snippet here.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #37 (permalink)  
Old 11-20-2006, 06:48 PM
daraknor's Avatar
Senior Member
 
Join Date: Oct 2006
Location: Portland, OR USA
Posts: 996
daraknor is on a distinguished road
Quote:
Originally Posted by Trader83
There can be no signal for entering second position after Phoenix opened first position. That is why I propose to enter second position not by signal, but by distance from the entering point of the first Phoenix position. This second enter should be made between Phoenix SL point and Phoenix Enter point. The closer to SL, the less will be Stoploss of second position, the greater will Takeprofit (distance from entering second position and Breakeven point of first Phoenix position). Simply by having good gain\profit ration we'll get profit.
The only thing is that what is the probability if the price goes -40pips, then returns to breakeven (and goes to Phoenix TP). It is very timeconsuming to test it manually, so it would be great if somenody could add to code of Phoenix several options:
- to enter second ''not Phoenix'' trade when prices goes to -X pips
- SL of that second trade is the same as Phoenix position one
- Take profit - variable (usually - entering price of Phoenix position)
- ability to decrease number of that second trades (as ptice can fluctuates a lot, and btw we can get 2 or 3 trades while holding Phoenix position)

On the whole, this idea is based not on signals, but on statistics, that Phoenix makes a lot of correct entries, which overcome bad entries. Plus, goog gain\loss ratio.
Evaluating current trades in the ways you recommend sounds very valuable I added MaxTrades without any logic so we could see more entry signals. It would be better for debugging if we checked the entry signals, then executed trade if no trades were open. This would be a waste of execution time if we have open trades but can't use them. So I did a quick hack that didn't change the current runtime but might let us see additional entry signals.

If someone is using MaxTrades=5 and signal_count=50 we are waiting a minimum of 50 ticks between executing the last entry signal and starting a new one. If the same entry signal appears again, we are often (from my looking at multiple trade logs over the same period) closer to the peak waiting for the trade reversal. On several occasions the first trade hits SL and the second one wins. Another possibility is the first trade sitting open for days ranging in the 126 pip spread provided, but not closing. The second trade would hit the profit target and exit quickly. I have very advanced tactics for handling these situations in the TS code I have been writing, allowing first trade to exit at a small profit or a small loss and second trade to take the full TP. This TS code is a helper EA and I may eventually merge the code into Phoenix.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #38 (permalink)  
Old 11-20-2006, 06:50 PM
daraknor's Avatar
Senior Member
 
Join Date: Oct 2006
Location: Portland, OR USA
Posts: 996
daraknor is on a distinguished road
Quote:
Originally Posted by ienaplinsky
Hi guys
is it possible to include the parameters for eur/usd in the code?
if(PrefSettings == true)
{
if((Symbol() == "EURUSD") || (Symbol() == "EURUSDm"))

Is there a problem because Phoenix doesn't work with eur usd?
A team member is currently working EURUSD settings. They will be posted in the Settings Thread when they are complete.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #39 (permalink)  
Old 11-20-2006, 06:51 PM
daraknor's Avatar
Senior Member
 
Join Date: Oct 2006
Location: Portland, OR USA
Posts: 996
daraknor is on a distinguished road
Quote:
Originally Posted by Diam0nd
Guys, I suggest you add time and date of last modification as a comment line into the ea. Would be really helpful and well, the more precise the less confusion. Just my 2 cents.
Will do Diamond! I'm also going to title the release descriptions "Change Notes" so they are easier to find.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #40 (permalink)  
Old 11-20-2006, 07:03 PM
daraknor's Avatar
Senior Member
 
Join Date: Oct 2006
Location: Portland, OR USA
Posts: 996
daraknor is on a distinguished road
Quote:
Originally Posted by Trader83
Btw, what about using Phoenix to trade CFD and Gold? Any ideas?
As post 34 says, we are still working on settings for EURUSD. You are welcome to work on CFD/Gold settings and contribute them!
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 12:41 PM.