forex software

Create and Test Forex Strategies

forex software

Skip to forum content

Forex Software

Create and Test Forex Strategies

You are not logged in. Please login or register.


Forex Software → Help and Support → Manage order send - unknown result

Pages 1

You must login or register to post a reply

RSS topic feed

Posts: 2

Topic: Manage order send - unknown result

Hey, I have couple of ea's generated by fsb pro, and I see a lot of problems in expert console. Symbol filling is ORDER_FILLING_FOK, but in code I dont know why is loop:
if(check.retcode == TRADE_RETCODE_INVALID_FILL)
     {
      switch (orderFillingType)
        {
         case ORDER_FILLING_FOK:
            Print("Filling mode changed to: ORDER_FILLING_IOC");
            orderFillingType = ORDER_FILLING_IOC;
            break;
         case ORDER_FILLING_IOC:
            Print("Filling mode changed to: ORDER_FILLING_RETURN");
            orderFillingType = ORDER_FILLING_RETURN;
            break;
         case ORDER_FILLING_RETURN:
            Print("Filling mode changed to: ORDER_FILLING_BOC");
            orderFillingType = ORDER_FILLING_BOC;
            break;
        }

so my filing is fok, ea's fillink should be fok, but its changed on start, and then i see a lot of issues in console, also if i will disable this check there are another problems, so I dont really know this strategy works fine or no, also here is description from fsb:
Entry signal in the direction of the present position:

Add to a winning position but not to a losing one. If the position is at a loss, cancel the additional entry order. Do not exceed the maximum allowed number of lots to open.
Entry signal in the opposite direction:

No modification of the present position is allowed. Cancel any additional orders which are in the opposite direction.

so from the logs i see ea tryies to close position and open new one, but it is not allowed by desc, so it is only a try which will always fail or something wrong with ea?

Post's attachments

1.png 87.57 kb, file has never been downloaded. 

2.png 94.76 kb, file has never been downloaded. 

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

Re: Manage order send - unknown result

The problem is that there is no way to check what Filling Mode the broker accepts.

A workaround is to check the methods one by one until it finds the correct one. It is done only during the first order the expert sends.

Note: FSB Pro currently works for Nettings accounts only.  Please check your MT5 account type.
We will add "hedging" accounts support later.

Posts: 2

Pages 1

You must login or register to post a reply

Forex Software → Help and Support → Manage order send - unknown result

Similar topics in this forum