Download MetaTrader 5
To add comments, please log in or register
Use searching on MQL5.community. It is easy!
Akshay
48
Akshay 2015.08.28 14: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 

Keith Watford
Moderator
7990
Keith Watford 2015.08.28 23:17  
 OrderSend(Symbol(),OP_BUY,Lots,0,0,0,0,NULL,0,clrNONE);
Do you really expect to buy for zero?
Akshay
48
Akshay 2015.08.29 18: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.
/
To add comments, please log in or register