Hello, welcome back to my blog about automated trading. Last time I was connecting building the neural network based up on the technical indicators. This produced a dissapointing result. Therefore I have decided to take the step back and look in more detail to some of the technical indicators.
For the source code example, please download repository and update to branch 14-visualization, changeset 694ec142c4d2. There is a test application ObservationGraphDataGeneratorApp which downloads quotes and generates csv data files (for intraday part you will need to change historical provider). Now in /data directory there are 2 files - MSFT-daily.csv and MSFT-intraday.csv with observations extracted from Microsoft historical data.
Together with this downloader I have developerd also application for visualization which can be found on enterprisemath.com.
Looking to the blue line, it suggest that for successful trades the most of time minumum is happening before the lunch time. And definitelly it is better to close trade if new low is reached after 2 pm. Then the second is the difference between open and low price for the day. Look to the picture.
Again the blue line suggest to set up stop loss somewhere around open - 0.56 (I haven't calculated it exactly). If this price goes below this low it is better to accept loss and close the trade. In the similar way I can make it with daily highs and discover the good closing time and target prices.
That's it for today. For the next week I am going to build trading algorithm using this knowledge. Thank you for reading!!!
For the source code example, please download repository and update to branch 14-visualization, changeset 694ec142c4d2. There is a test application ObservationGraphDataGeneratorApp which downloads quotes and generates csv data files (for intraday part you will need to change historical provider). Now in /data directory there are 2 files - MSFT-daily.csv and MSFT-intraday.csv with observations extracted from Microsoft historical data.
Together with this downloader I have developerd also application for visualization which can be found on enterprisemath.com.
What I was searching
I was serching for daily based technical indicators which would increase my chance for success during the next trading day. I want to open and close position within that day to avoid the overnight risk. Reality is that none of the daily based technical incators seems to be usefull for this type of trading. So let's look at the reasons.
First I have analyzed past 3 years of Microsoft stocks. During that period stock price went from about 35 to 50. First I have discovered that there are nearly same number of days when price was rising or falling. This can be shown in the next picture.
What does this means? This means if I open position early in the morning and close it before the market closes, then my chances for success are 50/50 (without consideration the size of P&L). Now let's look at it even more. I put this into the relation with popular technical indicators. All the situations looked pretty much as the following graph.
To increase success rate I would need to find areas where blue is higher than the black one. I haven't find any single case. This essentially means that technical indicators (daily based) will not help me at all with this type of trading no matter how good prediction framework I use. So let's forgot about them and see look at this from the different point.Possible helpers for trading
Daily technical indicators seems not be very helpful. But with intraday data i found 2 cases which migh be useful. First one is the minute which contains the daily low.Looking to the blue line, it suggest that for successful trades the most of time minumum is happening before the lunch time. And definitelly it is better to close trade if new low is reached after 2 pm. Then the second is the difference between open and low price for the day. Look to the picture.
Again the blue line suggest to set up stop loss somewhere around open - 0.56 (I haven't calculated it exactly). If this price goes below this low it is better to accept loss and close the trade. In the similar way I can make it with daily highs and discover the good closing time and target prices.
That's it for today. For the next week I am going to build trading algorithm using this knowledge. Thank you for reading!!!




No comments:
Post a Comment