Download MetaTrader 5

Issue Displaying Arrows in Chart

To add comments, please log in or register
Do you have questions on how to turn your idea into reality? Ask them on the Forum!
narik11
25
narik11 2014.08.05 21:13 

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 

qjol
3243
qjol 2014.08.05 23:11  

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

example: (guidelines)

if (OrderSend(...) > -1)
   {
   for(...)
      {
      if(ObjectFind(...))
      ObjectDelete(...);
      }
   }
Alain Verleyen
Moderator
30721
Alain Verleyen 2014.08.06 12:30  
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.

narik11
25
narik11 2014.08.06 15:12  
qjol:

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

example: (guidelines)

 


Thanks qjol.. 

To add comments, please log in or register