Forex



Go Back   Forex Trading > Trading systems > Phoenix
Forex Forum Register More recent Blogs Calendar Advertising Others Help






Register
Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.

From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.

Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
  • Elite Section
    Get access to private discussions, specialized support, indicators and trading systems reported every week.
  • Advanced Elite Section
    For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
See more

Reply
 
Thread Tools Display Modes
  #21 (permalink)  
Old 03-15-2007, 04:26 AM
Member
 
Join Date: Jan 2007
Posts: 55
wujun122 is on a distinguished road
Hi,Daraknor!Should I both test Phoenix6 ALPHA.mq4 (in the post #2) and Phoenix6 alpha easy.mq4 (in the post #13) or choose one?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #22 (permalink)  
Old 03-15-2007, 06:30 AM
daraknor's Avatar
Senior Member
 
Join Date: Oct 2006
Location: Portland, OR USA
Posts: 996
daraknor is on a distinguished road
Different brokers do things different ways. I'd like Phoenix 6 to support multiple brokers by release, but most of the issues I'm assuming we'll run into this point will be logical and environmental, not semantical. (e.g. The way I wrote the code sucks or the broker is weird but trades actually seem to work.)

I'll stick in another 1-3 indicators tonight for different trend analysis. I'm thinking Jurik's trend code and standard OSMA for trend detection/avoidance. I will dip into my puddle of indicators if I have time tonight. In terms of a framework, Phoenix Expert will allow Indicator1 AND Indicator2 OR Indicator3. It is capable of logical OR, AND, XOR, NOT as well as weighted signals (allowing for hybrid strategies in a single EA).

I read the code start to finish twice before releasing the Alpha. I rewrote some sections, checked the system with backtesting, fiddled with some signal optimization, etc. The majority of the work ahead is simply knocking off pieces of the TODO list, and then culling code for Phoenix Simple. Adding indicators is easy, especially without a true/false matrix written in code.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #23 (permalink)  
Old 03-15-2007, 06:47 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 wujun122
Hi,Daraknor!Should I both test Phoenix6 ALPHA.mq4 (in the post #2) and Phoenix6 alpha easy.mq4 (in the post #13) or choose one?
EASY was a modification I made adding another indicator because Autumnleaves was asking about adding indicators. A friend asked me where the problem in code was, I made some quick modifications and then shared them. Phoenix EASY is just a side project, and not really Phoenix.

autumnleaves, I didn't see any flaw in the code, but I don't know what settings you would use with the indicator are. The issue I saw with the settings I tried was that one of the values was always 0 and you needed a positive value less than 0 to start a trade. I would focus debugging on the actual settings, and try to get both values to positive numbers greater than zero. The easiest way to do this is to make it the only active signal in Phoenix 6 EASY, set the number of signals required to 1, and then look at the logs for results. They will be stored in MT4\tester\files\
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #24 (permalink)  
Old 03-15-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
It's not the holy grail, but I'm tired and this is about what I was looking for. When the moving average departs from the price on the chart, you can specify the difference in pips that is allowed before trades are blocked. I also reset the signalcount for that type of trade, so it won't just wait for the first peak to trade. If desired we can do this to the other filters, making them stronger. (If the filter is broken ConsecSignals would need to start over.)

So here is the Alpha 1 release with the extra filter and the bug fixes for mini accounts and period detection spotted earlier.

I'll try to add Jurik and/or ADX indicators for trading as well. Since ADX has counter trend properties and trend strength detection, it seems like a strong candidate.

If you guys can't spot any more bugs I'll start working on beta after adding maybe one more indicator. Could someone else add the time filter indicator into EntryFilter2 please?
Attached Files
File Type: mq4 Phoenix6 alpha1.mq4 (23.4 KB, 146 views)

Last edited by daraknor; 03-15-2007 at 09:38 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #25 (permalink)  
Old 03-15-2007, 01:30 PM
Junior Member
 
Join Date: Dec 2006
Posts: 12
JB_007 is on a distinguished road
Sorry for not checking this thread earlier.

Excellent work daraknor - a great idea re forking Phoenix into simple and expert versions. Also, a big thank you for keeping Phoenix alive.

I will start testing the posted versions from next week and post weekly results.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #26 (permalink)  
Old 03-15-2007, 07:06 PM
Senior Member
 
Join Date: Oct 2006
Location: Margarita Island - Venezuela
Posts: 324
bertbin is on a distinguished road
Testers

Ok guys all sleeping ?
Enter yesterday at 19h00 for now -2 after a big up and down and up...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #27 (permalink)  
Old 03-15-2007, 09:36 PM
Pcontour's Avatar
Senior Member
 
Join Date: Nov 2006
Location: Canada
Posts: 176
Pcontour is on a distinguished road
More great stuff Daraknor.

i want to thank you for all your great work.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #28 (permalink)  
Old 03-15-2007, 09:47 PM
Pcontour's Avatar
Senior Member
 
Join Date: Nov 2006
Location: Canada
Posts: 176
Pcontour is on a distinguished road
Quote:
Originally Posted by autumnleaves
Thanks for the comments Daraknor. The reason that I get sells and not buys with the PAC signal is that I reverse all the Buy/Sell signals in order to convert Phoenix to a trending system.

But I need clarification regarding your conclusion. Is there a bug in this code that limits it to either long or short transactions, or did I miss something somewhere? How can the problem be corrected?
Autumnleaves,

Have you checked the updated documentation. In it I added some explanations about the signals. I was under the understanding that only signals 2 and 3 were counter trending signal. I would appreciate it if you would have a look and let me know if I need to change something.

Signal 1 - Moving Average Envelopes

Envelopes they indicate the upper and lower limits of the price range. View a picture of Envelopes.
 If the price goes above the upper envelope that is a Buy Signal.
 If the price goes below the lower envelope that is a Sell Signal.

Signal 2 - Moving Average Comparison 1 - Counter Trend Signal

Two moving averages are calculated using the same time period P_SMAPeriod. The first is for the present timeframe, and the second is for a point in the past, which is a certain number of bars previous.

 If the older MA is greater than the present one that indicates a downtrend price trend. but Phoenix produces a Buy Signal
 If the older MA is greater than the present one that indicates a downtrend price trend. but Phoenix produces a Buy Signal

Signal 3 - OSMA - Counter Trend Signal

Uses OSMA: Calculates the Moving Average of Oscillator and returns its value. Sometimes called MACD Histogram in some systems.

 If the OSMA from 2 periods ago is less that the OSMA of 1 period ago this indicates a rising price trend, but Phoenix produces a Sell Signal.
 If the OSMA from 2 periods ago is less that the OSMA of 1 period ago this indicates a falling price trend, but Phoenix produces a Buy Signal.

Signal 4 - Moving Average Comparisons 2

Two moving averages are calculated, using P_Fast_Period and P_Slow_Period. Phoenix uses a 15-minute timeframe. The timeframes vary from 1 hour 15 minutes to 9 hours 15 minutes in the current pref settings. It subtracts the fast moving average (which should be for the shorter timeframe) from the value of the faster timeframe.

 If the faster moving average is above the slower one by at least P_DVBuySell but not by more than P_DVStayOut Buy.
 If the faster moving average is below the slower one by at least P_DVBuySell but not by more than P_DVStayOut Sell.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #29 (permalink)  
Old 03-15-2007, 10:16 PM
Pcontour's Avatar
Senior Member
 
Join Date: Nov 2006
Location: Canada
Posts: 176
Pcontour is on a distinguished road
Exclamation

Quote:
Originally Posted by autumnleaves
I would like to add extra signals from EASY (see Malone EASY document) to Phoenix. When I try to add the Price Action Channel, the result is exclusively sell transactions. Can you suggest why this might be happening? See the code below.

Perhaps these signals could be included in Phoenix 6.

bool BuySignal6=false, SellSignal6=false;

double HighPAC1 = iMA(NULL,0,P_PACPer,P_PACShift,MODE_SMMA,PRICE_HIG H,0);
double LowPAC1 = iMA(NULL,0,P_PACPer,P_PACShift,MODE_SMMA,PRICE_LOW ,0);
double haClose1 = (PRICE_OPEN + PRICE_HIGH + PRICE_LOW + PRICE_CLOSE)*(0.25);

if(U_UseSig6)
{
if(haClose1 > HighPAC1) {BuySignal6 = true;}
if(haClose1 < LowPAC1) {SellSignal6 = true;}
}
else
{
SellSignal6=true;
BuySignal6 =true;

double haClose1 = (PRICE_OPEN + PRICE_HIGH + PRICE_LOW + PRICE_CLOSE)*(0.25);

Constant Value Description
PRICE_CLOSE 0 Close price.
PRICE_OPEN 1 Open price.
PRICE_HIGH 2 High price.
PRICE_LOW 3 Low price.

What this line of code does is to add the numberss 0, 1, 2, and 3 together then divide by 4 (essentially) giving an answer of 1.5.

Your code would give a sell as long as the currency is below 1.5000

PRICE_OPEN for example is a constant equal to 1.

I will post now and amend it in a little while when I have fix for you.

This works and produces buys and sells. It uses the open high low and close of the latest period.

Quote:
double haClose1 = (Open[0] + High[0] + Low[0] + Close[0])*(0.25);

Last edited by Pcontour; 11-12-2007 at 09:49 PM. Reason: Fix an Error
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #30 (permalink)  
Old 03-16-2007, 12:21 AM
Pcontour's Avatar
Senior Member
 
Join Date: Nov 2006
Location: Canada
Posts: 176
Pcontour is on a distinguished road
Daraknor,

I have time for one suggestion today. New stuff in Red.

---- Variables Section

#property copyright "Copyright PhoenixFund under QPL License. www.bestforextools.com/pf/"

#define Buy +1
#define Sell -1
#define None 0


---- Signals Section

{
int Signal=None;

double HighEnvelope1 = iEnvelopes(NULL,0,P_EnvelopePeriod,MODE_SMA,0,PRIC E_CLOSE,P_Percent,MODE_UPPER,1);
double LowEnvelope1 = iEnvelopes(NULL,0,P_EnvelopePeriod,MODE_SMA,0,PRIC E_CLOSE,P_Percent,MODE_LOWER,1);
double CloseBar1 = iClose(NULL,0,1);

if(CloseBar1 > HighEnvelope1) {Signal=Sell;}
if(CloseBar1 < LowEnvelope1) {Signal=Buy;}

Debug("Signal 1 "+Signal+" HighEnv:"+HighEnvelope1+" LowEnv:"+LowEnvelope1+" Close:"+CloseBar1);

return (Signal);
}



I couldn't compile with Currenttime I used Time[0]

I'll send you my version where I updated this. It's a lot easier for me to understand. You should make sure that I didn't reverse the buy and the sell.

Last edited by Pcontour; 03-16-2007 at 12:27 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
Reply

Bookmarks

Tags
ffcall, forex


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Phoenix - Development+Suggestions - MQ4 in Post#1 daraknor Phoenix 435 10-18-2009 08:08 PM
Phoenix 2007 (new thread) Hendrick Phoenix 1329 08-30-2009 03:16 PM
Phoenix is here! Hendrick Phoenix 374 02-06-2008 04:26 PM
Phoenix optimization Prankie Phoenix 173 10-17-2007 08:24 AM
Expert Advisor Upgrader - Turn Simple Into Superb Scorpion Tools and utilities 7 04-13-2007 02:01 AM


All times are GMT. The time now is 06:04 AM.



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