Hi Vincenzo,

Thank you for your clarification.
I am playing live with your plugin (very simple strategy for now to ensure that everything is running correctly).
Could you describe to me the issue with the PIPCost ? just to verify that we have the same behaviour.

A small test I have done is this one :

- Buy 1 lot of the asset FUN/BTC
- Sell after few seconds.

It seems that the computation of the profit/loss is not good :

[557: Sat 17-10-21 17:31] 0.00000284/0.00000284�.00000284/0.00000284
!Trade id: b675939f-986b-4e9c-a64d-1b20e12e0b64 - 1508607061 - Price: 0.00000286
!Type: buy Price: 0.00000286 Amount: 352
!Quantity: 352 QRemaining: 0 Commission: 0.00000252
[FUN/BTC::L7061] Long 1@0.00000286 p
Session end at 17:31
!Trade id: e44a3e6c-2c3c-4b72-a352-0b94ab1fb6db - 1508607080 - Price: 0.00000284
!Type: sell Price: 0.00000284 Amount: 352
!Quantity: 352 QRemaining: 0 Commission: 0.00000250
[FUN/BTC::L7061] Sell 1@0.00000286: -0.00352113
Logout.. ok

It says that the loss is -0.00352113 BTC which is not the correct amount.

Is this related with what you are experiencing ?


By the way I am really happy that you develop this plugin laugh


EDIT :

Seems that there is a factor applied to the calculation of the profit.
The correct loss is -0.00000352113 BTC. if we compute the formula (found in the documentation of Zorro) : x * Lots * PIPCost/PIP with x the price difference we get the correct amount.
So there is a factor of 1000 applied in Zorro. Don't know where this is coming from.




Last edited by JohanAu; 10/23/17 09:01.