Akash Gedam:
Please insert the code correctly: when editing a message, press the button I am getting error as invalid lots amount for OrderSend Function. When I check the value of values of entryPrice, stopLossPrice , I gets it as 0. I don't know where am I going wrong. My code is as follows:
***
![Code Code](https://c.mql5.com/3/357/Code.png)
Akash Gedam: When I check the value of values of entryPrice, stopLossPrice , I gets it as 0.
-
Please edit your (original) post and use the CODE button (Alt-S)! (For large amounts of code, attach it.)
General rules and best pratices of the Forum. - General - MQL5 programming forum 2019.05.06
Messages Editor -
Obviously zero is an invalid price.
Use the debugger or print out your variables, including _LastError and prices and find out why. Do you really expect us to debug your code for you?
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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 am getting error as invalid lots amount for OrderSend Function. When I check the value of values of entryPrice, stopLossPrice , I gets it as 0. I don't know where am I going wrong. My code is as follows:
***