Ordersend Error 4756

 

I've recently noticed an issue where now my EA is not able to execute any orders. Every time it tries to place an order it says that "unsupported filling mode" and then when looking closer into it, it will say give an error saying "Ordersend error 4756". 

I am not sure at all why this is happening, it has been working seamlessly for 3 months and I haven't changed a single thing or done anything different with my EA however not it's not able to place any trades and always gives this error. It can't be an issue with lot sizes, stop loss, take profits, etc because it was working perfectly before and I haven't changed a single setting, so something is wrong and I have no clue how to fix this. 

The interesting thing is that I can place manual trades, do instant executions or pending orders whenever I do it manually, but this error 4756 message and "unsupported filling mode" message comes only when the EA trades. 

Can you please help to understand why this is happening. My broker/server is just the Metaquotes Demo. 

Attaching pics below of everything below 

 
MustafaNamazi1:

That error 4756 means your EA is using a filling mode that’s no longer accepted for that symbol on the MetaQuotes-Demo server.

MetaQuotes is not a broker, just the platform provider, and sometimes they update symbol settings in their demo environment.

If the EA is yours, you can fix it by detecting the correct filling mode using SymbolInfoInteger(_Symbol, SYMBOL_FILLING_MODE).

If it’s not your EA, you’ll need to ask the author to update it to handle filling modes automatically, or simply switch to a different broker where it works.

 
Miguel Angel Vico Alba #:

That error 4756 means your EA is using a filling mode that’s no longer accepted for that symbol on the MetaQuotes-Demo server.

MetaQuotes is not a broker, just the platform provider, and sometimes they update symbol settings in their demo environment.

If the EA is yours, you can fix it by detecting the correct filling mode using SymbolInfoInteger(_Symbol, SYMBOL_FILLING_MODE).

If it’s not your EA, you’ll need to ask the author to update it to handle filling modes automatically, or simply switch to a different broker where it works.

Cheers Miguel. 

How do I find out and know what to update the symbol settings to. It seems that they maybe hav updated the symbol settings so how do i know what the new symbol would be if that makes sense. 

 
MustafaNamazi1 #:

Cheers Miguel. 

How do I find out and know what to update the symbol settings to. It seems that they maybe hav updated the symbol settings so how do i know what the new symbol would be if that makes sense. 

search the forum. there are snippets of code by users that include written functions that ask the server what filling to use.