Hello Mr Phoenix, and the others. Thanks to everybody for the work.
I use for real Phoenix 4, and i have backtested it a lot. But i am not so enthusiastic.
One big problem for me is that you have differents results depend on when you start the EA. Why don't you let the EA open and buy more than 1 order ?
It will validate or not the signals you have and stabilize the EA.
i have changed the start fonction to enable the EA to open a buy or sell order each time a signal occurs, and i wait 15min between 2 orders.
void start()
{
if(Bars<100 || IsTradeAllowed()==false) return;
if((CurTime()-LastTradeTime)<900) return(0); // 15min
if(CalculateCurrentOrders(Symbol())<=1000) CheckForOpen();
CheckForClose();
}
the CalculateCurrentOrders fonction return (buys+sells);
LastTradeTime=CurTime(); // each time an ordersend() is called.
I will backtest it this week, but i wait for your comments.
<!-- / message -->
I use for real Phoenix 4, and i have backtested it a lot. But i am not so enthusiastic.
One big problem for me is that you have differents results depend on when you start the EA. Why don't you let the EA open and buy more than 1 order ?
It will validate or not the signals you have and stabilize the EA.
i have changed the start fonction to enable the EA to open a buy or sell order each time a signal occurs, and i wait 15min between 2 orders.
void start()
{
if(Bars<100 || IsTradeAllowed()==false) return;
if((CurTime()-LastTradeTime)<900) return(0); // 15min
if(CalculateCurrentOrders(Symbol())<=1000) CheckForOpen();
CheckForClose();
}
the CalculateCurrentOrders fonction return (buys+sells);
LastTradeTime=CurTime(); // each time an ordersend() is called.
I will backtest it this week, but i wait for your comments.
<!-- / message -->