{"id":162,"date":"2023-09-22T23:43:14","date_gmt":"2023-09-23T05:43:14","guid":{"rendered":"https:\/\/intelligenxe.com\/?page_id=162"},"modified":"2025-09-05T20:48:28","modified_gmt":"2025-09-06T02:48:28","slug":"trading-ai","status":"publish","type":"page","link":"https:\/\/intelligenxe.com\/?page_id=162","title":{"rendered":"Trading AI"},"content":{"rendered":"\n<p>The following AI (Artificial Intelligence) features are useful for trading and thus for the AI-TRADER development:<\/p>\n\n\n\n<p id=\"1\">T1<\/p>\n\n\n\n<figure class=\"wp-block-flexible-table-block-table alignwide is-content-justification-center is-style-default has-small-font-size\"><table class=\"\" style=\"width:75%;border-collapse:collapse;border-color:#000f83;border-style:solid\"><tbody><tr><td><strong>AI Freature: <\/strong>A deep-reinforcement-learning (DRL) AI agent\/model learns how to trade funds, almost like humans do &#8211; DRL<\/td><\/tr><tr><td style=\"background-color:#eefefe;text-align:left;vertical-align:top\"><strong>Feature Description: <\/strong><br>&#8211; DRL solves this optimization problem by maximizing the expected total reward from future actions over a time period.<\/td><\/tr><tr><td style=\"background-color:#fff\"><strong>Relevant Video(s) \/ Code(s) :<\/strong><br><a href=\"https:\/\/www.youtube.com\/watch?v=kbINj8fFyd0\">Ensemble AI Stock Trading with FinRL: Trade with Multiple AI Models<\/a><br><a href=\"https:\/\/github.com\/intelligenxe\/FinRL-type\/blob\/main\/FinRL_master.ipynb\">code<\/a><br><a href=\"https:\/\/arxiv.org\/ftp\/arxiv\/papers\/1803\/1803.03916.pdf\" data-type=\"link\" data-id=\"https:\/\/arxiv.org\/ftp\/arxiv\/papers\/1803\/1803.03916.pdf\">Paper<\/a> shows which performs best out of Stacked Gated Recurrent Unit (GRU), Long Short-Term Memory (LSTM) units, Convolutional Neural Network (CNN), and Multi-Layer Perceptron (MLP) (GRU-based agents used to model Q values show the best overall performance in the Univariate game to capture a wave-like price time series).<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p id=\"2\">T2<\/p>\n\n\n\n<figure class=\"wp-block-flexible-table-block-table alignwide is-content-justification-center is-style-default has-small-font-size\"><table class=\"\" style=\"width:75%;border-collapse:collapse;border-color:#000f83;border-style:solid\"><tbody><tr><td><strong>AI Freature: <\/strong>Having LLMs write all the necessary software to develop trading bots by just prompting trading strategies in regular\/human language &#8211; LLMs<\/td><\/tr><tr><td style=\"background-color:#eefefe;text-align:left;vertical-align:top\"><strong>Feature Description: <\/strong><br>&#8211; Incredibly easy regular language prompts\/written-commands may be used to have an LLM code trading models that include ensembles\/mixtures of historical predictor, sentiment analyzer, news video replay analyzer and others.<br>&#8211; The prompt may state to only output code as a response and to execute the code (the trading strategy) as an output.&nbsp;<br>&#8211; Occasionally the human-user\/trader may iteratively need to debug and install dependencies just by prompting the LLM.<br>&#8211; The resulting code may automatically call various relevant APIs and pull real time data to create the trading strategy.<br>&#8211; The workflow may be extended with AI agents monitoring market developments and updating and executing the code\/trading-strategies.<\/td><\/tr><tr><td style=\"background-color:#fff\"><strong>Relevant Video(s) \/ Code(s) :<\/strong><br><a href=\"https:\/\/www.youtube.com\/watch?v=6FQz7MDTogs\" data-type=\"link\" data-id=\"https:\/\/www.youtube.com\/watch?v=6FQz7MDTogs\">I Built an AI Trading Bot with Llama 2!<\/a> \/ <a href=\"https:\/\/colab.research.google.com\/drive\/1nrtTYHsP7lwKI7BtboOaxRJx_xRgW6Cv?usp=sharing\" data-type=\"link\" data-id=\"https:\/\/colab.research.google.com\/drive\/1nrtTYHsP7lwKI7BtboOaxRJx_xRgW6Cv?usp=sharing\">Code<\/a><br><a href=\"https:\/\/www.youtube.com\/watch?v=mfyXbWiNc0Y\" data-type=\"link\" data-id=\"https:\/\/www.youtube.com\/watch?v=mfyXbWiNc0Y\">I Built an AI Sports Betting Bot with ChatGPT<\/a><br><a href=\"https:\/\/www.youtube.com\/watch?v=bLrjfR5bvFc&amp;t=101s\" data-type=\"link\" data-id=\"https:\/\/www.youtube.com\/watch?v=bLrjfR5bvFc&amp;t=101s\">Can ChatGPT O1 Make Me Money?<\/a> \/ <a href=\"https:\/\/github.com\/llSourcell\/trading_strategy\" data-type=\"link\" data-id=\"https:\/\/github.com\/llSourcell\/trading_strategy\">Code<\/a><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p id=\"3\">T3<\/p>\n\n\n\n<figure class=\"wp-block-flexible-table-block-table alignwide is-content-justification-center is-style-default has-small-font-size\"><table class=\"\" style=\"width:75%;border-collapse:collapse;border-color:#000f83;border-style:solid\"><tbody><tr><td><strong>AI Freature: <\/strong>Traditional\/legacy trading may be replaced with algorithmic trading by levering the power of computers<\/td><\/tr><tr><td style=\"background-color:#eefefe;text-align:left;vertical-align:top\"><strong>Feature Description: <\/strong><br>&#8211; Algorithmic trading, also known as algo trading or automated trading, occurs when computer algorithms &#8212; not humans &#8212; execute trades based on predetermined rules.<br>&#8211; This type of trading attempts to leverage the speed and computational resources of computers relative to human traders.<br>&#8211; Pattern recognition in price candlesticks and other data may be used to trigger trades.<\/td><\/tr><tr><td style=\"background-color:#fff\"><strong>Relevant Video(s) \/ Code(s) :<\/strong><br><a href=\"https:\/\/www.youtube.com\/watch?v=2XQ3PsZActM\">Data Mining Candlestick Patterns With a Genetic Algorithm<\/a><br><a href=\"https:\/\/github.com\/bnsreenu\/python_for_microscopists\/blob\/master\/314_How_to_code_the_genetic_algorithm_in_python.ipynb\">Code 1<\/a><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p id=\"4\">T4<\/p>\n\n\n\n<figure class=\"wp-block-flexible-table-block-table alignwide is-content-justification-center is-style-default has-small-font-size\"><table class=\"\" style=\"width:75%;border-collapse:collapse;border-color:#000f83;border-style:solid\"><tbody><tr><td><strong>AI Freature: <\/strong>Machine learning may be used to predict stock price movements &#8211; Random Forest, XGboost<\/td><\/tr><tr><td style=\"background-color:#eefefe;text-align:left;vertical-align:top\"><strong>Feature Description: <\/strong><br>&#8211; Random forest or XGBoost may be applied to historical data in order to predict stock price movements. <\/td><\/tr><tr><td style=\"background-color:#fff\"><strong>Relevant Video(s) \/ Code(s) :<\/strong><br><a href=\"https:\/\/www.youtube.com\/watch?v=NCNXbAFbWn8\">A machine learning approach to stock trading | Richard Craib and Lex Fridman<\/a><br><a href=\"https:\/\/www.youtube.com\/watch?v=1O_BenficgE\">Predict The Stock Market With Machine Learning And Python<\/a> \/<a href=\"https:\/\/github.com\/dataquestio\/project-walkthroughs\/blob\/master\/sp_500\/market_prediction.ipynb\"> code<\/a><br><a href=\"https:\/\/www.youtube.com\/watch?v=lECB9LKFqh8\">Python AI Quant Trading for Crypto &#8211; XGBoost and Mean Reversion to test the strategy<\/a>\/ <a href=\"https:\/\/github.com\/puredatum\/Quant_XGBoost_MR\">code<\/a><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p id=\"5\">T5<\/p>\n\n\n\n<figure class=\"wp-block-flexible-table-block-table alignwide is-content-justification-center is-style-default has-small-font-size\"><table class=\"\" style=\"width:75%;border-collapse:collapse;border-color:#000f83;border-style:solid\"><tbody><tr><td><strong>AI Freature: <\/strong>Machine learning may be used for price chart pattern recognition &#8211; CNN<\/td><\/tr><tr><td style=\"background-color:#eefefe;text-align:left;vertical-align:top\"><strong>Feature Description: <\/strong><br>&#8211; Deep learning algorithms such as convolutional neural networks (CNN) may be used for the detection of patterns in price charts, even new\/unique patterns.<br>&#8211; Such technical analysis may be used to make trading decisions.<\/td><\/tr><tr><td style=\"background-color:#fff\"><strong>Relevant Video(s) \/ Code(s) :<\/strong><br><a href=\"https:\/\/www.youtube.com\/watch?v=HjScAwMelXQ\">Can Convolutional Neural Networks Predict Stock Prices?<\/a> \/ <a href=\"https:\/\/github.com\/moneygeek\/cnn-stock-prediction\">code<\/a><br><a href=\"https:\/\/www.youtube.com\/watch?v=mYNqikThZvQ\">ChatGPT Trading Strategy Made 19527% Profit ( FULL TUTORIAL )<\/a><br><a href=\"https:\/\/www.youtube.com\/watch?v=mG7fGKL-wzg\">How To Use AI Trading Patterns For Huge Profits<\/a><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p id=\"6\">T6<\/p>\n\n\n\n<figure class=\"wp-block-flexible-table-block-table alignwide is-content-justification-center is-style-default has-small-font-size\"><table class=\"\" style=\"width:75%;border-collapse:collapse;border-color:#000f83;border-style:solid\"><tbody><tr><td><strong>AI Freature: <\/strong>Trading financial instruments guided by financial markets sentiment analysis &#8211; ChatGPT<\/td><\/tr><tr><td style=\"background-color:#eefefe;text-align:left;vertical-align:top\"><strong>Feature Description: <\/strong><br>&#8211; The text in newspaper headlines, press releases, tweets, Reddit communities chats, traders\u2019 forums, etc. may be analyzed by LLMs to determine relevant market sentiment.<br>&#8211; In recent years this type of modeling has been greatly simplified\/abstracted by replacing embeddings models\u2019 pipelines with simply feeding the text to ChatGPT and asking this LLM to determine the sentiment.<br>&#8211; Sentiment analysis may be used to complement algorithmic trading.<\/td><\/tr><tr><td style=\"background-color:#fff\"><strong>Relevant Video(s) \/ Code(s) :<\/strong><br><a href=\"https:\/\/www.youtube.com\/watch?v=Vps-0LEa9SA\">Use ChatGPT API for Sentiment Analysis in Python<\/a> \/ <a href=\"https:\/\/gist.github.com\/financial-python\/d0034c44728f3a71a4904e70a2a77668\">code<\/a><br><a href=\"https:\/\/www.youtube.com\/watch?v=J5LWzFxXXbg&amp;t=181s\">Analyzing Cryptocurrency Sentiment on Twitter with LangChain and ChatGPT | CryptoGPT<\/a> \/ <a href=\"https:\/\/github.com\/curiousily\/CryptoGPT-Crypto-Twitter-Sentiment-Analysis-with-ChatGPT-and-LangChain\">code<\/a><\/td><\/tr><\/tbody><\/table><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>The following AI (Artificial Intelligence) features are useful for trading and thus for the AI-TRADER development: T1 T2 T3 T4 T5 T6<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"kt_blocks_editor_width":"","footnotes":""},"class_list":["post-162","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/intelligenxe.com\/index.php?rest_route=\/wp\/v2\/pages\/162","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/intelligenxe.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/intelligenxe.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/intelligenxe.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/intelligenxe.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=162"}],"version-history":[{"count":30,"href":"https:\/\/intelligenxe.com\/index.php?rest_route=\/wp\/v2\/pages\/162\/revisions"}],"predecessor-version":[{"id":907,"href":"https:\/\/intelligenxe.com\/index.php?rest_route=\/wp\/v2\/pages\/162\/revisions\/907"}],"wp:attachment":[{"href":"https:\/\/intelligenxe.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=162"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}