Need help fixing my points/pips/digits problem in my mql4 EA. Any help would be really appreciated. - page 2

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
Also => usually Stop Loss for BUY order is set from the Bid price and for SELL order from the Ask price respectively
Check => MQL4 Reference => OrderModify () + OrderSend ()
In any case it is useful to use GetLastError ()
You need to check distance from current price that need to be grater than STOP_LEVEL allowed by your broker.
I suggest to use bigger values for make a try. Use 100 and 100 for SL and TP. That are 10 pips (if you don't multiply *10) or 100 pips in the other case.
Yes, I figured it out. I already solved this problem. Thank you! Do you want a copy of my EA?
Also => usually Stop Loss for BUY order is set from the Bid price and for SELL order from the Ask price respectively
Check => MQL4 Reference => OrderModify () + OrderSend ()
In any case it is useful to use GetLastError ()
Yeah, I read this article after I solved this problem. Thank you!
Yes, I figured it out. I already solved this problem. Thank you! Do you want a copy of my EA?
If you have solved it, then please post what you did to solve it.
It may help others.
If you have solved it, then please post what you did to solve it.
It may help others.
It was like this:
Then I changed it into:
Also, I write this in Init():
And it worked like charm!
Also, I write this in Init():
And it worked like charm!
That won't work unless you remove
from OnTick()
This was pointed out to you in the first 2 replies
That won't work unless you remove
from OnTick()
This was pointed out to you in the first 2 replies
Already removed it. Sorry I was forgot to mentioned it.
You can simply use _Digits and _Points without using other variables.
Okay. thank you for your help!