RTS Alpha Executive #2

Open
opened 2025-02-09 23:51:15 +00:00 by m · 3 comments
Owner

Create a language for defining how rules should be executed.

Focus on being able to backtest using this, even where sentiment, asset groups, etc are concerned.
This will require a shift of responsibility in asset groups from Neptune into Fisk, along with a direct Manticore querying system.

Create a language for defining how rules should be executed. Focus on being able to backtest using this, even where sentiment, asset groups, etc are concerned. This will require a shift of responsibility in asset groups from Neptune into Fisk, along with a direct Manticore querying system.
Author
Owner

Notes:

Alpha:
m store_interval: interval to keep in memory
60 store_size: size of lookback in interval
rules: list of rules

Rule:
lock_in: lock in for x periods
defs: definitions for the rule that all have to be true

Def:
varA: A
varB: B
comparison: ==, <, >
varASpecial: Look Back, Sum
varBSpecial: ...

Notes: Alpha: m store_interval: interval to keep in memory 60 store_size: size of lookback in interval rules: list of rules Rule: lock_in: lock in for x periods defs: definitions for the rule that all have to be true Def: varA: A varB: B comparison: ==, <, > varASpecial: Look Back, Sum varBSpecial: ...
Author
Owner

Monolith RTS OHLC Reframer
-> Fisk RTS
-> in memory: x m: 60m
(60 x 1 minute complete sticks from Monolith RTS)
-> last one recalculated from RTS secondly until that closes, then POPL

on step
-> recalculate ma 10, 100
-> add to each point (or keep separate)
-> go through rules
-> if all rules match, trigger

Monolith RTS OHLC Reframer -> Fisk RTS -> in memory: x m: 60m (60 x 1 minute complete sticks from Monolith RTS) -> last one recalculated from RTS secondly until that closes, then POPL on step -> recalculate ma 10, 100 -> add to each point (or keep separate) -> go through rules -> if all rules match, trigger
Author
Owner

Backtest notes
Factors

  • TOHLCVA replay
  • Asset Groups -> get_rule_id & look up
  • Trading Time -> Check time

Override market methods to line up with replay

OHLC entry

Asset Groups -> get last relevant entry before ts and replay through engine

Trading Time -> use OHLC ts

Risk -> override marker methods to simulate

Long 1 @ 1.00
get_balance = (long - short) x price
store trade buy price

tick

price @ 2.00

profit = (buy price - price) x position

exit
recalc profit

profit += profit

Backtest notes Factors * TOHLCVA replay * Asset Groups -> get_rule_id & look up * Trading Time -> Check time Override market methods to line up with replay OHLC entry Asset Groups -> get last relevant entry before ts and replay through engine Trading Time -> use OHLC ts Risk -> override marker methods to simulate Long 1 @ 1.00 get_balance = (long - short) x price store trade buy price tick price @ 2.00 profit = (buy price - price) x position exit recalc profit profit += profit
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: XF/fisk#2
No description provided.