Hello Vinsom,
So far I am able to play with some strategies almost succesfully with your plugin.
The only things left I would say is the calculation of the spread:
the plugin log display:
2017-12-03 18:28:37,979 INFO [default] BrokerAsset IN Symbol: XLM/BTC
2017-12-03 18:28:38,385 INFO [default] Asset Details: BTC-XLM Price: 0.00000792 Spread: 0.00000001
so Spread is 1 satoshis and it is correct.
But when I display it in Zorro :
Close Long XLM/BTC
Asset : XLM/BTC
Commission : 0.00000002
Commission cost : -0.00001000
pip cost : 0.00000126
Lots : 2.00000000
spread : 0.00001000
spread cost : -0.00252207
LotAmount : 205.00000000
BalanceLong : -0.00253207
WinTotal : 0.00000000
[Sun 17-12-03 17:38] 0 -0 +0 0.00000794/0.00000794 .00000794/0.00000794
The spread is set to 1000 satoshis, causing a huge spread cost and consequently a huge loss.
I do not overwrite it with Zorro so I can't tell if it is plugin related or Zorro related. Please let me know what you think when you will have some time.
Regards, Johan