hkopp/quantfxengine

include leverage...

Opened this issue · 3 comments

...which is in portfolio but does nothing up to now.
Also do not forget the unittests.

ba1f10e3c80da784e13b9d6b25be39c2468fe2a4
293c8ad

Risk management in portfolio now breaks, since I can suffer a drawdown of more than risk_per_trade per trade

In execute_tick_event, I need to close the position, if it has lost enough money.
Also, I need to adjust trade_units, when opening a new position