MT4 & Forex.com

Posted By: jrath

MT4 & Forex.com - 03/14/17 15:26

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
Posted By: jrath

Re: MT4 & Forex.com - 03/14/17 15:49

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
Posted By: jrath

Re: MT4 & Forex.com - 06/13/17 01:33

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
Posted By: jcl

Re: MT4 & Forex.com - 06/13/17 09:21

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.
Posted By: jrath

Re: MT4 & Forex.com - 06/15/17 21:50

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.
Posted By: jcl

Re: MT4 & Forex.com - 06/16/17 14:40

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.
© 2024 lite-C Forums