Can anyone using leonArdo kindly explain to me how does it calculate effective gain?
I am fiddling with demo version (with Bittrex as exchange).
I chose margin maker as the strategy with the following settings:
Trading pair: LTC/BTC:
Amount (LTC) : 15.4704
Start with : Buy
Buy Margin: 32%
Sell Margin: 30%
Trading Window: 38%
Effective margin: 1.05%
Min Effective gain: -1%
The buy order went through with these details:
Type: limit buy
Price:0.01615998
Amount:15.470393
Total:0.25000124
The bot automatically placed a sell order with these details:
Type: limit buy
Price:0.0162114
Amount:15.470393
Total:0.25079673
I am not able to understand how selling at 0.0162114 amounts to 1.05% gain.
By the mathemetical formula Gain % = [(Selling Price - Cost Price) * 100]/ Cost Price
It comes to [(0.0162114 - 0.01615998)*100]/0.01615998 = 0.31819%
The formula gives effective gain as 0.318193%, and not 1.05% gain which I had aimed for.
There is quite a strong chance I am misunderstanding the settings. In that case would someone be kind enough to tell me what these settings (Buy Margin, Sell Margin, Trading Window, Effective margin) mean and what values should I provide in these settings if I want to get a profit of 1.05% in every trade.
Thanks.
Depends on the exchange. On bittrex it's a standard 0.25% for all trades.
On poloniex the effective gain is calculated using standard taker fees of 0.25%. The API doesn't allow us to pre-determine the type of order so we choose to display the higher taker fees rather than the possible, most likely, even probably maker fees of 0.015%.
Best wishes,
Jonathan
Thanks Jonathan for your answer. But I am still a bit confused. Does not 'effective gain' take the exchange fees into consideration ?
Also, if I have to set 'minimum effective gain of 1%' and purchased a currency at say .034 btc, would the sell bid be automatically of at least 0.03434 btc(100.01% of 0.34 to account for 1% effective gain)?
Different exchanges calculate how their fees are applied in different ways. There are C1 and C2 models. Where C1/C2 is a currency pair, ETH/USD for example. In leonArdo wherever you see Effective Gain we have figured out what the gain is after fees have to be paid on both sides. So for example you buy currency C1 for $100 and sell for $110. The gain is not 10% as the fees on both those trades have to be calculated. leonArdo does that based on each particular exchange's conditions and shows you what your effective gain is.