I keep getting the error "invalid volume", the account balance is 10 000 and the lot size is 0.07.
This is my code, I think it might not be the volume tbh.
What is the minimum volume allowed by your broker for this symbol ?
I keep getting the error "invalid volume", the account balance is 10 000 and the lot size is 0.07.
This is my code, I think it might not be the volume tbh.
I had a similar problem with my EA (got the same error). The traded volume was lower than the minimum allowed trading size of my broker or the increment/step size was to small.
(Check the minimum volume size of your broker, maybe the minimum trading size or increment/step size is larger than your 0.07) "already done"
Is the variable "Lot" of the double type?
I had a similar problem with my EA (got the same error). The traded volume was lower than the minimum allowed trading size of my broker or the increment/step size was to small.
Check the minimum volume size of your broker, maybe the minimum trading size or increment/step size is larger than your 0.07.
Is the variable "Lot" of the double type?
It's of the double type, I haven't set an increment.
I tried to use 1 as the order Lot value earlier to see if it would work, and the error persisted, I'll try and use 10 now.
Use
ZeroMemory(StageOneBuy);
ZeroMemory(StageOneSell);
Before you fill in the request and send the order.
Use
ZeroMemory(StageOneBuy);
ZeroMemory(StageOneSell);
Before you fill in the request and send the order.
It's already done with {0}. Exactly the same.
Initially both were 0 but I changed the sell one to 1 to see if that would solve the problem, which is why it says one in the code I posted.
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
- 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 keep getting the error "invalid volume", the account balance is 10 000 and the lot size is 0.07.
This is my code, I think it might not be the volume tbh.