View Single Post
  #25 (permalink)  
Old 11-19-2006, 04:15 PM
Denkhaus's Avatar
Denkhaus Denkhaus is offline
Junior Member
 
Join Date: Oct 2005
Posts: 6
Denkhaus is on a distinguished road
TrailingStopChecking

another bugy code seems to be:


PHP Code:
 if(PhoenixMode==1)//Phoenix Classic
      
{
      
CheckOpenTrade();     
      if(
CloseAfterHours != 0)  CheckCloseAfterHours();
      if(!
StopLoss==0)              CheckTrailingStop();
      if(
BreakEvenAfterPips != 0)        CheckBreakEven();
      } 
so even if TrailingStop is 0 CheckTrailingStop() will be executed
and if(OrderType() == OP_SELL) the Order can be modified without serious reason because (Point * TrailingStop) == 0.

maybe its better to change to:

PHP Code:
 if(PhoenixMode==1)//Phoenix Classic
      
{
      
CheckOpenTrade();     
      if(
CloseAfterHours != 0)  CheckCloseAfterHours();
      if(
TrailingStop !=0)              CheckTrailingStop();
      if(
BreakEvenAfterPips != 0)        CheckBreakEven();
      } 

regards
Reply With Quote