Replies: 1 comment 4 replies
-
Please consider adding |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Just a heads up for some things I have queued up to release but haven't finalized yet:
colorset
command, changes are remembered across restarts)straddle /ES 20
would add a quote for a straddle (long call, long put) ±20 points from live /ES ATMstraddle /ES 0
would give you an ATM stranglestraddle /ES vertical put -10 -20
would give you a vertical put with the long leg -10 points from ATM and the short leg -20 points from ATM (e.g. /ES 5000 with vertical put -10 -20 would add a quote for BUY PUT 4980, SELL PUT 4960)straddle /ES vertical call 10 20
creates a spread quote for buy call +10 ATM and sell call +20 ATM.straddle /ES v c 10 20 v p -10 -20
would create a quote for (BUY CALL +10 ATM, SELL CALL +20 ATM, BUY PUT -10 ATM, SELL PUT -20 ATM) all as a single spread.set dte N
whereN
is days away from today.set dte
can also accept a day name as a word (set dte thursday
) and it will figure out how many days away to use forN
buy
command input is now a full parser (orderlang
in tradeapis) instead of just 3 command fields — we have much more flexibility for parameter order, types of information (attached take-profit, stop-loss either one or both and optional algo overrides for each attached order), and config options now (trailing stop orders with initial stop, trail, limit prices all in thebuy
command).buy
command is improved to use live event updates instead of sleeping timers for detecting when to try and move a limit price closer to market for more aggressive fills, so it should be much more responsive. Also it has some extra guards to try and protect against adversarial quotes.buy
command can also generate stop limit and trailing stop limit orders for brackets too.buy
command can handle all instrument types including spreads/bags both long and short. IBKR allows placing bracket orders (or single take-profit, stop-loss) on spreads too, so all parameter combinations work for all instrument types.Decimal()
objects (python's built-in arbitrary precision bignum library) for exact math and rounding everywhereib_async
for more reliable missing bid/ask data detectionmypy
type checks now (not quite --strict yet, but much improved overall)BGTask
dir/YEAR/MONTH/filename
structure for easier dropping of old logsib_async
because it was reporting unexpected results for some contract lookups)pendulum
since it has been unmaintained for yearsbuy preview
output for margin impact and credit managementifthen
over at tradeapis) where you can specify any data field compared against any other data field then a command to run when the condition becomes true.if AAPL bid <= APPL low: buy AAPL 100 LMT
— if AAPL hits the LOD, just buy 100 shares immediately at the current priceif AAPL { bid <= ask }: say AAPL price at AAPL.bid
:23
you could have:if :23 delta >= 0.50: say delta going up
if AAPL ask >= AAPL high - 0.75: say AAPL near HOD again
if :23 { bid >= low + 5% }: say row 23 is 5% higher than the low again
if AAPL last >= (AAPL high + AAPL low) / 2: say AAPL is over half way between high and low
if :23 { ema:delta 300 > ema:delta 900 }: say 5 minute delta rising over 15 minute delta
ifthen
system can also consume an external websocket data feed if algo details are being generated somewhere else, so at runtime you can configure which websocket data details can trigger local actions instead of needing to update code for trigger actions.ITicker
objects for holding per-instrument price history stats, ema stats, atr stats, connections between option spreads and legs for calculating spread greeks more easily, and some alert details for when prices are sweeping through rangesinfo
output for all quote instruments (additional live stats and some derived interpretations of the live stats in addition to just contract details)clear today
for removing all quotes expiring today or olderclear expired
for removing all quotes older than todayclear unused
for removing all single leg option quotes not used by spread quotesclear options
for removing all options quotesalign
command for generating a family of spread quotes at once.align /ES
by default gives you: ATM strangle, 10 point wide straddle, call spread +10 ATM 20 points wide, put spread -10 ATM 20 points wide.Beta Was this translation helpful? Give feedback.
All reactions