| Crates.io | rm_engine |
| lib.rs | rm_engine |
| version | 0.1.0 |
| created_at | 2025-01-07 18:40:41.710566+00 |
| updated_at | 2025-01-07 18:40:41.710566+00 |
| description | My engine for risk-management |
| homepage | https://github.com/valeratrades/rm_engine |
| repository | https://github.com/valeratrades/rm_engine/tree/master/rm_engine |
| max_upload_size | |
| id | 1507586 |
| size | 129,513 |
TODO
rm_engine size btc/usdt --percent-sl 2%
size commandwant to be able to quickly get correct size I need to use when opening a trade on a given ticker, based on expected volatility (in future based on pattern and my trading history with it too, but that's later).
coin (exchange doesn't matter, and we ignore liquidity for now, so neither does pair)
--sl | -s % away: convert to exact price, print it (small reduction to possible human error) OR exact: print back % away (also to reduce possible human error) OR None: assume 20%
get total balance (today means bybit and binance, all margins (sapi and fapi))
get coin's price
risk est, mul the with default % of depo
Large, requires a
0.1: random criterion based on time it took to go same distance last time.
1.0:
make a formula to quantify indirectional-vol
take entries from 3x back from the distance it last took to go the SL length
Exponentially weigh them, feed into da formula
trial and error the answer. Get any starting point, use the thing to trade, adjust as the intuition of this develops
way of quantifying indirectional volatility