Impossible Equity

Posted By: felixfx

Impossible Equity - 04/28/20 03:51

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

Re: Impossible Equity - 04/28/20 09:31

I like the word 'decimaled'. For getting less decimaled numbers, set the decimalization to 2 digits with "%.2f".
© 2024 lite-C Forums