Failure to open new order with any strategy

If you need an Indicator or Signal developed or translated from other language, please post all Indicator development REQUESTS to this section here.

Moderator: admin

Failure to open new order with any strategy

Postby Sheera123 » Tue Jun 11, 2019 8:21 am

Hi,

I've been having a problem with all the strategies I've been trying to use and the problem is, when the strategy closes a position and then tries to open a new one in the opposite direction I get the following error message in trading station Desktop, "Trading activity delayed while Net Quantity order xxxxxx is pending".

I spoke to a support agent at FXCM and they said that this happens when the server doesn't have enough time to close the current open orders and receives a request for a new order. So I was wondering is there is a way to insert a delay in the code between closing a position and opening an new one. Is there a piece of code that I can insert myself into the strategies that I've already downloaded as I might be the only one having this problem. I haven't seen anyone else complaining about this problem anywhere on the forum.

The  strategies I am using are as follows:

RENKOSTRATEGY.lua
ATR MODIFIED STOPLOSS STRATEGY.lua
SIMPLE_RENKO_STRATEGY.lua

These are just a few examples, but if I use any strategy I will encounter the same problem. The problem only seems to happen when it tries to close an already opened position and then open a new one.

Thanks,
Shawn H
Sheera123
 
Posts: 58
Joined: Tue Jun 05, 2018 1:08 pm

Re: Failure to open new order with any strategy

Postby Apprentice » Wed Jun 12, 2019 6:44 am

Your request is added to the development list under Id Number 4718
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36476
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Failure to open new order with any strategy

Postby Apprentice » Thu Jun 13, 2019 7:23 am

Try this versions.
ATR Modified StopLoss Strategy.lua
(19.53 KiB) Downloaded 289 times

RenkoStrategy.lua
(23.53 KiB) Downloaded 292 times

Simple_Renko_Strategy.lua
(14.69 KiB) Downloaded 322 times
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36476
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Failure to open new order with any strategy

Postby Sheera123 » Thu Jun 13, 2019 7:24 pm

Thanks Apprentice, I tried the RenkoStrategy and it works correctly now.
Sheera123
 
Posts: 58
Joined: Tue Jun 05, 2018 1:08 pm


Return to Indicator and Signal Requests

Who is online

Users browsing this forum: No registered users and 30 guests