agents/

directory
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 17, 2026 License: MIT

Directories

Path Synopsis
Command breakoutagent runs the breakout strategies, each entry placed with its stop loss and take profit at the broker (mt5 or the paper wallet): atrbreakout (the breakouts of the recent range on an expansion of the volatility), fimathe (the first entry of the trend of the reference channel of each week of the Fimathe technique, its levels drawn on the chart), squeezebreakout (the release of a compression with the volume: the rules of the prompt breakout of the LLM agent, its stop loss moved by the R multiple of the position), and the signal strategies donchian, channel, adxdonchian, donchianatr, bbbreakout, keltner, volumebreakout, highlow and momentumbreakout, see strategies.NewSignal.
Command breakoutagent runs the breakout strategies, each entry placed with its stop loss and take profit at the broker (mt5 or the paper wallet): atrbreakout (the breakouts of the recent range on an expansion of the volatility), fimathe (the first entry of the trend of the reference channel of each week of the Fimathe technique, its levels drawn on the chart), squeezebreakout (the release of a compression with the volume: the rules of the prompt breakout of the LLM agent, its stop loss moved by the R multiple of the position), and the signal strategies donchian, channel, adxdonchian, donchianatr, bbbreakout, keltner, volumebreakout, highlow and momentumbreakout, see strategies.NewSignal.
internal
backtest
Package backtest runs a strategy of an agent over the candles of a period, as the controller asks for it (see Config), on a paper wallet and a feed of files only: never a broker.
Package backtest runs a strategy of an agent over the candles of a period, as the controller asks for it (see Config), on a paper wallet and a feed of files only: never a broker.
entryfilter
Package entryfilter filters the entries of the strategy of a family agent, whatever the strategy: a decorator of strategy.Strategy (see Wrap) handing the strategy a broker whose entries it asks first (see broker.go), so it behaves the same in a backtest, in paper and live.
Package entryfilter filters the entries of the strategy of a family agent, whatever the strategy: a decorator of strategy.Strategy (see Wrap) handing the strategy a broker whose entries it asks first (see broker.go), so it behaves the same in a backtest, in paper and live.
flaglist
Package flaglist reads the flags of a list the agents share.
Package flaglist reads the flags of a list the agents share.
newsguard
Package newsguard keeps an agent out of the market around the releases of the economic calendar, the news of the dashboard (the tab Notícias), for every agent, LLM or not: as the window of a release of a currency of a pair starts, the entries of the agent are held, the pending entries of the pair canceled and its position closed at the market; as no window holds any of its pairs any more, the entries are released.
Package newsguard keeps an agent out of the market around the releases of the economic calendar, the news of the dashboard (the tab Notícias), for every agent, LLM or not: as the window of a release of a currency of a pair starts, the entries of the agent are held, the pending entries of the pair canceled and its position closed at the market; as no window holds any of its pairs any more, the entries are released.
protect
Package protect protects the open positions of an agent: its breakeven and its trailing stop (see ui.ProtectionSettings), applied on every price the bot processes (see xtrader.CandleHook), and the ones the XTrader AI arms on a position, its trigger kept.
Package protect protects the open positions of an agent: its breakeven and its trailing stop (see ui.ProtectionSettings), applied on every price the bot processes (see xtrader.CandleHook), and the ones the XTrader AI arms on a position, its trigger kept.
remote
Package remote runs an agent launched by the controller (cmd/controller) with the settings and the records of the controller, which alone reaches the database, through its internal API (see agentapi): the flags of its settings, its secrets, the switches of its control panel and the prompt of an LLM agent as they change while it runs, and the storage of its orders, of its decisions and of its journal.
Package remote runs an agent launched by the controller (cmd/controller) with the settings and the records of the controller, which alone reaches the database, through its internal API (see agentapi): the flags of its settings, its secrets, the switches of its control panel and the prompt of an LLM agent as they change while it runs, and the storage of its orders, of its decisions and of its journal.
ta
Package ta holds the series of the technical analysis shared by the entry filters (agents/internal/entryfilter) and the features of the meta-labeling (agents/metalabel), following the conventions of Pine Script, as the helpers of the strategies do (agents/strategies/pine.go, unexported there): a missing value is NaN, the counterpart of Pine's na, comparisons involving NaN are false, and the recursive averages (EMA, RMA and everything built on them: ATR, RSI, DMI) are seeded with the SMA of their first length values, so they are NaN until then, like the built-ins.
Package ta holds the series of the technical analysis shared by the entry filters (agents/internal/entryfilter) and the features of the meta-labeling (agents/metalabel), following the conventions of Pine Script, as the helpers of the strategies do (agents/strategies/pine.go, unexported there): a missing value is NaN, the counterpart of Pine's na, comparisons involving NaN are false, and the recursive averages (EMA, RMA and everything built on them: ATR, RSI, DMI) are seeded with the SMA of their first length values, so they are NaN until then, like the built-ins.
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).
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).
llm
Package llm trades with a language model as its analyst.
Package llm trades with a language model as its analyst.
llmagent command
Package metalabel is the meta-labeling of the entries of a strategy (Marcos López de Prado, "Advances in Financial Machine Learning", 2018, §3.6): the strategy (the primary model) decides the side of an entry, and a second model, trained on the outcomes of its past entries, tells the probability that an entry reaches its target before its stop, from features of the market at the entry.
Package metalabel is the meta-labeling of the entries of a strategy (Marcos López de Prado, "Advances in Financial Machine Learning", 2018, §3.6): the strategy (the primary model) decides the side of an entry, and a second model, trained on the outcomes of its past entries, tells the probability that an entry reaches its target before its stop, from features of the market at the entry.
Command momentumagent runs the momentum strategies, each entry placed with its stop loss and take profit at the broker (mt5 or the paper wallet), the opposite signal closing it: adxema, macdtrend, emamacd, emarsiadx, rsitrend, stochpullback and papullback, see strategies.NewSignal; and rsi2 (the RSI 2 of Connors and Alvarez: the RSI 2 under 10 with the close above the SMA 200 a buy, over 90 under it a sell, closed on the close beyond the SMA 5, on the daily candles of the book, its stop loss and take profit a safety), see strategies.NewRSI2.
Command momentumagent runs the momentum strategies, each entry placed with its stop loss and take profit at the broker (mt5 or the paper wallet), the opposite signal closing it: adxema, macdtrend, emamacd, emarsiadx, rsitrend, stochpullback and papullback, see strategies.NewSignal; and rsi2 (the RSI 2 of Connors and Alvarez: the RSI 2 under 10 with the close above the SMA 200 a buy, over 90 under it a sell, closed on the close beyond the SMA 5, on the daily candles of the book, its stop loss and take profit a safety), see strategies.NewRSI2.
Command trendagent runs the trend following strategies: trendconfluence (RK Trend Confluence), matrend (MA Trend: the break of the SMA 200 with the EMA 9/21 on its side), emapullback (the pullbacks to the fast EMA in a trend of two EMAs), fibonacci (the pullbacks of the impulses to their Fibonacci retracements), trendpullback (the end of the pullbacks of the trend of the EMA 9/21 over the SMA 200, confirmed by the momentum: the rules of the setup trend_pullback of the prompt default of the LLM agent, its stop loss moved by the R multiple of the position), and the signal strategies emacross, ema200, ribbon, supertrend, emasupertrend, psarema, atrtrailing, ichimoku, ichimokuadx, mtftrend and mtfema, see strategies.NewSignal, and consensus (a quorum of the rules of the signal strategies firing the same side within a few candles, none of them the other side), see strategies.NewConsensus.
Command trendagent runs the trend following strategies: trendconfluence (RK Trend Confluence), matrend (MA Trend: the break of the SMA 200 with the EMA 9/21 on its side), emapullback (the pullbacks to the fast EMA in a trend of two EMAs), fibonacci (the pullbacks of the impulses to their Fibonacci retracements), trendpullback (the end of the pullbacks of the trend of the EMA 9/21 over the SMA 200, confirmed by the momentum: the rules of the setup trend_pullback of the prompt default of the LLM agent, its stop loss moved by the R multiple of the position), and the signal strategies emacross, ema200, ribbon, supertrend, emasupertrend, psarema, atrtrailing, ichimoku, ichimokuadx, mtftrend and mtfema, see strategies.NewSignal, and consensus (a quorum of the rules of the signal strategies firing the same side within a few candles, none of them the other side), see strategies.NewConsensus.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL