View Single Post
  #9 (permalink)  
Old 06-07-2006, 12:23 PM
elihayun's Avatar
elihayun elihayun is offline
Senior Member
 
Join Date: Jan 2006
Posts: 350
elihayun is on a distinguished road
Quote:
Originally Posted by BluePearl
How does one delete arrows on the chart with MT 4?

I have tried ObjectDeleteAll(0,0) and that deletes the vertical lines but not the buy and sell arrows.
Another way do not see it on the chart, but still see it when testing

color SellColor = Red, BuyColor = Blue, SlColor = Yellow;
if (!IsTesting())
{
SellColor = CLR_NONE; BuyColor = CLR_NONE; SlColor = CLR_NONE;
}
if (Buy){
if(StopLoss==0){SL=0;}else{SL=Ask-StopLoss*Point; if (FractalLow>0) SL = slBuy;}
if(TakeProfit==0){TP=0;}else{TP=Ask+TakeProfit*Poi nt;}
Print("About to open buy order. S/L ",SL, " Fractal = " , FractalLow);
OrderSend(Symbol(),OP_BUY,lots,Ask,1,SL,TP,OrderCm t,IDT,0,BuyColor);
}
if (Sell){
if(StopLoss==0){SL=0;}else{SL=Bid+StopLoss*Point;i f (FractalHigh>0) SL = slSell;}
if(TakeProfit==0){TP=0;}else{TP=Bid-TakeProfit*Point;}
Print("About to open sell order. S/L ",SL, " Fractal = " , FractalHigh);
OrderSend(Symbol(),OP_SELL,lots,Bid,1,SL,TP,OrderC mt,IDT,0,SellColor);
}
Reply With Quote