Thank you Dalla.

Originally Posted By: Dalla
What about commision, slippage and spread?

I added this behind selecting the asset() but it does not change the win/loss ratio of 47%.

Originally Posted By: Dalla
Regarding multiple runs; If I understand correctly what you want to do, you should use NumTotalCycles.
http://manual.zorro-trader.com/numtotalcycles.htm

That is it. Nice. I adjusted the cointoss script accordingly to run 100 cycles and change the seed() to force different buy/sells but it consistently has more losers than winners. This does not make sense to me. Find attached a new graphic and script that shows the total amount of win/loss per cycle.

Originally Posted By: firecrest
Maybe need to check the assetfix.csv to understand more.

I am not sure what to look out for. I attach that file too. Let's get to the bottom of it tongue

Attached Files
cointoss2.png (14 downloads)
CointossWinLossCycle.c (10 downloads)
AssetsFix.csv (3 downloads)
Last edited by pascalx; 09/01/17 09:41.