Help refactoring code

L

luicius

New member
Is there a way to refactor the plot scan code?

Code:
def IsUp = close > open;

plot scan =
    IsUp[3] and
    IsUp[2] and
    IsUp[1] and
    IsUp[0] and
    close[1] < close[0] and
    open[3] < low[2] and
    close[2] < close[1] and
    high[3] < close[2] and
    open[1] < low[0] and
    open[2] < low[1];
 

Similar threads

Top