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
My first guess after seeing your code is your SL or TP is below broker's allowed StopLevel. Try to make your EA check it first by using MarketInfo(Symbol(),MODE_STOPLEVEL)
and I'm wondering, why you didn't directly use Stoploss and TakeProfit in OrderSend() function? That will reduce your line of code, isn't it?
Goodluck.
Hi Ahmad,
Thanks for the reply.
1)
The STOPLEVEL by DAX is as follow:
I don't understand what 0.0 means. But from my another MT4 broker the STOPLEVEL is 100 points.
According to the definition:
A zero value of MODE_STOPLEVEL means either absence of any restrictions on the minimal distance for Stop Loss/Take Profit or the fact that a trade server utilizes some external mechanisms for dynamic level control, which cannot be translated in the client terminal.
2)
>>why you didn't directly use Stoploss and TakeProfit in OrderSend() function?
I was told or read somewhere that by some brokers they will not support directly using the SL and TP in the SendOrder() and one has to modify them after an order is opened. I am sure if this is really true.
..
>>why you didn't directly use Stoploss and TakeProfit in OrderSend() function?
I was told or read somewhere that by some brokers they will not support directly using the SL and TP in the SendOrder() and one has to modify them after an order is opened. I am sure if this is really true.
It was true in the past, it's no more true for years now.