pnicolaides1:
print error message, and see whats goes wrong.
I need somebody to help me how can i put some pending ordrer at the same time. I want a put all the following orders at the same time.
I respect if somebody help me
- Check your return codes (OrderSend) and find out why. and find out why. Check your return codes What are Function return values ? How do I use them ? - MQL4 forum and Common Errors in MQL4 Programs and How to Avoid Them - MQL4 Articles
- OrderSend("GBPJPY",OP_SELLSTOP,mul*2.8,price-Zone,10, 0, 0,"My order");
- You place the stop where it needs to be - where the reason for the trade is no longer valid. E.g. trading a support bounce the stop goes below the support.
- Account Balance * percent/100 = RISK = OrderLots * (|OrderOpenPrice - OrderStopLoss| * DeltaPerLot + CommissionPerLot) (Note OOP-OSL includes the SPREAD, and DeltaPerLot is usually around $10/pip but it takes account of the exchange rates of the pair vs. your account currency.)
- Do NOT use TickValue by itself - DeltaPerLot
- You must normalize lots
properly and check against min and max.
- You must also check FreeMargin to avoid stop out
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I need somebody to help me how can i put some pending ordrer at the same time. I want a put all the following orders at the same time.
I put the first 2
OrderSend("GBPJPY",OP_BUY,mul*0.5,Ask,10, 0, 0,"My order");
OrderSend("GBPJPY",OP_SELLSTOP,mul*1.0 ,Ask-Zone,10, 0, 0,"My order");
but the rest I have to put each one manually.
OrderSend("GBPJPY",OP_BUYSTOP,mul*1.3 ,price,10, 0, 0,"My order");
OrderSend("GBPJPY",OP_SELLSTOP,mul*2.0,price-Zone,10, 0, 0,"My order");
OrderSend("GBPJPY",OP_BUYSTOP,mul*2.5 ,price,10, 0, 0,"My order");
OrderSend("GBPJPY",OP_SELLSTOP,mul*2.8,price-Zone,10, 0, 0,"My order");
OrderSend("GBPJPY",OP_BUYSTOP,mul*3.5 ,price,10, 0, 0,"My order");
OrderSend("GBPJPY",OP_SELLSTOP,mul*4.0,price-Zone,10, 0, 0,"My order");
I respect if somebody help me
Thanks
Pantelis