Topic: Fix for MT5 Order Filling Type

Hello Traders,

This is my next attempt to make the MT5 execution working for all brokers.

If you have problems with MT5, please put the attached file at:

C:\Program Files\Forex Strategy Builder Pro\User Files\MT4 Files\MQL\Forexsb.com


Export your expert again and check it in the tester.

Please report any errors.

Post's attachments

ActionTrade5.mqh 52.02 kb, 15 downloads since 2018-03-21 

You don't have the permssions to download the attachments of this post.

2 (edited by GD 2018-03-22 09:17:56)

Re: Fix for MT5 Order Filling Type

Does it mean for hedge and non hedge?
Can Somebody answer?

Re: Fix for MT5 Order Filling Type

FSB Pro still doesn't support hedging accounts.
The fix above addresses a bug in MT for giving correct order filling type for some brokers.

More specifically, the following function doesn't return the correct type:

SymbolInfoInteger(_Symbol,SYMBOL_FILLING_MODE);

 

The code above detects wrong SYMBOL_FILLING_MODE and changes it until finds the correct one.