Neural Network Strategy – Trading Strategies – 24 July 2023

I am planning to study a strategy using algorithms such as neural networks, described as follows

  • Step 1: Read the full historical data of 1 currency pair in the past for example XAUUSD
  • Step 2: Process that data into a redefined data, which is intended as input data for step 3.
  • Step 3: Build a logical algorithm that scans the data in the past and compares the data at the present time, then makes a buying and selling decision

1. I will describe each step in more detail below

In step 1:

  Re-reading data from the past is simple because MT5 always provides data from the past for each tick

  However, this data is large because it provides details about the price per tick, which in turn slows down the trading process.

  So Step 2 will be needed to process this data so that it is simpler and lighter in size and faster to process

2. Process price history data processing

In step 2;

First we have to define what the ultimate purpose of the data is.

  In this case: My purpose is to separate out which point to buy, which point to sell, take profit at which point, stop loss at which point, at that time, what is the RSI, MA, CCI, ATR Ask price, Bid price.

  It’s like you watch a movie again and you can completely know the segments in the movie from which you pick out the necessary points and save and create a more concise movie summary (like the Film Review clips).

  The meaning of this treatment is: Construct how situations have happened in the past, these situations have clear answers.

  • The scenarios here are: RSI, MA, CCI, ATR, Ask/Bid price
  • The answers are: Entry Buy/Sell, Takeprofit/Stoploss

More optimized:

  Determine the processing point.

For example a road 1 million meters long, we cannot process every millimeter. So let’s cut it up every 1km and we’ll take a situation there.

In my case: for every 1000Point will choose a situation

  Create an attribute that classifies data with a degree of accuracy

How to do: after creating the above data array, we continue to process the data to be more optimized as follows:

If the situations occur and the results occur more often and are similar to each other to a greater extent, then the situation is appreciated, i.e. high accuracy.

(Make your own rules and regulations for this assessment.)

Here for simplicity I only classify with 3 levels: Low, Medium, High

This data will be the model to use for step 3

3. Process data and make trading decisions

In step 3:

  Determine the processing point. Similar: for every 1000Point will choose a situation

  We will compare current situations with past situations, if it is the same then make the same decisions as the results had in the past.

  Speak in more detail:

  We compare the current indicators (RSI, MA, CCI, Ask/Bid price) through all the past situations created in step 2 i.e. RSI, MA, CCI, Ask/Bid price).

  If similar to all indices with similarity, for example greater than 90%, then execute Buy/Sell, Takeprofit/Stoploss orders as in the past data.

  Note how dynamic you can allow customization if you want.

In this step it will happen 2 cases

Case 1:

   The current result is the same as the result in the past data, then we save the situation and the result again into the past data array.

Case 2:

   Current result is not correct, unlike past data we correct this situation and save result in past data array

   Optimization: For faster browsing

Choose to browse by category of historical data accuracy first.

Compare with the past situation with high accuracy first, if there is no case then go to medium level, continue to go to low level, if no situation add step 4

4. Refresh update new data

  in step 4: We can handle as follows, every 100,000Point ie experiencing 100 situations, we can repeat step 1 and step 2.

The purpose is to refresh the data, get new data, and from there the data becomes more and more accurate

It’s the algorithm described in words:

I will rely on these basic descriptions to build an automated strategy, during the construction process, there will certainly be many problems that need to be handled, maybe the completion time will be longer than expected.

Looking forward to your comments and support

Please follow to receive new notifications

My channel: https://www.mql5.com/en/channels/autocontroltrade

Source link

Comments are closed.