View Single Post
  #2 (permalink)  
Old 05-05-2008, 07:34 AM
Enforcer Enforcer is offline
Senior Member
 
Join Date: Dec 2007
Posts: 263
Enforcer is on a distinguished road
add this

PHP Code:
extern int MaxOrders 1// ěŕęńčěŕльноĺ ęолčчĺńňво одновđĺěĺно оňęđűňűő оđдĺđов
extern int Magic 123456
and change this

PHP Code:
if(ord==OP_BUY)
   {
      
TP=Bid+TakeProfit*Point; if(TakeProfit==0TP=0;
      
SL=Ask-StopLoss*Point;   if(StopLoss==0SL=0;
      
ticket=OrderSend(Symbol(),OP_BUY,Lot,Ask,3,SL,TP,"Ďоęуďŕĺě",Magic,0,White);
   }
   if(
ord==OP_SELL)
   {
      
TP=Ask-TakeProfit*Point; if(TakeProfit==0TP=0;
      
SL=Bid+StopLoss*Point;   if(StopLoss==0SL=0;
      
ticket=OrderSend(Symbol(),OP_SELL,Lot,Bid,3,SL,TP,"Ďđодŕĺě",Magic,0,Yellow);
   } 
Reply With Quote