OrderSend question. - page 2

 
  datetime closeMinus10secs = nextBar - (60*1200); 
   
   Print ("Current Time: ", TimeCurrent());
   Print ("closeMinus10secs: ", closeMinus10secs); 
That is not Close minus 10 seconds, that is the Close minus 1200 minutes (20 hours.)
 
William Roeder:
That is not Close minus 10 seconds, that is the Close minus 1200 minutes (20 hours.)
Yes. I understand that. My concern are the other issues described. 
 

what is the error this code

// Open a buy order with 0.10 lot size
int ticket = OrderSend(Symbol(), OP_BUY, 0.10, Ask, 0, Bid - 50 * Point, Bid + 250 * Point, "Buy Order", 0, 0, Green);
 
VIVID KANNAMPUZHA #: what is the error this code
  1. Don't hijack other threads for your off-topic post. Next time, make your own, new, thread.

  2. Do you really expect an answer? There are no mind readers here and our crystal balls are cracked.
         How To Ask Questions The Smart Way. (2004)
              Be precise and informative about your problem

    Where do you check ticket for an error and print out the error code?

  3. We have no idea what min lot or lot step is. If 0.10 valid for the symbol?

  4. Stops must be normalized to tick size. Code fails on non-FX symbols.

Reason: