# Fetching Information Source: https://docs.luxalgo.com/docs/ai-backtesting/fetching-information ![](https://mintlify.s3.us-west-1.amazonaws.com/luxalgo/public/images/ai-backtesting/fetching-information/smart_trail.png) The AI Backtesting Assistant is able to fetch our product documentation to provide relevant information to you about the features used by a retrieved strategy or to simply help you learn more about our products. The AI will automatically determine whether it requires fetching context from the documentation depending on the user query. You can force the AI to fetch information from the documentation by telling it to fetch the documentation. For example: > Tell me more about confirmation signals, use the documentation This can prevent the AI from giving partial information he might know from his existing context window. ## Detailed Strategy Descriptions Using Docs ![](https://mintlify.s3.us-west-1.amazonaws.com/luxalgo/public/images/ai-backtesting/fetching-information/explanation.png) We can request for the AI to provide important context about the conditions returned by a trading strategy. ## Using Docs to Get Tailored Strategies By asking the AI to learn more about the LuxAlgo features from the documentation, we can effectively get unique trading strategies by simply mentioning trading styles. For example, we can use the following prompt: > From the documentation search for the best features for swing trading, then find a strategy using those features that provides good results on crypto on the hourly timeframe # Fetching Strategies Source: https://docs.luxalgo.com/docs/ai-backtesting/fetching-strategies The primary role of the AI Backtesting Assistant is to help users find strategies quickly without having to manually iterate through various conditions, tickers, and timeframes on TradingView charts. Instead, users can simply ask the AI to look for the strategy that would best match the criteria they want. The AI Backtesting Assistant has access to millions of unique strategies, each made using a wide variety of conditions. This AI tool’s backtesting data & analytics are for informational purposes only and do not constitute financial advice or recommendations to buy or sell any financial product, including but not limited to securities, derivatives, cryptocurrencies, or other investment instruments. This tool may contain errors, and past performance is not indicative of future results. Always conduct your own research and consult with a professional financial advisor. LuxAlgo is not liable for any decisions made based on any information given. Read our [full disclaimer](https://www.luxalgo.com/legal/disclaimer/). ## Strategies Configuration Strategies are evaluated using a maximum of the most recent 20.000 bars, with an initial capital of 10.000 base currency, without commissions/slippage, and using default settings for all toolkits features. Unit position sizing is used across all tickers. When a strategy enters a trade, any previous trade is closed. As such, it is not possible for two positions to be open at the same time. Strategies do not make use of stop losses or take profits. See the section below to learn more about the supported tickers, timeframes, and backtesting conditions. ### Supported Tickers The following tickers are supported: * AAPL * AMD * AMZN * BABA * CELH * COIN * CRWD * DIS * DUOL * GME * GOOG * HOOD * INTC * MA * META * MSFT * MSTR * NFLX * NKE * NVDA * ORCL * PLTR * PYPL * RIVN * SMCI * SNOW * SOFI * TSLA * UBER * WMT * ARKK * IWM * QQQ * SPY * VTI * AAVEUSDT (Binance) * ADAUSDT (Binance) * ALGOUSDT (Binance) * ATOMUSDT (Binance) * AVAXUSDT (Binance) * BCHUSDT (Binance) * BNBUSDT (Binance) * BTCUSDT (Binance) * DOGEUSDT (Binance) * DOTUSDT (Binance) * EOSUSDT (Binance) * ETHUSDT (Binance) * HBARUSDT (Binance) * HYPEUSD (Kucoin) * JUPUSDT (Binance) * KASUSD (Kucoin) * LINKUSDT (Binance) * LTCUSDT (Binance) * MATICUSD (Coinbase) * SHIBUSDT (Binance) * SOLUSDT (Binance) * SUIUSDT (Binance) * TONUSDT (Binance) * TRXUSDT (Binance) * UNIUSDT (Binance) * VETUSDT (Binance) * XLMUSDT (Binance) * XRPUSDT (Binance) * AUDJPY * AUDUSD * EURAUD * EURGBP * EURUSD * EURJPY * GBPAUD * GBPJPY * GBPUSD * NZDUSD * USDCAD * USDCHF * USDJPY * XAGUSD * XAUUSD * UKOIL * NQ * ES * RTY * YM * GC * SI * CL * NG * PL * ZC * ZW * ZS * 6E * 6J US equities (Stocks and ETFs) data is sourced from Cboe BZX and use regular trading hours. Futures are based on continuous contracts and use electronic trading hours, without adjustment for contracts changes. Additionally, unlike TradingView, Futures contracts roll on the day prior to expiration. ### Supported Timeframes 5m, 15m, and 60m timeframes are supported. ## Strategy Entry and Exits Constructions Strategy entry conditions can make use of multiple conditions from different toolkits together. We classify conditions as triggers and filters: * Triggers: Triggers determine the initial conditions used by a strategy. These tend to be less persistent events on a chart, occurring for a single bar. * Filters: Filters add precision to a strategy, potentially filtering out bad trades that would have been taken by simply using triggers. Filters tend to be more persistent, lasting for multiple bars on a chart. Entry conditions contain a single trigger, and can contain up to two filters. It is possible for a long/short entry condition to contain both bullish and bearish conditions Long and short entry conditions mirror each other, that is, if the long entry condition uses a bullish condition, the short entry condition will use the same condition but bearish. Example: > * long: **Confirmation Any Bullish** and **Bullish Smart Trail** and **Bearish Trend Tracer** > * short: **Confirmation Any Bearish** and **Bearish Smart Trail** and **Bullish Trend Tracer** Finally, it is possible that some strategies using conditions from the Signals & Overlays® toolkit use exits condition to close trades. ### Signals & Overlays® Conditions *** #### Triggers * Confirmation Any Bullish * Confirmation Normal Bullish * Confirmation Strong Bullish * Contrarian Any Bullish * Contrarian Normal Bullish * Contrarian Strong Bullish * Smart Trail Switch Bullish * Price Cross Under Reversal Zones S1 * Trend Tracer Switch Bullish * Trend Catcher Switch Bullish * Neo Cloud Switch Bullish * Confirmation Any Bearish * Confirmation Normal Bearish * Confirmation Strong Bearish * Contrarian Any Bearish * Contrarian Normal Bearish * Contrarian Strong Bearish * Smart Trail Switch Bearish * Price Cross Over Reversal Zones R1 * Trend Tracer Switch Bearish * Trend Catcher Switch Bearish * Neo Cloud Switch Bearish #### Filters * Confirmation Uptrend * Contrarian Uptrend * Bullish Smart Trail * Price Below Reversal Zones S1 * Trend Tracer Bullish * Trend Catcher Bullish * Neo Cloud Bullish * Confirmation Downtrend * Contrarian Downtrend * Bearish Smart Trail * Price Above Reversal Zones R1 * Trend Tracer Bearish * Trend Catcher Bearish * Neo Cloud Bearish * Trend Strength Trending * Trend Strength Ranging #### Exits Strategies using the Signals & Overlays® toolkit can make exit trades which are outlined below: * Any strategy using Confirmation Signals can make use of builtin-exits labelled as "Confirmation Built-in Exits". * Any strategy using Contrarian Signals can make use of builtin-exits labelled as "Contrarian Builtin Exits". * Any strategy using Reversal Zones can make use of the exit condition "Price Cross R1/S1 Average", which will exit a trade when price crosses the average of the Reversal Zones. ### Price Action Concepts® Conditions *** Currently only triggers are supported for the Price Action Concepts® toolkit. #### Triggers * Bullish CHoCH * Bullish BOS * Bullish OB Entered * Bullish OB Exited * New Bullish FVG * Bearish FVG Mitigated * New Bullish Opening Gap * Bearish Opening Gap Mitigated * New Bullish Volume Imbalance * Bearish Volume Imbalance Mitigated * Bullish Liquidity Grab * Bearish Trendline Break * Bearish CHoCH * Bearish BOS * Bearish OB Entered * Bearish OB Exited * New Bearish FVG * Bullish FVG Mitigated * New Bearish Opening Gap * Bullish Opening Gap Mitigated * New Bearish Volume Imbalance * Bullish Volume Imbalance Mitigated * Bearish Liquidity Grab * Bullish Trendline Break ### Oscillator Matrix® Conditions *** #### Triggers * New Bullish Overflow * Money Flow Crossing Over 50 * HyperWave Oversold Bullish Signal * HyperWave Crossing Over 80 * HyperWave Crossing Over 50 * Reversal Any Up * New HyperWave Bullish Divergences * New Bearish Overflow * Money Flow Crossing Under 50 * HyperWave Overbought Bearish Signal * HyperWave Crossing Under 20 * HyperWave Crossing Under 50 * Reversal Any Down * New HyperWave Bearish Divergences #### Filters * Bullish Overflow * Money Flow Above 50 * HyperWave Above 80 * HyperWave Above 50 * Strong Bullish Confluence * Weak Bullish Confluence * Bearish Overflow * Money Flow Below 50 * HyperWave Below 20 * HyperWave Below 50 * Strong Bearish Confluence * Weak Bearish Confluence ## How To Fetch Strategies Interacting with the AI Backtesting Assistant is straightforward. All users need to do is type a prompt in the chat box located at the bottom of their screen. Here are examples of prompts that will trigger the AI Backtesting Assistant to retrieve a trading strategy: * What is the best performing strategy across all crypto tickers on the 5-minute timeframe? * Give me three strategies using fair value gaps that have a winrate above 80%. * Find a strategy with above average net profit but below average drawdown. Users can also click on one of the suggested prompts in the search group located above the input prompt. The AI can access the following backtesting results for strategies: * Net Profit * Max Net Profit * Closed Trades * Winning Trades * Losing Trades * Winrate * Gross Profit * Gross Loss * Profit Factor * Max Drawdown * Max Drawdown Percent * Average Trade * Average Winning Trade * Average Losing Trade Due to calculations being sensitive to data differences, our Drawdowns calculations are based on realized profits/losses, which is not the case on TradingView, this can explain why certain differences can be observed. These results will be returned in a component in the chat. Strategy Results If multiple strategies are returned, they will all be located within a table. A maximum of 3 strategies can be returned in a table at once, while a maximum of three strategies can be returned from a single fetching operation. If the AI needs to fetch more than 3 strategies it will fetch strategies sequentially. The AI can also access to the following information from a strategy: * Strategy begins at: When the strategy started being evaluated * Strategy current position: Long, short, or flat if no positions are currently open ### Fetch Statistics Across The Entire Strategy Population The AI can get general statistics and data across the whole population of strategies it has access to. Example of prompts doing this are: * What is the total net profit of all bitcoin strategies you have? * On BTCUSD, are strategies using normal Confirmation signals better than the ones using strong Confirmation signals overall? * What is total net profit of profitable strategies across stocks? This can be useful to get big picture information about strategies. Do note that such prompts can lead to high wait time for the results. ## Reproducing a Strategy on TradingView Once you get a strategy you like, you may be inclined to add it to your chart to visualize it and further optimize its results on TradingView. To do so, simply click on the TradingView logo located near the ticker symbol for the single strategy component, and to the right of a hovered row on a table containing strategies. This will open a dialog box containing all the steps required to get the strategy on TradingView, as well as the scripted strategy which you must copy and paste to the relevant backtester. A strategy using multiple conditions from at least two toolkits will require using LUCID connectors, learn more about LUCID connectors [here](/docs/backtesters/strategy-scripting/lucid-connectors). If replicating a strategy involves making use of LUCID conectors, **make sure you enable the relevant features**, for example, if a strategy using the **Trend Catcher** requires using the LUCID connector of the **Signals & Overlays** toolkit, make sure the Trend Catcher overlay is enabled in the toolkit settings. We compute strategies using data that might different from the one on TradingView, which can limit the reproducibility of strategies returned by the AI. Some users might not be able to reproduce exact strategy results due to the limitation on how much data certain users can access. ## Saving Strategies Strategies can be saved in the sidebar by clicking on the star icon located near the ticker symbol for the single strategy component, and to the right of a hovered row on a table containing strategies. Additionally, strategies returned in a table can be exported as a CSV file. ## Prompting Tips The AI can make mistakes when fetching strategies, as this is a very complex process depending on the user query. We will always aim to improve the AI Backtesting Assistant over time; however, the following tips can help you get the most from our AI. ### Make Detailed Queries Make sure to detail every aspect of the strategy you want to fetch if you have a precise one in mind, for example: | Original | Improved | | ------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------- | | Fetch a strategy that uses Confirmation Signals | Fetch a strategy that only uses Confirmation Signals and no other conditions | | I want a PAC strategy that goes long on a new FVG, and CHoCH | I want a PAC strategy that goes long when:

- Step 1: a new bullish FVG occur
- Step 2: a bullish CHoCH occur | | I want the best strategy | I want the strategy with the highest net profit on BTCUSD 5 minute | Context and details will help the AI avoid making guesses about your query. ### Encourage the AI to Improve The AI Backtesting Assistant can be fairly self-aware if a fetched strategy doesn't meet a user criteria, and will then retry. But if the AI response is clearly mistaken, then it can be good to let it know using a prompt encouraging re-evaluation of the fetching process: > The strategy your returned is not the one I want. Correct the issue in your fetching process and retry to fetch the strategy in accordance with my query. ### Split Complex Queries Into Multiple Tasks The AI will be more prone to mistakes if the query is complex, as such, it is best to do follow-up messages asking about the details of a strategy rather than asking the AI to give those alongside other information. For example: > Return a good strategy on BTCUSD, alongside the average net profit of all strategies on BTCUSD that use Confirmation signals, then tell me what the highest winrate strategy is, using the same conditions as the first one The AI Backtesting Assistant might provide more relevant answers if we let context accumulate by splitting and re-ordering our initial query into multiple ones: Return a good strategy on BTCUSD Find the strategy with the highest winrate that use the same exact entry conditions returned previously Return the average net profit of all strategies on BTCUSD that use Confirmation Signals. # Introduction Source: https://docs.luxalgo.com/docs/ai-backtesting/introduction