FXCM Forex Trading

Strategy Builder

Strategies are published here.

Moderator: admin

Re: Strategy Builder

Postby fxninja33 » Thu Aug 03, 2017 12:41 pm

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.
Posts: 3
Joined: Thu Aug 03, 2017 12:26 pm

Re: Strategy Builder

Postby Apprentice » Tue Aug 08, 2017 3:37 am

I have not been able to reproduce within the backtester.

Try to choose the right newly introduced parameter Account Type.
User avatar
FXCodeBase: Confirmed User
Posts: 16475
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Strategy Builder

Postby fxninja33 » Tue Aug 08, 2017 6:53 am

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.
Posts: 3
Joined: Thu Aug 03, 2017 12:26 pm

Re: Strategy Builder

Postby Konstantin.Toporov » Mon Aug 14, 2017 1:00 pm

It looks like the account restrictions were not actually removed.
Did you try to close trades manually on the new account?
Posts: 32
Joined: Mon Aug 31, 2015 10:16 am

Re: Strategy Builder

Postby fxninja33 » Mon Aug 14, 2017 6:24 pm

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.
Posts: 3
Joined: Thu Aug 03, 2017 12:26 pm


Return to Custom Strategies

Who is online

Users browsing this forum: Google [Bot] and 4 guests