View Single Post
  #13 (permalink)  
Old 03-14-2007, 09:39 PM
daraknor's Avatar
daraknor daraknor is offline
Senior Member
 
Join Date: Oct 2006
Location: Portland, OR USA
Posts: 996
daraknor is on a distinguished road
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.
I looked at the code, and it seemed fine. I stuck it into Phoenix 6 using the code below and I noticed that for my settings LowPAC1 was 0, I had only buy signals.
Code:
int EntrySignal4()
{
    int value=0;
    double HighPAC1 = iMA(NULL,0,P_PACPer,P_PACShift,MODE_SMMA,PRICE_HIGH,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(haClose1 > HighPAC1) value=1;
    if(haClose1 < LowPAC1) value=-1;
    Debug("Signal4 PAC High:"+HighPAC1+" LowPAC1:"+LowPAC1+" haClose1:"+haClose1);
    return(value);

}
I really like the Debug() system. I attached the code I wrote for debugging, I'd love to finish the EASY system in the EA system I provided. Many of the features are actually not designed around Phoenix, but to work with nearly any strategy in a framework of code. When this goes to BETA, you'll see most of those features disappear but this core is good for developing other EA.
Attached Files
File Type: mq4 Phoenix6 alpha EASY.mq4 (22.2 KB, 126 views)
Reply With Quote