Anybody know how I can create an indicator which shows when the RSI is hitting a new 52-week high? I've been working all day on this in EasyLanguage, and it's just been too long (10+ years) since I programmed EasyLanguage, and I'm back into it again, I just haven't been able to wrap my mind around it. Any help is very appreciated, I've been sweating over this.
What I want to do, is to run a SCANNER, which gives me the stocks which are hitting a new 52-week RSI high.
I'm not even necessarily looking to create an indicator per say. I just want something in the SCANNER I can put in, so that I can know what stocks are breaking out of new 52-week RSI highs. There seems to be so many obstacles, it's not encouraging. I keep rewriting and rewriting. If anyone could tell me the basic format or logic, or anything that can point me in the right direction, it's so needed, because I am more than capable of this, I just don't understand the TradeStation/EasyLanguage architecture. It's very frustrating for me, because it's so simple. An iterative backscan for previous RSI values, and a check if the current RSI is higher than the last 52 (or whatever period specified). If true, than set a value to true. That's it. But I can't seem to get it going.
Are you working in ToS or in Tradestation? On a chart you could get the highest RSI of the last 52 bars with something simple like that:
If you chart weekly bars this would display the highest RSI within the last 52 weeks.
In the Scanner this might not be so simple, because the Scanner might not run from weekly bars. If this is the case you'd need to compute your own weekly RSI using an array and making sure you store only one RSI value per week. This is a more advanced thing to do.
I would suggest starting with the version for the chart that will also work in Radarscreen.
The following user says Thank You to ABCTG for this post: