Gamestudio Links
Zorro Links
Newest Posts
Join us over at Robot Wealth
by boatman. 04/01/20 11:19
Script Test gives error 055 - No History
by AndrewAMD. 03/31/20 16:19
IB CASH FX commission
by fab. 03/31/20 15:23
Performance report - external trades
by hast29. 03/31/20 13:42
Random Functions?
by Emre. 03/31/20 12:32
downloading data from Quandl
by gtell. 03/31/20 10:45
textureLod into HLSL
by 3run. 03/31/20 10:21
AUM Magazine
Latest Screens
The Space Between
Pogostuck: Rage With Your Friends
Worst Case Z
AckCon'18 - Lotter vs the World 2 - Preview Release
Who's Online Now
10 registered members (AndrewAMD, Ayumi, danatrader, jbhunter, 3run, Leohermoso, mey, HF_Psy, Nomi, kvm), 693 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
gonzalez21, Cobus, HF_Psy, jj02520024, heitorfr
18409 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
Zorro showing Incorrect Results (I think..?) #478948
01/23/20 10:25
01/23/20 10:25
Joined: Dec 2016
Posts: 14
T
tnktnns Offline OP
Newbie
tnktnns  Offline OP
Newbie
T

Joined: Dec 2016
Posts: 14
Hello all, I've been having an ongoing issue while running Zorro that I can't figure out. There seems to be a discrepancy between what Zorro is presenting as my Equity & Profit/Losses and Reality. I ran a Live Z7 system in the fall of last year but pulled out because I was hemorrhaging money while Zorro kept saying it was actually making a profit(???)

After that I started a Z7 DEMO in the beginning of January, and I'm getting the same confusing in-congruence.

I've attached screenshots of the Start & End of this January Demo run to show what I'm talking about. As you can see in the first image, I started with an Equity of $12909.
The second image now shows that I have an Equity of $12664, and yet the next number in the Result Window (the Profit #) is showing a '+33102' ...
I have no idea where this "+33102" is coming from or what it's indicating, because it's pretty clear to me that I've lost Equity considering I started with $12909 and now have $12664... right? Shouldn't that +33102 instead be -245?

Now I should point out I do have a BALANCE of ~$14931 in my account, but I still don't understand how "+33102" would work with that Balance number?

I've been running all my stuff on Mt4 from an FxChoice account.


So what am I missing? Is it something obvious that I just am totally ignorant about(am I just being an idiot)? or is there something wrong with my broker's API? or something else?

Thanks for any Help!

Attached Files
Re: Zorro showing Incorrect Results (I think..?) [Re: tnktnns] #478959
01/26/20 10:27
01/26/20 10:27
Joined: Apr 2008
Posts: 270
Austria
Petra Offline
Support
Petra  Offline
Support

Joined: Apr 2008
Posts: 270
Austria
We call something like that "garbage in garbage out". Zorro results will be wrong when you entered wrong parameters in the asset list. If the parameters are very wrong then the results will also be very wrong.

Exception is when the results are not calcuated by Zorro but available from the broker API, this works normally with MT4 but not always. If you get wrong results from MT4 then you must use Brokerpatch to let Zorro calculate them.

Re: Zorro showing Incorrect Results (I think..?) [Re: tnktnns] #478962
01/28/20 09:35
01/28/20 09:35
Joined: Dec 2016
Posts: 14
T
tnktnns Offline OP
Newbie
tnktnns  Offline OP
Newbie
T

Joined: Dec 2016
Posts: 14
Thanks for the reply Petra.

So I guess the parameters of my AssetsFix.csv need to be updated to my broker's parameters? If so, I actually found a script written by the member sdh309795gaas on this forum here that downloads (I think) the appropriate asset parameters from the broker; I'm going to try again with this new updated Asset list, hopefully it works!

Thanks again!

Re: Zorro showing Incorrect Results (I think..?) [Re: tnktnns] #479099
02/18/20 07:00
02/18/20 07:00
Joined: Dec 2016
Posts: 14
T
tnktnns Offline OP
Newbie
tnktnns  Offline OP
Newbie
T

Joined: Dec 2016
Posts: 14
Update.. still getting the same issue 21 days later!

I probably sound like a complete noob but maybe I'm not understanding how to "edit the parameters in the asset list" .. do you know what exact parameters need to be updated? and we're talking about the AssetsFix.csv file as the Asset List right?

Re: Zorro showing Incorrect Results (I think..?) [Re: tnktnns] #479101
02/18/20 14:19
02/18/20 14:19
Joined: Jul 2000
Posts: 27,149
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,149
Frankfurt
Yes. But first determine if this is the problem at all. Normally Zorro gets trade results directly from the broker. So live results are always correct, even when the asset parameters are wrong.

You must actively switch off API returns for getting wrong results. Or you have a broker that does not return trade results at all, for instance an NFA broker. Without knowing what you did or from which broker you got the wrong profits, it is hard to tell what the problem is.


Re: Zorro showing Incorrect Results (I think..?) [Re: tnktnns] #479109
02/19/20 10:18
02/19/20 10:18
Joined: Dec 2016
Posts: 14
T
tnktnns Offline OP
Newbie
tnktnns  Offline OP
Newbie
T

Joined: Dec 2016
Posts: 14
Thanks for your reply jcl!!

So the broker I have is FxChoice which is a broker based in Belize, not under NFA; but I'm not sure how I would determine for sure that they are or are not returning trade results? I'm using their Mt4 'classic demo' platform, by the way.

I also don't think I manually switched off API returns, at least certainly not wittingly.

I've seen other users on this forum use FxChoice, as seen in this post by the user sdh309795gaas; so I assume the broker is working for some people. It follows, then, that I'm probably doing something wrong on my end; I just can't figure out what that is.

thanks again for your help, really appreciate it.

Re: Zorro showing Incorrect Results (I think..?) [Re: tnktnns] #479110
02/19/20 13:45
02/19/20 13:45
Joined: Jul 2000
Posts: 27,149
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,149
Frankfurt
Are you trading with Fxchoice via MT4?

Re: Zorro showing Incorrect Results (I think..?) [Re: tnktnns] #479122
02/20/20 09:36
02/20/20 09:36
Joined: Dec 2016
Posts: 14
T
tnktnns Offline OP
Newbie
tnktnns  Offline OP
Newbie
T

Joined: Dec 2016
Posts: 14
Yes, via Mt4

Re: Zorro showing Incorrect Results (I think..?) [Re: tnktnns] #479128
02/20/20 16:59
02/20/20 16:59
Joined: Jul 2000
Posts: 27,149
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,149
Frankfurt
Ok. I suppose you haven't modified BrokerPatch in z.ini. The next step: Compare a recent trade in the 3 logs, the Zorro log, the MT4 experts log, and the MT4 journal. If you get wrong results, one of the 3 must be wrong - or all 3. Post the relevant sections of the logs here.

Re: Zorro showing Incorrect Results (I think..?) [Re: tnktnns] #479172
02/26/20 09:06
02/26/20 09:06
Joined: Dec 2016
Posts: 14
T
tnktnns Offline OP
Newbie
tnktnns  Offline OP
Newbie
T

Joined: Dec 2016
Posts: 14
So here's a single trade I found, shorting GBP/USD, marked in each of the 3 logs

Zorro Log:
(a) [GBP/USD:PD:S4135] Short 19@1.29198 Risk 384 t at 09:07:01
(b) Error 015: trade [GBP/USD:PD:S4135] bad exit price 0.0000
(c) [GBP/USD:PD:S4135] Cover 19@0.0: +24544 at 16:07:01


Mt4 Experts Log:
(a) 2020.02.21 04:07:00.365 Zorro EURUSD,M15: open #71254135 sell 0.19 GBPUSD at 1.29178 sl: 1.32178 ok
(b) 2020.02.21 11:07:00.852 Zorro EURUSD,M15: Close [GBPUSD:S4135] 0.19@1.2960
(c) 2020.02.21 11:07:00.930 Zorro EURUSD,M15: close #71254135 sell 0.19 GBPUSD at 1.29178 sl: 1.32178 at price 1.29597


Mt4 Journal:
(a) 2020.02.21 04:07:00.365 '314900': order was opened : #71254135 sell 0.19 GBPUSD at 1.29178 sl: 1.32178 tp: 0.00000
(b) 2020.02.21 11:07:00.852 '314900': close order #71254135 sell 0.19 GBPUSD at 1.29178 sl: 1.32178 tp: 0.00000 at price 0.00000
(c) 2020.02.21 11:07:00.930 '314900': order #71254135 sell 0.19 GBPUSD at 1.29178 sl: 1.32178 tp: 0.00000 closed at price 1.29597




That Error 015 in the Zorro log is something I've been seeing often while running the system too. To be honest I'm not even 100% sure what to look out for here, but the 'bad exit price 0.0000' stands out to me as strange.

Page 1 of 2 1 2

Powered by UBB.threads™ PHP Forum Software 7.7.1