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
  #111 (permalink)  
Old 12-03-2006, 01:42 PM
Wackena's Avatar
Senior Member
 
Join Date: May 2006
Posts: 216
Wackena is on a distinguished road
Quote:
Originally Posted by daraknor
I have been following this. Did you comment out the Refresh Quotes line for your live trading?
I will try commenting out RefreshRates line.

Not sure, but I think this may be the problem. If OrderModify is like OrderSend, then it must have the spread difference between current Ask/Bid and new Stoploss level.
Code:
if(OrderProfit()>0) FirstTrade=true;
If OrderProfit is very low, OrderOpenPrice may be too close to current Ask/Bid, then the spread may come into play.
Code:
OrderModify(OrderTicket(),OrderOpenPrice(),OrderOpenPrice(),OrderTakeProfit(),0,GreenYellow);
Again, not sure, just a thought.


Wackena
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #112 (permalink)  
Old 12-03-2006, 08:04 PM
yeremeyv's Avatar
Junior Member
 
Join Date: Nov 2006
Posts: 13
yeremeyv is on a distinguished road
Since the feature that computes a reliable trend/range status number is still under development, I would like to know if we can implement a parameter for Phoenix so it is possible to set and update that number manually, and Phoenix will trade accordingly

Last edited by yeremeyv; 12-03-2006 at 10:51 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #113 (permalink)  
Old 12-04-2006, 08:29 AM
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 Wackena
I will try commenting out RefreshRates line.

Not sure, but I think this may be the problem. If OrderModify is like OrderSend, then it must have the spread difference between current Ask/Bid and new Stoploss level.
Code:
if(OrderProfit()>0) FirstTrade=true;
If OrderProfit is very low, OrderOpenPrice may be too close to current Ask/Bid, then the spread may come into play.
Code:
OrderModify(OrderTicket(),OrderOpenPrice(),OrderOpenPrice(),OrderTakeProfit(),0,GreenYellow);
Again, not sure, just a thought.
The conditons for how this function is called make all of the difference here. Also the call OrderTicket(),OrderOpenPrice(),OrderOpenPrice(),.. . is a quick breakeven code. The calling logic shouldn't call it twice. Thanks for looking into this with me Wackena.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #114 (permalink)  
Old 12-06-2006, 06:50 AM
alamanjani's Avatar
Senior Member
 
Join Date: Nov 2006
Location: USA WY & EU Slo
Posts: 144
alamanjani is on a distinguished road
Quote:
Originally Posted by Pcontour

Quote:
Originally Posted by Pcontour
Background

I've been working in Computers for 25 years. I've developed programming standards myself. Your code is top notch.

Proposition

I would like to have a chance to apply a bunch of changes to your code to make it easier to understand for Forex beginners like myself and for people who are not coders. These would be user friendly changes. Nothing radical would make sense, as it's excellent already.

Benefits

1. It would be easier for you to find your own functions in your own program.

2. It would be easier for others to come up to speed and make some useful suggestions. I get confused at times and can't tell the difference between your functions and MT4 functions. People will have less questions.

3. Would give you a better base for future developments for both your code and other code that might be based on the same basic structure as your program.

4. The beauty of your code is how you could use the same phoenix strategy with different indicators. Your code getting to the point of plug and play, you can easily switch pieces.

5. Once you see what I do, you can improve on it in ways that I wouldn't think of.

6. If you don't like it, you don't have to use it.

What do I want

All I need is a window where you are not making changes, so I don't do work on the wrong version.

What I'm hoping for is a code base that anyone could work from to develop new Experts. We would benefit as a community if all the programs looked the same and we could look at and understand other peoples code and help each other out faster.

This is my way to contribute by doing what I'm good at.

I'm new to the forum and don't want to miss your reply so please mail me directly.


Quote:
Reply by Hendrick

Hi,

I like this very much:
"What I'm hoping for is a code base that anyone could work from to develop new Experts"

Have you visit the developers part of the Phoenix thread? At the moment I'm not working on Phoenix (I needed a break).


Reply by Pcontour

The code is attached with some additional information.

Tested to ensure the result were the same as before.

Tested Mode1, 2 and 3

Tested Mode 2 - close trade after x hours
Tested Mode 2 - close trade 1 when opening trade 2 (true and false)

I hope you like it.
This sounds (and looks) like great idea!

Mario
Attached Files
File Type: mq4 Phoenix_EA_v5_6_04.mq4 (37.6 KB, 77 views)
File Type: txt Changes_Summary.txt (8.0 KB, 93 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #115 (permalink)  
Old 12-06-2006, 02:37 PM
daraknor's Avatar
Senior Member
 
Join Date: Oct 2006
Location: Portland, OR USA
Posts: 996
daraknor is on a distinguished road
Changelog 5.6.7

EDIT: Don't use this version. See next post for 5.6.7a. Keeping filed here for archive.
The latest bugfix version of Phoenix has been released. Wackena's logs and insight were very helpful. (Debugging exit strategies and waiting for a trade to close at a profit can take a while sometimes.)

changelog 5.6.7

Entire function CheckCloseAfterHours() is now commented out by default. Was previously disabled in 5.6.6
Mode3 SL code has a series of changes:
Set OrderProfit check on mode1 trade to be at least "10". If a dynamic value would be better, please suggest. Submitted by Wackena.
Relocated RefreshRates calls
Added and flagged error reporting on 2nd trade
If New SL is equal or worse to old SL value, don't modify the trade. This extra safety feature added after an immediate refresh rates call.
Added safe history feature to Trade3 history check. If trailing stops are used a higher value for total searched history may be better.
Attached Files
File Type: mq4 Phoenix_EA_v5_6_07.mq4 (41.2 KB, 71 views)

Last edited by daraknor; 12-06-2006 at 04:12 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #116 (permalink)  
Old 12-06-2006, 04:12 PM
daraknor's Avatar
Senior Member
 
Join Date: Oct 2006
Location: Portland, OR USA
Posts: 996
daraknor is on a distinguished road
Use 5.6.7a instead of 5.6.7.

Removed adjustment to profit detection, made two segments more consistent. Same changelog applies.
Attached Files
File Type: mq4 Phoenix_EA_v5_6_07a.mq4 (41.3 KB, 138 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #117 (permalink)  
Old 12-06-2006, 05:18 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 alamanjani
This sounds (and looks) like great idea!

Mario
His version isn't really 5.6.4, it is 5.6.3 with renamed variables and functions. Hopefully we will collaborate on development but I really would like to avoid renaming the variables for settings file compatiblity. Since we don't have any settings files posted at all, it is less of a concern :/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #118 (permalink)  
Old 12-07-2006, 12:42 AM
yeremeyv's Avatar
Junior Member
 
Join Date: Nov 2006
Posts: 13
yeremeyv is on a distinguished road
I did some testing of 5.6.7a, and I was a bit impressed by the low results, especially if compared with earlier versions. Mode:3; Risk: 1.4; Currencies: USDJPY, EURUSD; Time periods: 2006.06.24->2006.12.06, 2005.06.24->2006.12.06; Broker: FXDD

Last edited by yeremeyv; 12-07-2006 at 01:39 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #119 (permalink)  
Old 12-07-2006, 01:10 AM
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 yeremeyv
I did some testing of 5.6.7a, and I was a bit impressed by the low results, especially if comprared with earlier versions. Risk: 1.4; Currencies: USDJPY, EURUSD; Time periods: 2006.06.24->2006.12.06, 2005.06.24->2006.12.06; Broker: FXDD
The trade logic didn't change except for mode3. Mode3 should have functional stoplosses instead of invalid stoplosses. Since this issue is a rare condition (wait for first trade to exit in profit) I haven't been able to do great troubleshooting on it. Mode 1 and 2 should trade exactly the same.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #120 (permalink)  
Old 12-07-2006, 05:19 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
His version isn't really 5.6.4, it is 5.6.3 with renamed variables and functions. Hopefully we will collaborate on development but I really would like to avoid renaming the variables for settings file compatibility. Since we don't have any settings files posted at all, it is less of a concern :/
The variable changes is the best part. Once I did it, I knew what was a user variable and what was a preferred setting instantly and I could change settings easily, and get things working faster. A major lesson in coding is that maintenance is what costs the most, so you spend more up front to get something more maintainable and then your save time and again after that. I didn't know that this was the thread with the latest code. Lets figure out when I could do the changes again to the latest version. Give everyone a break from doing new changes.
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:55 PM.