Issue related to Drag and drop

 
Hi,

I Have a script for Sell/Buy Limit and when i add a sell or buy limit order I note that i'm able to modify it with drag and drop. But when i try it with www.metaquotes.net I'm not able to modify. Is this issue from broker Or there is a solution for it?

thank you

#property show_inputs
//#property show_confirm

extern double Lots    = 1.0;
extern int Slippage   = 3;
extern int Stop_Loss  = 25;
extern int Take_Profit = 100;


// 30 Min    = 1800
// 1 Hours   = 3600
// 2 Hours   = 7200
// 3 Hours   = 10800
// 4 Hours   = 14400
// 1 Day     = 86400

   enum TimeToExp
     {
       M15 = 900,   //15 Minute
       M30 = 1800,  //30 Minute
       H1  = 3600,  //1 Hour
       H2  = 7200,  //2 Hours
       H3  = 10800, //3 Hours
       H4  = 14400, //4 Hours
       D1  = 86400, //1 Day
     };

   input TimeToExp  ExpirTime = H1;

//+------------------------------------------------------------------+
//| script "Open a new Buy Order"                                    |
//+------------------------------------------------------------------+
int start()
  {
   double Price = WindowPriceOnDropped();
   bool   result;
   int    /*cmd,total,error,*/slippage;
   
//----
   int NrOfDigits = MarketInfo(Symbol(),MODE_DIGITS);   // Nr. of decimals used by Symbol
   int PipAdjust;                                       // Pips multiplier for value adjustment
      if(NrOfDigits == 5 || NrOfDigits == 3)            // If decimals = 5 or 3
         PipAdjust = 10;                                // Multiply pips by 10
         else
      if(NrOfDigits == 4 || NrOfDigits == 2)            // If digits = 4 or 3 (normal)
         PipAdjust = 1;            
//----   
   slippage = Slippage * PipAdjust; 
   
   double stop_loss = Price - Stop_Loss * Point * PipAdjust;
   double take_profit = Price + Take_Profit * Point * PipAdjust; 
   
   if(Ask > Price)
   {
   result = OrderSend(Symbol(),OP_BUYLIMIT,Lots,Price,slippage,stop_loss,take_profit,"",0,TimeCurrent()+ExpirTime,CLR_NONE);
   }
   if(Ask < Price)
   {
   result = OrderSend(Symbol(),OP_BUYSTOP,Lots,Price,slippage,stop_loss,take_profit,"",0,TimeCurrent()+ExpirTime,CLR_NONE);
   }
//----
   return(0);
  }
//+------------------------------------------------------------------+
 
FxTrader_: But when i try it with www.metaquotes.net I'm not able to modify.
  1. Your problem has nothing to do with your code that creates the initial orders.
  2. Have you enabled Tools -> options -> trade -> One Click Trading?
 

Hi WHRoeder


Thank you

I found the solution under [ Tool > Option > Chart ] I uncheck Use Art' key to drag ...