♥ 0 |
Hi again Mr Hahn, I tried to combine some of your codes together to get a TOS study that would indicate both an “overbought” and “oversold” condition based primarily on your MACD RSI part 2 scan. Sadly it still only indicates the “oversold” condition. I took out the alerts. Thanks for any help. I’m sending you some funds right now for all the help you’ve given me! Attached is what I made, hoping it would go into “overbought” to below 0 in the plot scan…
Marked as spam
|
Private answer
I have no idea what you are asking for here. If you are referring to this video: https://www.hahn-tech.com/thinkorswim-scan-macd-rsi-part-two/ The code for that already includes both directions. The scan signals for both directions were already included in the file linked in this video.
Here is the plot statement from the code provided by the author of the post:
Now let's take a look at the two scan signals that were provided in the original scan:
Do you see how you mistakenly changed the second line from "highest(overboughtRSI[1], 4) > 0" to "lowest (overboughtRSI[1], 4) < 0"? That was the first mistake. You did not copy the scan signal for overbought, but instead you modified it in a way that caused it to stopped working altogether. I only take the time to explain your mistake because you included your code in this post and I perceive that you are trying to learn. Here is what the statement looks like when you combine the two signals to create the +1, -1 and 0 plot values you were trying to achieve:
Marked as spam
|
Please log in to post questions.