Before any product is published in the Market, it must undergo compulsory preliminary checks, as a small error in the expert or indicator logic can cause losses on the trading account. That is why we have developed a series of basic checks to ensure the required quality level of the Market products. If any errors are identified by the Market...
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 ()
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!