Hi,

Yes I have set NFA otherwise trade cannot be closed by Zorro.
Yes settings are the same and this is live trading.
I have fixed the lot amount for each asset I am using as a workaround, let see if the issue is fixed with that.

I have also spotted strange behaviour for asset where PIPCost > 0.00000001 (1 satoshi) but I don't know if it is plugin related.

1- The Commission cost is not computed correctly :

in this example, I just enter and exit the trade after few seconds :

Trade: TradeTest XLM/BTC 2017-11-19
Buy Long XLM/BTC
Enter 1L XLM/BTC at 08:38:55
!Trade id: Price: 0.00000487
!Type: buy Price: 0.00000487 Amount: 205
!Quantity: 498.84974999999997 QRemaining: 498.84974999999997 Commission: 0.00000250
[XLM/BTC::L0735] Long 1@0.00000 at 08:38:55
Close Long XLM/BTC
Exit [XLM/BTC::L0735]
!Trade id: Price: 0.00000485
!Type: sell Price: 0.00000485 Amount: 205
!Quantity: 498.84974999999997 QRemaining: 498.84974999999997 Commission: 0.00000249
[XLM/BTC::L0735] Sell 1@0.000004870: -0.00 at 08:38:55
Entr 0.0000 Exit 0.0000 Spr 0.0000 Slp 0.00 Rol 0.00 Com 0.00
commission cost: -0.00102881
commission : 0.00000500 => roundturn fee from bittrex which is 0.5%
lot amount : 205.76131687
BalanceLong : -0.00102881
pipcost: 0.00000209


The Balance long indicate a loss of -0.00102881 BTC which is huge.

To solve that, I need to set the commission variable to: Commission = 0.00000500*PIP/PIPCost;

Trade: TradeTest XLM/BTC 2017-11-19
Buy Long XLM/BTC
Enter 1L XLM/BTC at 08:41:03
!Trade id: 54fe52f4-09e4-4db9-95a4-af249c879133 - 1511080864 - Price: 0.00000487
!Type: buy Price: 0.00000487 Amount: 205
!Quantity: 498.84974999999997 QRemaining: 498.84974999999997 Commission: 0.00000250
[XLM/BTC::L0864] Long 1@0.00000 at 08:41:03
Close Long XLM/BTC
Exit [XLM/BTC::L0864]
!Trade id: 54fe52f4-09e4-4db9-95a4-af249c879133 - 1511080869 - Price: 0.00000486
!Type: sell Price: 0.00000486 Amount: 205
!Quantity: 498.84974999999997 QRemaining: 498.84974999999997 Commission: 0.00000249
[XLM/BTC::L0864] Sell 1@0.000004870: -0.00 at 08:41:07
Entr 0.0000 Exit 0.0000 Spr 0.0000 Slp 0.00 Rol 0.00 Com 0.00
commission cost: -0.00000493
commission : 0.00000002
lot amount : 205.76131687
BalanceLong : -0.00000493
pipcost: 0.00000209

Seems correct since Commission cost is equal to Commission*LotAmount*PIP/PIPCost : 0.00000500*205.76131687*0.00000001/0.00000209 = 0.00000492


2- I suspect that the spread cost is also wrong for the asset where pip cost is > 1 satoshis and the factor PIP/PIPCost shall also be applied. I don't really mind since I have set it to zero for now but we need to be aware.


It is all for now laugh my analysis may not be correct but I am here to contribute so everyone may benefit from this !


Last edited by JohanAu; 11/19/17 10:08.