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