Thread: ASCTrend system
View Single Post
  #357 (permalink)  
Old 06-28-2006, 10:32 AM
newdigital newdigital is online now
Administrator
 
Join Date: Sep 2005
Posts: 15,445
newdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud of
Quote:
Originally Posted by Pedzr888
Here's v7.1 with the option for big NonLagMA exit on "yellow" - just set
EnableNonLagMAExit = true. I have not tried it extensively, but it looks like it's working.

As for multiple open orders - that will be on v8.0 - it's a quite bit more complicated.

Let me know if you find any bugs.

-Pedz
For multiple open orders Igorad used the following (in some other EAs).

In the beginning of the code:

Code:
extern int MaxOrders = 3;
And in somewhere:

Code:
//Buy
   if (Order == SIGNAL_BUY && ((EachTickMode && !TickCheck) || (!EachTickMode && (Bars != BarCount)))) {
      if(ScanTrades() < MaxOrders) {
And
Code:
if(ScanTrades() < MaxOrders)
for sell ...
And in the end of the code:

Code:
int ScanTrades()
{   
   int total = OrdersTotal();
   int numords = 0;
      
   for(int cnt=0; cnt<total; cnt++) 
   {        
   OrderSelect(cnt, SELECT_BY_POS);            
   if(OrderSymbol() == Symbol() && OrderType()<=OP_SELLSTOP && OrderMagicNumber() == MagicNumber) 
   numords++;
   }
   return(numords);
}

So you may use it.
Reply With Quote