Issue Displaying Arrows in Chart

 

Hi All,

The  OrderDelete() &  OrderSend() functions displays arrows on the chart even when clrNone option is used.

Below are the parameters which i have been using:

 

OrderSend(Symbol(),OP_BUYSTOP,0.1,Price,Slippage,Price-(MyPoint*StopLoss),Price+(MyPoint*TakeProfit),NULL,0,0,clrNONE);

OrderDelete(OrderTicket(),clrNONE);

 

I have even tried NULL, CLR_NONE and even without this parameter, Still the arrows are displayed.

Any suggestions??

 

FYI: Client Version: 4 Build: 670 

 

i think the only way to deal with it is by deleting it

example: (guidelines)

if (OrderSend(...) > -1)
   {
   for(...)
      {
      if(ObjectFind(...))
      ObjectDelete(...);
      }
   }
 
narik11:

Hi All,

The  OrderDelete() &  OrderSend() functions displays arrows on the chart even when clrNone option is used.

Below are the parameters which i have been using:

 

OrderSend(Symbol(),OP_BUYSTOP,0.1,Price,Slippage,Price-(MyPoint*StopLoss),Price+(MyPoint*TakeProfit),NULL,0,0,clrNONE);

OrderDelete(OrderTicket(),clrNONE);

 

I have even tried NULL, CLR_NONE and even without this parameter, Still the arrows are displayed.

Any suggestions??

 

FYI: Client Version: 4 Build: 670 

Arrows aren't draw on a live chart if you are using clrNONE.

You are talking about the Strategy Tester I guess ? Indeed, the arrows are always drawn there. You can follow qjol's advice.

 
qjol:

i think the only way to deal with it is by deleting it

example: (guidelines)

 


Thanks qjol.. 

Reason: