- Topics: 5
- Replies: 295
- Posts: 300
The V1 line of your script is a Boolean, meaning the result will oscillate between 0 and 1. Because of that V2 would be producing a value no higher than 1. V3 then looks at the High price of the chart itself, and looks for instances where it is crossing above 1, so in most cases won’t produce any results.
If i’m reading your setup correctly, you want to know the high of the chart when the RSI crosses above 70, the trigger is then when the chart value crosses above that high? If that is right, the following script will work:
//Set RSI Cross
V1 = RSI(BARS=7) CrossesAbove 70;
//Set Chart High
V2 = HIGH();
//Find Charts High Value at RSI Cross
V3 = VALUEWHEN(V2,V1) ;
//Find when High crosses above High at RSI Cross
V2 CrossesAbove V3
If you are after something different you’ll need to post a few screen shot examples highlighting the setup you’re trying to identify.
- This reply was modified 3 weeks, 2 days ago by Matthew.