Filling type: RETURN orders
-
Hi @fxDreema .
Some people trading on the Brazilian broker Modalmais are having some issues with fxDreema EAs and order filling type, because the broker accepts RETURN orders only. All orders from fxDreema EAs generate the error message:
OrderCheck () failed: Unsupported filling mode (10030)
Would you be so kind to help us a little on how to set order type as RETURN in fxDreema EAs?
Really appreciate your help.
-
This problem again
Do you have some login data for such a broker, so I can test what is going on? From my country I can'r make a demo account in those Brazilian brokers. I tried many times in the past and every time someone is giving me login data 
-
Sh*t ... I don't have a demo login in that specific broker. I only have live account there.
I guess it wouldn't make sense to change a "core code" in fxDreema to fit this specific requirement, so I wonder if you'd be able to just give us one example on how to force RETURN type of filling for all orders (opening and closing positions). Would you be so kind? This would definitely solve the problem, as this is the only issue, which has been confirmed by the broker itself (only RETURN fillings are accepted)
I made a simple EA you might use for the example: https://fxdreema.com/builder/shared/wUtAGYoUd . It's simple but includes a typical structure many people would use in that broker (includes a time exit at 5pm, when the exchange starts to call large margins for overnight positions).
If you are able to do that, you may just re-direct any future request about that to this thread, where people would find the solution. Perhaps you can post the mq5 file for this example here, or just a screenshot of the changed codes, that you would be of great help to us.
Cheers
-
I'm also very confused about those filling types, I don't know what they are. In the code there is a function OrderCreate and somewhere in this function the filling type is decided. It looks like this:

As you can see there are few checks and I even added some comment where I explain a confusion.
-
@fxdreema Hello I can provide such log in data to improve Brazilian Broker´s capable to run Fxdreema robots.
I need open new topic ? -

-
