Places and follows a position from a definition of what the target position is
Example query:
discretionary_engine new --size=-0.1 --symbol=ADAUSDT '-f=sar:t5m:s0.07:i0.02:m0.15' '-f=tpsl:t0.4884:s0.5190'This would open a new position on ADA, where:
- Side: SELL, as the provided size is negative
- Size: 10% of the total balance
- rm_protocol_1: sar indicator, following the price action on 5m timeframe, with starting value 0.07, increase of 0.02, max 0.15
- rm_protocol_2: static tp and sl, which are set at 0.4884 and 0.5190, respectively
Config is read from ${HOME}/.config/discretionary_engine.toml by default, but can also be specified via --config cli argument.
An example config can be found in ./examples/config.toml
- strictly one asset per
Position. No methods for acquiring several assets at once will ever be introduced.
-
no two
Positions are opened on the same symbol -
no new
Positions on account are opened outside of the engine -
orders are placed immediately (not that far off, as most of the time we will spam the thing until it accepts. And only other action, that will need to be taken, is to prevent any increases in exposure while we have any mismatches).
- micro/macro data distinctions
- scale to multiple positions if we're correctly using websockets for trading, actually don't think we need to have a mother program for all to share exchange connections: micro data will be stored on a separate server; macro is generally cheap to pull (or needs to be pre-compiled anyways)
This repository follows my best practices and Tiger Style (except "proper capitalization for acronyms": (VsrState, not VSRState) and formatting). Licensed under Blue Oak 1.0.0
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this crate by you, as defined in the Apache-2.0 license, shall be licensed as above, without any additional terms or conditions.