Also, I have a question about MarginCost and Leverage in AssetsZ9.csv
1st test: MarginCost=0 and Leverage=2.
According to the manual MarginCost can be left at 0 when Leverage is used for determining the margin. Ok

2nd test: MarginCost=25 and Leverage=0.
Again, according to the manual when MarginCost is nonzero, Leverage is ignored and the Leverage variable is calculated from MarginCost and the initial price.

Initial price = 50, PIP = PIPCost = 0.01
As I understands, these tests are equal and should produce the same results. However, they are different. Is it a bug or I miss something?

Last edited by kujo; 12/06/17 19:22.