| New signals service! | |
|
|||||||
| 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 |
|
![]() |
|
|
LinkBack (24) | Thread Tools | Display Modes |
|
||||
|
Quote:
__________________
|
|
|||
|
EA version6
Has anyone tried using version 6 of the EA that is present on Phoenix - Development+Suggestions - MQ4 in Post#1
I have downloaded it and it doesn't seem to trade at all! USDCHF M15 and all setting is as default but no trading ![]() Could someone respond and clarify this issue ![]() ![]() Do I need to do any thing to the settings? |
|
|||
|
Quote:
|
|
|||
|
Phoenix - bugs
Hello Alkhal4, Togu and all,
The Phoenix 6 Released doesn't work to you because originally extern variable "F_ATR" is set up on value 0.6 and it should be around 0.0001. But then when you run it you will find in a Journal a lot of "Ordermodify errors Nr.130". It is because there are bugs in functions "X1_ManageExit" and "X9_ModifySL". I have found two solutions not to display them : 1) Set up variable E_BE_SL=0 . But then you can not trade break even. 2) Replace these two functions "X1_ManageExit" and "X9_ModifySL" with my scripts in a source mq4 file. See below. If you want and if you are not able to do it alone, I can send you this EA without these bugs but I don't want to upload EA here because it is in violation of Hendrick's wish - Quote:
This problem must have also others and I please a man who cares about source code of Phoenix (it was Hendrick, now daraknor ? - I don't know I have red only a couple of messages ) for debugging and putting correct version in the first post. repared code of function "X1_ManageExit" : Code:
//********** Exit Strategies & Trailing Stops **********************************//
void X1_ManageExit(int myticket)
{ //Contains all of the exit strategies and trade management routines. Listed in priority.
minStop=MarketInfo(Symbol(),MODE_STOPLEVEL); //updated every tick in case of news SL movement
if(E_GraceHours !=0 ||E_ForceHours !=0)
X1_ForceClose_or_GraceModify(myticket);
if(E_RecrossMax!=0)
{
double price;
if (OrderType() == OP_BUY) price=Bid;
if (OrderType() == OP_SELL) price=Ask;
if(Bars>bcRecross)
{ //Bar hasn't been counted yet
if(OrderOpenPrice()>price-1 && OrderOpenPrice()<price+1)
{
recrosscount++;
bcRecross=Bars;
if (recrosscount>=E_RecrossMax)
if(!OrderClose(myticket,OrderLots(),price,AcceptSlip,Red))
L4_WriteError();
}
}
}
//TODO StealthExit
if(E_BE_SL>0)
{ // BreakEven SL @target
if(E_BE_SL<E_BE_Profit+minStop) E_BE_Profit=E_BE_SL-minStop; //keeps trade safe all of the time
if (OrderType() == OP_BUY && Bid-OrderOpenPrice()>=Point*E_BE_SL && OrderStopLoss()-Point*E_BE_Profit<OrderOpenPrice() && Bid-OrderOpenPrice()-E_BE_Profit*Point>=minStop*Point)
X9_ModifySL(OrderOpenPrice()+E_BE_Profit*Point,myticket);
if (OrderType() == OP_SELL && OrderOpenPrice()-Ask>=Point*E_BE_SL+MarketInfo(Symbol(),MODE_SPREAD)*Point && OrderStopLoss()+Point*E_BE_Profit+MarketInfo(Symbol(),MODE_SPREAD)*Point>OrderOpenPrice() && OrderOpenPrice()+E_BE_Profit*Point+MarketInfo(Symbol(),MODE_SPREAD)*Point-Ask>=minStop*Point)
X9_ModifySL(OrderOpenPrice()-E_BE_Profit*Point-MarketInfo(Symbol(),MODE_SPREAD)*Point,myticket);
}
Code:
bool X9_ModifySL(double sl, int ticket)
{
double MoveTP;
if(E_MoveTPonTS !=0)
{
if (OrderType() == OP_SELL)
{
MoveTP=E_MoveTPonTS*(-1)*Point;
if(Ask-OrderTakeProfit()+MoveTP<minStop*Point && sl-Ask>=minStop*Point)
MoveTP=minStop*Point*(-1)+Ask-OrderTakeProfit(); //Set the new distance to minimum safe point, -OTP() cancels OTP() // repared error 4051
}
else
{
MoveTP=E_MoveTPonTS*Point;
if(OrderTakeProfit()-Bid+MoveTP<minStop*Point && Bid-sl>=minStop*Point)
MoveTP=minStop*Point-Bid+OrderTakeProfit(); //Set the new distance to minimum safe point, -OTP() cancels OTP()
}
}
if(U_WriteDebug) L3_WriteDebug("MODIFY Ticket:"+ticket+" OpenPrice:"+OrderOpenPrice()+" SL:"+sl+" TP:"+(OrderTakeProfit()+MoveTP*Point));
if(NormalizeDouble(sl/Point,0)==NormalizeDouble(OrderStopLoss()/Point,0)) return(true);
if(OrderModify ( ticket, OrderOpenPrice(), sl,
OrderTakeProfit()+MoveTP,
0, Red) ==(-1))
return(false);
else return(true);
}
Last edited by globus2008; 02-14-2008 at 09:21 AM. |
|
|||
|
Hello globus2008,
Could you send me a private message, with your "Phoenix 6 Released" running version ? Thanks, yoyo Quote:
Last edited by yoyo; 02-21-2008 at 07:17 PM. |
|
|||
|
Hello Glogus2008,
Could you send me a "private messade" with your "Phoenix 6 Released" running version ? Thanks, yoyo Quote:
|
|
|||
|
Installation IBFX MT4
Downloaded Phoenix 5.6.3, installed in experts last night, compiled, placed in price chart:
in upper right. No trades placed overnight, this AM there was an x. I tried to compile again, blue icon in experts...removed it from price window, double click, and smiley briefly appears, then switches to x. What is going on? Thanks for help. |
|
|||
|
Hello
Thanks for your response, I tried to do what you suggested below, I replaced the codes but when compiling I get an error - probably because I don't know how to do step 1 - could you send the correct code. Thanks Quote:
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
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 05:56 PM | |
| Phoenix 2007 (new thread) - Page 60 | This thread | Refback | 06-22-2008 10:34 PM | |
| Forex Factory - Phoenix 2007 (new thread) | Post #1 | Refback | 06-22-2008 11:31 AM | |
| Forex Factory - Phoenix 2007 (new thread) | This thread | Refback | 04-27-2008 01:55 PM | |
| Phoenix 2007 (new thread) - Page 65 | Post #1 | Refback | 04-20-2008 03:13 PM | |
| Phoenix 2007 (new thread) - Page 65 | Post #1 | Refback | 04-01-2008 09:32 AM | |
| Forex Factory - Phoenix 2007 (new thread) | This thread | Refback | 02-11-2008 06:45 PM | |
| Phoenix 2007 (new thread) - Page 65 | Post #1 | Refback | 02-06-2008 07:35 PM | |
| Forex Factory - Phoenix 2007 (new thread) | This thread | Refback | 01-08-2008 10:37 PM | |
| Phoenix - Page 2 - Fxopen forex forum - forex review - trading methods - education - analytics | This thread | Refback | 12-26-2007 09:22 AM | |
| Phoenix 2007 (new thread) - Page 65 | Post #1 | Refback | 11-27-2007 06:54 PM | |
| Phoenix 2007 (new thread) - Page 65 | Post #1 | Refback | 11-05-2007 01:10 PM | |
| Firebird EA - fixed version - - Page 109 | This thread | Refback | 10-27-2007 12:21 PM | |
| Phoenix 2007 (new thread) - Page 61 | This thread | Refback | 10-14-2007 10:13 PM | |
| Forex Factory - Phoenix 2007 (new thread) | Post #1 | Refback | 09-30-2007 10:23 PM | |
| Phoenix 2007 (new thread) - Page 65 | Post #1 | Refback | 09-25-2007 07:22 PM | |
| Phoenix 2007 (new thread) - Page 65 | Post #1 | Refback | 08-16-2007 04:57 PM | |