OrderSend not working

Back to topics list To post a new topic, please log in or register
avatar
12
akshay12489 2015.08.28 16:44
 

 Hi I have a code with Buy & Sell Price both as a function of Bid

if (Bid <= SellPrice1)   level=true; 
   
 if (level = true && Bid >= BuyPrice1 && total<2)            // Stoploss order 1
 OrderSend(Symbol(),OP_BUY,Lots,0,0,0,0,NULL,0,clrNONE);


 Since I'm designing it as pyramiding strategy I can't use Take Profit level

Now this code shows no error in compiling but it never send an order what are the possible way I could make this work. Any help would be greatly appreciated 

avatar
12983
avatar
Moderator
3404
GumRai 2015.08.29 01:17 #
 
 OrderSend(Symbol(),OP_BUY,Lots,0,0,0,0,NULL,0,clrNONE);
Do you really expect to buy for zero?
avatar
12
akshay12489 2015.08.29 20:21 #
 
GumRai:
Do you really expect to buy for zero?
Err. !! Thanks for pointing this. I will check it on  Monday as the market re opens.
Back to topics list  

To add comments, please log in or register