// Downloaded From https://www.WiseStockTrader.com
_SECTION_BEGIN("Radiosilk's N-Cross Breakout");
Buy = Cover =   ( 
        Ref( Close , -1 ) > Ref( High , -4 )
        OR Ref( Open , -1 ) > Ref( High , -4 )
        OR Ref( High , -1 ) > Ref( High , -4 )
        OR Ref( Low , -1 ) > Ref( High , -4 )
    );
 
Sell = Short=  ( 
        Ref( Open , -1 ) < Ref( Low , -4 )
        OR Ref( High , -1 ) < Ref( Low , -4 )
        OR Ref( Low , -1 ) < Ref( Low , -4 )
        OR Ref( Close , -1 ) < Ref( Low , -4 )
    );
 
Buy = ExRem( Buy, Sell );
Sell = ExRem( Sell, Buy );
Cover = ExRem( Short, Cover );
Short = ExRem( Cover, Short );

shape = Buy * shapeUpArrow + Sell * shapeDownArrow;
PlotShapes( shape, IIf( Buy, colorTurquoise, colorTurquoise),0, IIf( Buy, Low, High ) );
_SECTION_END();