Documentation
¶
Overview ¶
Command intradayagent runs the intraday strategies of the sessions, each entry placed with its stop loss and take profit at the broker (mt5 or the paper wallet), in ATR from the entry close, on their own timeframe, 5m, unless -timeframe says otherwise: orb (the opening range breakout), asialondon (the Asia range broken in London), vwap (the reclaim and the reject of the VWAP of the session, -setup reject trading the continuation of its trend), sweep (the sweeps of the liquidity of the swings) and zscore (the reversion of the Z-Score of the close); and the rules of prompts of the LLM agent, their stop loss and take profit set by each, moved by the R multiple of the position: meanreversion (the rejections of the Bollinger Bands of a range back to its mean, 15m), scalp1m (the micro pullbacks of the micro trend, 1m) and scalp1mbtc (the strong bursts of momentum, for a spread wide next to the moves, 1m); and newsbreakout (the breakout of the range after the scheduled economic releases, the rules of orb on it, the releases given by the runner, 5m), seasonality (the intraday bias of fixed windows of the day, measured walk-forward, 15m), volumeprofile (the 80% rule of the value area of the volume profile of the previous session, 30m), cmegap (the weekend gap of the CME faded back to its Friday close, 1h) and pairs (the spread of the two pairs of the agent, leg A and leg B in the order of -pair, traded back to its mean on its Z-Score, 1h: the log of the ratio of their prices, its legs of equal value, or with -pairs-hedge ols the residual of the regression of their logs, leg B worth β times leg A; no stop loss nor take profit at the broker). See runner.Run for the shared flags:
go run ./agents/intradayagent -strategy orb -pair XAUUSDm -csv xau-5m.csv -lot 0.01 go run ./agents/intradayagent -strategy asialondon -mode paper -pair XAUUSDm \ -stop-atr 1 -take-profit-atr 2 -position-fraction 0.1 go run ./agents/intradayagent -strategy vwap -setup reject -mode paper \ -pair BTCUSDm -timeframe 15m -lot 0.01 # newsbreakout, the breakouts of the 15 minutes after the releases of # high importance: the releases come only to the agent launched by the # controller (live or paper, those of the news tab) or run by a backtest # of the controller (those of its period); run on its own as below, it # gets none and never enters, telling that it waits for them go run ./agents/intradayagent -strategy newsbreakout -mode paper -pair XAUUSDm -lot 0.01 \ -newsbreakout-importance high -newsbreakout-wait 15m -newsbreakout-expiry 1h # the London fixes of gold and the open of New York, traded where their # bias of the last 60 days has a t statistic of 2 at least go run ./agents/intradayagent -strategy seasonality -mode paper -pair XAUUSDm -lot 0.01 \ -seasonality-days 60 -seasonality-min-t 2 # the value area of the CME trading day, from 17:00 of New York go run ./agents/intradayagent -strategy volumeprofile -mode paper -pair XAUUSDm -lot 0.01 \ -volumeprofile-anchor 17:00 -volumeprofile-timezone America/New_York go run ./agents/intradayagent -strategy cmegap -mode paper -pair BTCUSDm -lot 0.01 \ -cmegap-min-gap-atr 0.5 # gold against silver, the lots balancing the notionals of the two legs go run ./agents/intradayagent -strategy pairs -mode paper -pair 'XAUUSDm;XAGUSDm' \ -lot 'XAUUSDm=0.01;XAGUSDm=0.02' -pairs-entry-z 2 -pairs-exit-z 0 # the residual of the regression of their logs: silver sized by β, in # steps of 0.01 lot, its lot here go run ./agents/intradayagent -strategy pairs -mode paper -pair 'XAUUSDm;XAGUSDm' \ -lot 'XAUUSDm=0.10;XAGUSDm=0.01' -pairs-hedge ols
Launched by the controller, the live mode takes the same flags from the settings of the agent in its database.