Steve (and everyone else, I guess),
I noticed in your indicator for RSI that you are looking at the value at the close of yesterday's bar and comparing it to the current value of today's bar. Since today's bar changes throughout the day, is there a particular time you look at the values?
I talked about this on another thread in the past, but I finally decided to write an indicator that will show the potential RSI values for the current bar. I ended up just tacking a bit of code onto the RSI indicator that ships with Empty4.
The attached indicator will show you the price levels for the current bar that correspond to the RSI levels 5,10,15,...95. It may be nothing more than a toy, but I suppose you could look at it at the start of the day (or whatever time frame you use it on), and if you were waiting for RSI to hit 60 before entering, you could see at what price that would occur and set your pending order.
For example, here's a picture of GBPUSD at the open from Friday. It opens up around RSI 50, so your program would ignore it. You can see, however, that just past the resistance level it would also cross the 55 (magenta line at 1.5795). You
could place your pending order there, and walk away. BTW, the 45 and 55 lines are solid magenta lines and the rest are black dotted lines.
cable-start.gif
I have no idea if it makes sense to do this, but you could.
Here's a zoomed out picture of cable at the end of the day without the S/R indicator so you can better see the lines.
cable-end.gif
The code is not particularly brilliant, it scans every point above and below the open price of the bar and calculates the RSI at that point. It then rounds the number to the nearest digit and if it ends in a 5 or 0, draws the line. This means that you'd likely want to give some space above and below to allow for rounding. (said better, 44.55 would round to 45 and print a line).
The indicator is poorly named, it's not actually predicting the values, it is calculating them. I'm open to suggestions...
George
You do not have the required permissions to view the files attached to this post.