RSI BullBack detecttor issue
Posted: Thu Feb 23, 2023 9:44 am
Hi Fellows , this is my first post in the forum and I am pretty new for Pine. I would need some help for my script because I assume that my "RSI local top" detection does system does not work properly >> script does not give any Entry trigger
I have tried to create "Long Entry Condition" script that has combined two-step entry trigger system:
1. trigger is ta.crossover(rsiLongTrig, rsiTrig2); this trigger stays on and waits for rsiLongTrig to go up and make local top and then comes downwards at least (2) following bars and finally pulls the trigger 2 ON when rsiLongTrig turns up again.
" Long Entry Condition "goes OFF if ta.crossunder(rsiLongTrig, rsiTrig2) and (close < maSig1 or close < maSig2 or close < maSig3)
My current script:
var LongTrigCond = false
float rsiLongTrigTop = na
// Long Entry Triggers
if LONG and ta.crossover(rsiLongTrig, rsiTrig2) // (Trigger 1)
rsiLongTrigTop := rsiLongTrig[1] > rsiLongTrig and rsiLongTrig > rsiLongTrigTop ? rsiLongTrig[1] : rsiLongTrigTop
if rsiLongTrigTop > 0 and rsiLongTrigTop > rsiLongTrig and rsiLongTrig < rsiLongTrig[1]
if rsiLongTrig[3] > rsiLongTrig[2] and rsiLongTrig[2] > rsiLongTrig[1] and rsiLongTrig > rsiLongTrig[1]
LongTrigCond := true
if ta.crossunder(rsiLongTrig, rsiTrig2) and (close < ma1 or close < ma2 or close < ma3)
LongTrigCond := false
I would be really grateful if someone could help me with this issue, thanks for advance
Best regard Jari
I have tried to create "Long Entry Condition" script that has combined two-step entry trigger system:
1. trigger is ta.crossover(rsiLongTrig, rsiTrig2); this trigger stays on and waits for rsiLongTrig to go up and make local top and then comes downwards at least (2) following bars and finally pulls the trigger 2 ON when rsiLongTrig turns up again.
" Long Entry Condition "goes OFF if ta.crossunder(rsiLongTrig, rsiTrig2) and (close < maSig1 or close < maSig2 or close < maSig3)
My current script:
var LongTrigCond = false
float rsiLongTrigTop = na
// Long Entry Triggers
if LONG and ta.crossover(rsiLongTrig, rsiTrig2) // (Trigger 1)
rsiLongTrigTop := rsiLongTrig[1] > rsiLongTrig and rsiLongTrig > rsiLongTrigTop ? rsiLongTrig[1] : rsiLongTrigTop
if rsiLongTrigTop > 0 and rsiLongTrigTop > rsiLongTrig and rsiLongTrig < rsiLongTrig[1]
if rsiLongTrig[3] > rsiLongTrig[2] and rsiLongTrig[2] > rsiLongTrig[1] and rsiLongTrig > rsiLongTrig[1]
LongTrigCond := true
if ta.crossunder(rsiLongTrig, rsiTrig2) and (close < ma1 or close < ma2 or close < ma3)
LongTrigCond := false
I would be really grateful if someone could help me with this issue, thanks for advance
Best regard Jari