Gamestudio Links
Zorro Links
Newest Posts
Historical Data with the 64bit FXCM Plugin
by Martin_HH. 01/21/26 21:59
Buy A8 Pro Version
by Spirit. 01/21/26 21:37
ZorroGPT
by TipmyPip. 01/20/26 07:17
Bar missing bug?
by jcl. 01/19/26 10:47
400 free seamless texture pack downl. here !
by NeoDumont. 01/18/26 19:09
FXCM demo test failed
by qin. 01/13/26 13:53
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (qin), 10,873 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Castromangos, Quantum, stephensdeborah, promfast, joe_kane
19193 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Impossible Equity #479819
04/28/20 03:51
04/28/20 03:51
Joined: Aug 2019
Posts: 22
F
felixfx Offline OP
Newbie
felixfx  Offline OP
Newbie
F

Joined: Aug 2019
Posts: 22
I'm testing a script wrote on EUR/USD and before each trade is initiated I have the console prinf out the account equity like so:

printf("%f Equity" Equity);

The starting Capital is $1M and it will give me back numbers like these:
1000289.799133
1000536.611633

For every 1 tick per Zorro Lot of movement on EUR/USD, 1 Zorro Lot = 0.01 Lot, is equivalent to $0.01.

How could there possibly be Equity values of 6 decimal places?

This is clearly incorrect. Not just equity but other calculations I have having printed out are giving me these highly decimaled numbers as well.

Anyone have any idea how to fix this?

Thank you

Re: Impossible Equity [Re: felixfx] #479820
04/28/20 09:31
04/28/20 09:31
Joined: Jul 2000
Posts: 28,052
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,052
Frankfurt
I like the word 'decimaled'. For getting less decimaled numbers, set the decimalization to 2 digits with "%.2f".


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1