A couple of things I haven't been able to get to work the way I want are the following two parameters:
I think they might be able to be used to enter/exit a position sooner, but I've had unwanted results so far. The most common issue is that my signals get triggered multiple times - which can cost money if there is an exchange fee. For example, it will trigger a Open Long, then a Close Long, then a Open Long, then a Close Long... all several times on the same bar as the price moves up and down...
Great video, by the way! You are the #1 reason and resource that helped me learn Pine. Awesome work!
if (rsi<=lowerrsi and inDateRange)
if (close_Overbought == true and inDateRange)
I am doing some simple script too.
How do I make my script trigger the real bug/sell?