quantatrading / Quanta-exoTrader

Quanta exoTrader is an advanced cryptocurrency trading algorithm designed to optimise trading through automation and detailed technical analysis, suitable for both novice and experienced traders.
9 stars 1 forks source link

[FEATURE] Create a function to auto compound profits #19

Open SmarterSystems opened 6 months ago

SmarterSystems commented 6 months ago

Describe the feature you are requesting and how it would benefit the performance or user flow A clear and concise description of what the feature is, how it would work etc. Instead of "Buy Quote Amount" and "Sell Quote Amount" there should be an additional option "Buy Quote Amount %" and "Sell Quote Amount %"

Is the request for TV or exoTrader? TradingView

Have you considered achieving the outcome with current features? Currently it's not possible to backtest the strategy with coins that vary a lot in price.

Provide examples or data to support the request E.G. Solana was 01/2023 at ~20$ today it's about 140$. If order size shall be 5% of the wallet size and we assume a 10k$ wallet in 01/2023 the "Buy Quote Amount" would be 25.

Let's further assume a performance of Exotrader of 40% per year. 04/2024 the wallet size would be 15k$. Now the "Buy Quote Amount" needs to be 5.35 instead of 25 since the algo underperformed buy and hold in this example. Could be the other way around as well.

quantatrading commented 6 months ago

Amount values will be ported to use same TL as GB exoTrader - this should satisfy the request?

https://github.com/quantatrading/Quanta-exoTrader/issues/10

SmarterSystems commented 6 months ago

Base is better than quote but still doesn't take the account growth into account which % does. Nevertheless, with having base it's way more convenient and this request is then only nice to have.

quantatrading commented 6 months ago

The problem this creates is a bad alignment of TV results which using a % of wallet balance would mean TV will auto compound profits which currently GB does not.

GB cannot autocompound if used with multiple pairs as each trade on different pairs would decrement the available balance for others

chamber144 commented 6 months ago

I would welcome an option in exoTrader to specify the order size in percentage of the account. The difference in profit over time is significant. Personally I don't care that it would mix up with other pairs/trades, since the same happens when trading manually with money management using a percentage of the balance/equity as basis to size new positions.

Implementing a simple "stupid" percentage option should be easy, the effect of using it lies in the responsibility of the user I would say.

I exported the data of a deep backtest on BTCUSDT from 01.01.2018 until now to compare the difference of QUOTE based position size, BASE based position size and percentage based position size: Starting capital: 10000 fixed position sizes: 300 BASE = 0.0285 QUOTE = 3% grafik grafik

increased position size: fixed position sizes: 500 BASE = 0.0476 QUOTE = 5% grafik grafik

quantatrading commented 6 months ago

Thanks @chamber144 for the supporting information. This will take significant effort to implement so I'll have to keep it on backlog for the short term. I will get to it but no ETA