chattanooga
Posts: 10 since Dec 2018
Thanks Given: 0
Thanks Received: 0
|
How do I find the lowest close from when the conditions are met to the current bar? This is as far as I could get, it should work but thinksrcipt wont allow the low1 in the lowest function. Am I writing this wrong? Anyone have a different better way?
declare lower;
def rsi= RSI();
def cond=rsi crosses below 30;
def low1;
if cond is true then {low1=1;} else if high>0 then {low1=low[1]+1;} else {low1=1;};
def lowest1= lowest(close,low1);
plot lowest2= lowest1;
|