I am using the same code with two brokers, one broker things are working fine,
but with other brokers, it places 2 or 3 orders and then this error comes up Order send error 2
This is the function i use for defining lots , Ordersend, can any one figure it out please
I would suggest that in the event of an error you print out all the variables in the order to ensure that they meet the symbol specification, for price and lots.
Most likely you are presenting an invalid price or lot size. Difficult to tell unless you print out the values.
regards
I would suggest that in the event of an error you print out all the variables in the order to ensure that they meet the symbol specification, for price and lots.
Most likely you are presenting an invalid price or lot size. Difficult to tell unless you print out the values.
regards

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I am using the same code with two brokers, one broker things are working fine,
but with other brokers, it places 2 or 3 orders and then this error comes up Order send error 2
This is the function i use for defining lots , Ordersend, can any one figure it out please