So after having defined
capital=start+Performance.RealtimeTrades.TradesPerformance .Currency.CumProfit;
I wish to define the number of traded contracts as eg
nbcontracts=Math.Floor(capital/10000)
The problem is that the nbcontracts is now a double that I wish to transform into a int to be able to use instructions like enterlong.
So the question is: how to transform a double (which is in fact by construction an integer) to the int class.
NB: Math.Floor exits a double as result...
Comment