After 12 hours of research using google, I can't find anyone else reporting this issue. That either means that I'm doing something wrong or this is a new problem and other users haven't seen it yet. I have this problem on 4 different PC's and another user I asked to confirm is experiencing the same problem. It was happening with scans using my own studies and I didn't want to get into explaining what they do. No secrets, just overly complex for discussion purposes. I have tested 12 TOS-supplied studies (like MovingAverageCrossover) and they also show wrong results.
So, here is what is happening (using hourly data for the chart and the scan):
1. Pick a study with clear, obvious signals. Like MovingAverageCrossover.
2. Put it on a chart.
3. Create a scan using that study and it's buy signal. Note that sell signals have the same problem.
4. Run the scan and look at the charts for some of the tickers selected by the scan.
5. I am seeing dozens of tickers selected by the scan that don't show a current (or even recent) buy signal using the same study.
6. On the scan for Friday 21 October 2022, for instance, it shows OZ as a "buy" in the scan.
7. The last buy signal, using hourly data, for OZ was about 12 trading hours earlier (according to the chart's study).
8. The timeframe is NOT the issue. I have the same problem with daily, 5-minute, 15-minute, etc. data.
I hope someone here can confirm that they see the same problem and/or can tell me how to make it go away.
EDITED--
An example:
Let me start by saying that I would never trade a MovingAvgCrossover strategy and I wouldn’t trade OZ. I used this study purely because everybody has it and most understand it. I have a similar issue with every study that I tried, so I may as well demonstrate my problem with an easy-to-understand study. OZ is just one of hundreds of tickers that are, in my opinion, not working properly. Here is the results of my scan:
The scan uses the TOS-supplied MovingAvgCrossover, default settings of 15 and 30. The output of the scan shows that the averages for OZ on the 21st of October 2022 were identical: 88.36 (15-day) and 88.36 (30-day). That is purely coincidence and, I’m sure, not related to the problem. The moving averages for the other tickers look reasonable and are not duplicated.
I then created an hourly chart for OZ and pasted the two simple moving averages on the chart using two copies of the SimpleMovingAvg study as supplied by TOS. The yellow line is the 30-day moving average which the MovingAvgCrossover study calculated on 21 October as 88.45. The light blue line is the 15-day moving average which the study calculated as 88.32. I have calculated these two moving averages by hand and my numbers agree with the study. Why not?? But neither agree with the output of the scan.
The blue circle on the study below shows the last buy signal which occurred using the TOS-supplied MovingAvgCrossover study. As you can see, the buy signal appears several days ago, certainly not on the 21st of October. So OZ should NOT BE showing in the scan output.
As I mentioned, every TOS user has the MovingAvgCrossover study, so I'm not able to share it. If necessary, I could copy the code to a new study and share that one, but that just seems silly.
I will share my scan, but it's just a basic scan that uses the MovingAvgCrossover study.
https://tos.mx/CtQIBPM
I'm having to visually inspect about 500 charts every day (until I can figure out my problem and fix it) and it's becoming tedious.
Any help would be appreciated. By the way, I think I lied (not intentionally) when I said that it failed on daily data. I now think that it is working ok on daily data. Just failing on anything less than daily.
If I'm correct, everyone should be concerned about this problem (assuming that it is really a problem), because it affects EVERY study-driven scan on timeframes less than daily.
Thanks for patiently going through my verbose description. I hope the images come through. I won't know until I post it.
I'm running these hourly scans several hours AFTER the markets have closed, so candles are NOT changing on me. I have tried offsets in the scan of 0, 1 and 2. I have tried displacements in the study of -1, 0 and 1. By fiddling with offsets and displacements, I can make tickers come and go from the scan and signals come and go on the chart study. But, so far, I have not managed to get them to agree.
So, here is what is happening (using hourly data for the chart and the scan):
1. Pick a study with clear, obvious signals. Like MovingAverageCrossover.
2. Put it on a chart.
3. Create a scan using that study and it's buy signal. Note that sell signals have the same problem.
4. Run the scan and look at the charts for some of the tickers selected by the scan.
5. I am seeing dozens of tickers selected by the scan that don't show a current (or even recent) buy signal using the same study.
6. On the scan for Friday 21 October 2022, for instance, it shows OZ as a "buy" in the scan.
7. The last buy signal, using hourly data, for OZ was about 12 trading hours earlier (according to the chart's study).
8. The timeframe is NOT the issue. I have the same problem with daily, 5-minute, 15-minute, etc. data.
I hope someone here can confirm that they see the same problem and/or can tell me how to make it go away.
EDITED--
An example:
Let me start by saying that I would never trade a MovingAvgCrossover strategy and I wouldn’t trade OZ. I used this study purely because everybody has it and most understand it. I have a similar issue with every study that I tried, so I may as well demonstrate my problem with an easy-to-understand study. OZ is just one of hundreds of tickers that are, in my opinion, not working properly. Here is the results of my scan:
The scan uses the TOS-supplied MovingAvgCrossover, default settings of 15 and 30. The output of the scan shows that the averages for OZ on the 21st of October 2022 were identical: 88.36 (15-day) and 88.36 (30-day). That is purely coincidence and, I’m sure, not related to the problem. The moving averages for the other tickers look reasonable and are not duplicated.
I then created an hourly chart for OZ and pasted the two simple moving averages on the chart using two copies of the SimpleMovingAvg study as supplied by TOS. The yellow line is the 30-day moving average which the MovingAvgCrossover study calculated on 21 October as 88.45. The light blue line is the 15-day moving average which the study calculated as 88.32. I have calculated these two moving averages by hand and my numbers agree with the study. Why not?? But neither agree with the output of the scan.
The blue circle on the study below shows the last buy signal which occurred using the TOS-supplied MovingAvgCrossover study. As you can see, the buy signal appears several days ago, certainly not on the 21st of October. So OZ should NOT BE showing in the scan output.
As I mentioned, every TOS user has the MovingAvgCrossover study, so I'm not able to share it. If necessary, I could copy the code to a new study and share that one, but that just seems silly.
I will share my scan, but it's just a basic scan that uses the MovingAvgCrossover study.
https://tos.mx/CtQIBPM
I'm having to visually inspect about 500 charts every day (until I can figure out my problem and fix it) and it's becoming tedious.
Any help would be appreciated. By the way, I think I lied (not intentionally) when I said that it failed on daily data. I now think that it is working ok on daily data. Just failing on anything less than daily.
If I'm correct, everyone should be concerned about this problem (assuming that it is really a problem), because it affects EVERY study-driven scan on timeframes less than daily.
Thanks for patiently going through my verbose description. I hope the images come through. I won't know until I post it.
I'm running these hourly scans several hours AFTER the markets have closed, so candles are NOT changing on me. I have tried offsets in the scan of 0, 1 and 2. I have tried displacements in the study of -1, 0 and 1. By fiddling with offsets and displacements, I can make tickers come and go from the scan and signals come and go on the chart study. But, so far, I have not managed to get them to agree.
Last edited by a moderator: