Page 21 of 21

Re: Strategy Builder

PostPosted: Thu Aug 03, 2017 12:41 pm
by fxninja33
Hi Apprentice,
Hopefully an easy one. When closing all open positions on opposite either short or long the strategy is closing all positions but failing to open the opposing position with the following error message:

"The account is locked. Trading is not available"

Screen Shot 2017-08-03 at 16.41.05.png
Error Message


Screen Shot 2017-08-03 at 16.49.43.png


My settings are as follow and allows for multiple positions and allowed side is "Both"

Screen Shot 2017-08-03 at 16.43.53.png


It also performs fine in the backtester but not in in live in demo mode.

Many Thanks in advance for a quick reply strategy is working perfectly except this one issue.

Re: Strategy Builder

PostPosted: Tue Aug 08, 2017 3:37 am
by Apprentice
I have not been able to reproduce within the backtester.

Try to choose the right newly introduced parameter Account Type.

Re: Strategy Builder

PostPosted: Tue Aug 08, 2017 6:53 am
by fxninja33
Thanks for getting back to me.

As I said the backtester works perfectly but when live I get the error "account is locked. Trading unavailable". I spoke to FXCM, they setup a new demo account for me with restrictions removed and the error still occurs unfortunately. I have attached the strategy template if you run it in a demo account on the m1 chart you will see the issue quickly.

An interesting thing happens if you run the Strategy twice in parallel, one strategy to enter the Buy only and one to enter Sell only the entry alerts that pop up have a different sequence.

When Buy > Sell:

The alerts are "Close Long, Open Short, Close Long" (The account locks and does not enter the 1st Sell trade although subsequent trades are fine)

When Sell > Buy

"Close Short, Close Short, Open Long" (Works fine account does not lock)


From reading other topics with the same issue I understand this is not related to hedging but is related to creating entry orders at the same time. Perhaps it is the sequence of events when closing on opposite that is creating the error.

Re: Strategy Builder

PostPosted: Mon Aug 14, 2017 1:00 pm
by Konstantin.Toporov
It looks like the account restrictions were not actually removed.
Did you try to close trades manually on the new account?

Re: Strategy Builder

PostPosted: Mon Aug 14, 2017 6:24 pm
by fxninja33
Account restrictions are not creating the issue as the error also occurs when trading live. Have also spoken to FXCM and had this confirmed...It is strange that the error only occurs in one direction and that the entry and closing sequence I listed above is slightly different. It makes me think this is a timing issue or an issue with the order in which the strategy closes then opens position from Buy to Sell as Sell to Buy works fine.

Re: Strategy Builder

PostPosted: Thu Aug 17, 2017 2:57 am
by Apprentice
Have forwarded this case to the development team.