Using AI in Trading: How Computer Programs Decide When to Buy and Sell

 
Artificial intelligence (AI) is changing the way we buy and sell in the stock market. This discussion is about understanding how computers use AI to make quick trading decisions.

We will look into how AI can spot patterns in the market, make predictions, and decide when it’s a good time to trade. We’ll talk about the different ways AI learns about the market, including both learning from examples and figuring things out on its own. We’ll also discuss how AI can help traders manage risks and make better decisions.

Here are some questions to get us started:

1. How do AI systems use market data to decide when to buy or sell? This question will help us understand the steps AI takes to make trading decisions.
2. What makes AI trading different from traditional ways of trading? 
3. How can we trust AI to make trading decisions, and what can we do to make sure it’s making good choices? 
4. Can AI help us avoid losing money, and how? 
5. What should we think about when AI makes trading decisions? Are there any rules or guidelines we should follow? 

Hope we can continue this discussion and create a small project together. 
Waiting for some people to join.
 

Some people say that AI is not an Ai, and it is logictic script (and it is too far from AI for now for any such as "AI").

  • Some discussion about AI (and machine learning in trading) is going on this thread:
    Machine learning in trading: theory, models, practice and algo-trading (3753 pages in the thread; about coding, using, and so on, means: professional discussion; because almost all the participants wrote many articles here about machine learning and an AI for example).
  • The next thread (just a discussion, thing about coding and trading): AI 2023. Meet ChatGPT. (212 pages in the thread)
  • and there are some more.

So, it was already disccussed since 2016 (for information), and the discussing/coding/using/etc are continuing every day.

Machine learning in trading: theory, models, practice and algo-trading - How to build a trading algorithm?
Machine learning in trading: theory, models, practice and algo-trading - How to build a trading algorithm?
  • 2016.05.26
  • Alexey Burnakov
  • www.mql5.com
Introduction: to build a trading algorithm, you need to know what factors will be the basis for predicting the price, or the trend, or the trade opening direction. If someone decides or at least come close to the right solution (that is, the topic will be alive), then i: will post the correct solution - the algorithm for generating the dataset
 
Shahrokh Firouzi:
Here are some questions to get us started:

Yes, just to start -

------------------------

Machine Learning and Neural Network

Neural Network: discussion/development threads

  1. Machine Learning and Neural Networks - key forum thread
  2. Better NN EA development thread with indicators, pdf files and so on.
  3. Better NN EA final thread 
  4. taking NEURAL NETWORKS to the NEXT LEVEL - very interesting thread
  5. Neural Networks thread (good public discussion)
  6. How to build a NN-EA in MT4: usefull thread for developers.
  7. Radial Basis Network (RBN) - As Fit Filter For Price: the thread 

Neural Network: Indicators and systems development

  1. Self-trained MA cross!: development thread for new generation of the indicators
  2. Levenberg-Marquardt algorithm: development thread

Neural Network: EAs

  1. CyberiaTrader EA: discussion thread and EAs' thread.
  2. Self learning expert thread with EAs' files here.
  3. Artificial Intelligence EAs threads: How to "teach" and to use the AI ("neuron") EA thread and Artificial Intelligence  thread
  4. Forex_NN_Expert EA and indicator thread.
  5. SpiNNaker - A Neural Network EA thread

Neural Network: The Books

  1. What to read and where to learn about Machine Learning (10 free books) - the post.

The article

CodeBase

Neural networks made easy (Part 66): Exploration problems in offline learning
Neural networks made easy (Part 66): Exploration problems in offline learning
  • www.mql5.com
Models are trained offline using data from a prepared training dataset. While providing certain advantages, its negative side is that information about the environment is greatly compressed to the size of the training dataset. Which, in turn, limits the possibilities of exploration. In this article, we will consider a method that enables the filling of a training dataset with the most diverse data possible.
 
Shahrokh Firouzi:
Artificial intelligence (AI) is changing the way we buy and sell in the stock market. This discussion is about understanding how computers use AI to make quick trading decisions.

We will look into how AI can spot patterns in the market, make predictions, and decide when it’s a good time to trade. We’ll talk about the different ways AI learns about the market, including both learning from examples and figuring things out on its own. We’ll also discuss how AI can help traders manage risks and make better decisions.

Here are some questions to get us started:

1. How do AI systems use market data to decide when to buy or sell? This question will help us understand the steps AI takes to make trading decisions.
2. What makes AI trading different from traditional ways of trading? 
3. How can we trust AI to make trading decisions, and what can we do to make sure it’s making good choices? 
4. Can AI help us avoid losing money, and how? 
5. What should we think about when AI makes trading decisions? Are there any rules or guidelines we should follow? 

Hope we can continue this discussion and create a small project together. 
Waiting for some people to join.

  1. You give the system examples of successful trades and it tries to mimic the "function" that decides on those trades.think of it this way , you provide it with the desired outcome and with everything you knew at that point in time for that outcome before the outcome . It tries to create a giant equation that results in trading or not.It's mathematical programming essentially.
  2. It will adapt when you provide more examples or as it collects examples live.
  3. You can't make sure . The latent space the training will create may have some unwanted reactions in it , all within the buy sell close scope of course . In order to anticipate everything you must "browse" the entirety of the latent space . If you could do that however you would also have the processing power available to brute force the solution in the first place.(or hack into satoshi nakamoto's wallet)

4+5 no comment . 

The best place to start is python . 

There is also pytorch lightning and aws because you will need a lot of horse power.

 

Some simplifications :

the neural networks have 2 ends , the input side and the output side .

How you train them is you provide a list of observations to the input side and a list or one item that was the outcome to the output side.

It then tries to adjust all connections between the 2 sides so that when you provide observations to the input side it will forecast the list of outcomes to the output side.

for instance .

you give it the list of observations 2 ,2 and the outcome 4

It could be 2*2 or 2+2 it does not know

you then give it another example 3,3 and the outcome 6

it then get's clearer . etc.

But imagine the list of observations in your case would be indicator values BEFORE the trade and on the output side the desired decision (buy , sell , nothing)

It is important for the list of observations provided to have been possible in the past . I've seen a guy trying to guess the outcome of football matches by using the stats of the completed football match. so caution there.

It has to be said however that training a neural network is the equivalent of scoring a 3 point shot from a different stadium.That's where the "horse power" requirements come in .You need to be burning through failed iterations fast 

Another aspect is for a given problem we do not know what the equivalency of 2,2=4 and 3,3=6 is for the problems we are trying to solve . In the example we know we are supposed to add and how "fundamentally" different 2,2 and 3,3 are . But in a problem we want to solve it is like sailing in uncharted territory

Reason: