Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, Imhotep), 567 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
MT4 & Forex.com #464834
03/14/17 15:26
03/14/17 15:26
Joined: Nov 2016
Posts: 69
USA
J
jrath Offline OP
Junior Member
jrath  Offline OP
Junior Member
J

Joined: Nov 2016
Posts: 69
USA
I recently switched from FXCM in the US to gainforex.com via MT4.

Zorro is up and running vs. very small live account. It opened 1 lot of short aud/usd last night. Now though it is printing the below warning again and again in the log and also in the Zorro window :

[Tue 14.03.17 12:22] 501 +0 +1 / 1.0638/1.06501.0630/1.0635.
[AUD/USD:BB:S3167] Can't close 1@0.75537 at 12:35:12.
[AUD/USD:BB:S3167] Can't close 1@0.75560 at 12:58:12.
[AUD/USD:BB:S3167] Can't close 1@0.75538 at 13:22:13.
[AUD/USD:BB:S3167] Can't close 1@0.75542 at 13:47:13.
[AUD/USD:BB:S3167] Can't close 1@0.75573 at 14:13:13.
[AUD/USD:BB:S3167] Can't close 1@0.75636 at 14:40:13.
[AUD/USD:BB:S3167] Can't close 1@0.75651 at 15:08:13

I found this in the documentation :

Warning 073: Can't close nn lots
An exitShort/exitLong command could not be fully executed because not enough trades were open to close the given number of lots.


Ok but what should I do to resolve this ?

I noticed this same warning in Demo before switching to live and I think eventually Zorro was able to close the position. I am trying to get Zorro running properly before increasing size.

Thank you
Jason

Re: MT4 & Forex.com [Re: jrath] #464836
03/14/17 15:49
03/14/17 15:49
Joined: Nov 2016
Posts: 69
USA
J
jrath Offline OP
Junior Member
jrath  Offline OP
Junior Member
J

Joined: Nov 2016
Posts: 69
USA
I found this looking a little more :

Zorro can step around all NFA restrictions - except for low leverage, missing assets, and limited trades - when the NFA flag is set. It must be set for all US based accounts, except when trading through MT4.

Will try with NFA = 0

Re: MT4 & Forex.com [Re: jrath] #466395
06/13/17 01:33
06/13/17 01:33
Joined: Nov 2016
Posts: 69
USA
J
jrath Offline OP
Junior Member
jrath  Offline OP
Junior Member
J

Joined: Nov 2016
Posts: 69
USA
Hi I am still looking for a bit of help with the above error message. I am running Zorro on Gain FX in the uS with MT4.

These are my settings :

NFA = 0
FXOnly = 1
MMax = 100
Phantom = 0
Hedge = 4
Weekend = 2
Verbose = 2
BrokerPatch = 0
Preload = 0
AssetList = ""
Exclude = ""
StopFactor = 1.5
Cancel = 0


What I have found is: Z can happily run for long periods with above settings but when there is a large move in Zs favor - for example last night is USD/CAD then Z would like to open an opposite trade under a new strategy. However the FIFO hedging is not working and I get the dreaded :

[USD/CAD:VO:S5435] Can't close 3@1.33253 at 20:14:31

in the log file. In the MT4 log it says trade prohibited by FIFO rules. Ive reviewed the manual for NFA, Hedge and Phantom settings a few times and I can't see what I could change.

(why the phantom setting called phantom when it only seems relevant to equity curve trading ? )

Thanks
Jason

Re: MT4 & Forex.com [Re: jrath] #466413
06/13/17 09:21
06/13/17 09:21
Joined: Jul 2000
Posts: 27,977
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,977
Frankfurt
FIFO compliant means you can not close a new trade before closing all old trades. So the message is ok. Your trading is just restricted to FIFO rules.

You could step around it either with virtual hedging, Hedge = 4, or with modifying the script so that new trades are not closed.

Re: MT4 & Forex.com [Re: jcl] #466470
06/15/17 21:50
06/15/17 21:50
Joined: Nov 2016
Posts: 69
USA
J
jrath Offline OP
Junior Member
jrath  Offline OP
Junior Member
J

Joined: Nov 2016
Posts: 69
USA
Right but if I get this type of log message :

[USD/CAD:HP:L7080] Can't close 3@1.32862 at 18:14:26
[USD/CAD:HP:L7080] removed from trade list

then its a serious problem. Zorro not managing the trade anymore. Right ?

Let me just post my settings from above one more time. Remember US MT4 account:

NFA = 0
Phantom = 0
Hedge = 4

I think the manual says these are correct.

Re: MT4 & Forex.com [Re: jrath] #466482
06/16/17 14:40
06/16/17 14:40
Joined: Jul 2000
Posts: 27,977
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,977
Frankfurt
Yes, of course this is a serious problem - do not trade on a FIFO account with a non FIFO compliant strategy. Check if old trades are always closed before newer trades. Hedge=4 should do that, but also do not use partial closing and make sure to have no remaining open trades from other sessions. You must restart the strategy afresh after changing Hedge mode.


Moderated by  Petra 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1