StockRSI Modify (BarsSince)

GameTime

Newbie
Messages
1
Likes
0
Hi Guys,

I'm wondering if i could please have some help modifying the Following StockRSI Exploration so a Buy Signal Last 3 days not Just 1. I've tried to work it out myself, and i think i need to use the formula BarsSince, but i don't know where it goes or how to use it. Thanks in Advance.

The following is the Exploration unmodified:



a:=Cross(20,(Sum(RSI(10)-LLV(RSI(10),10),3)/Sum(HHV(RSI(10),10)-LLV(RSI(10),10),3))*100);
b:=Cross((Sum(RSI(10)-LLV(RSI(10),10),3)/Sum(HHV(RSI(10),10)-LLV(RSI(10),10),3))*100,80);

state:=If(BarsSince(a)<BarsSince(b),1,0);

state=1
 
Top