SetChartOptions( 0, chartShowArrows | chartShowDates );
Plot( C, "Close", ParamColor( "Color", colorBlack ), styleNoTitle | ParamStyle( "Style" ) | GetPriceStyle() );
SetBarsRequired( 100000, 0 );
per1 = Param( "RSI", 14, 1, 100, 1 );
per2 = Param( "OverBought Level", 70, 1, 100, 1 );
per3 = Param( "OverSold Level", 30, 1, 100, 1 );
SetPositionSize( 1, spsShares );
RSI1= RSI(per1);
Buy = Cross(RSI1,per2);
Sell = Cross(40, RSI1);
Buy = ExRem( Buy, Sell );
Sell = ExRem( Sell, Buy );
Short = Cross(per3, RSI1) ;
Cover = Cross(RSI1, 60);
Short = ExRem( Short, Cover );
Cover = ExRem( Cover, Short );
Title = NumToStr( DateTime(), formatDateTime ) + " O " + O + " H " + H + " L " + L + " C " + C
;
PlotShapes( IIf( Buy, shapeSquare, shapeNone ), colorGreen, 0, L, Offset = -40 );
PlotShapes( IIf( Buy, shapeSquare, shapeNone ), colorLime, 0, L, Offset = -50 );
PlotShapes( IIf( Buy, shapeUpArrow, shapeNone ), colorWhite, 0, L, Offset = -45 );
PlotShapes( IIf( Sell, shapeDownArrow, shapeNone ), colorRed, 0, H, Offset = -45 );
PlotShapes( IIf( Short, shapeSquare, shapeNone ), colorRed, 0, H, Offset = 40 );
PlotShapes( IIf( Short, shapeSquare, shapeNone ), colorOrange, 0, H, Offset = 50 );
PlotShapes( IIf( Short, shapeDownArrow, shapeNone ), colorWhite, 0, H, Offset = -45 );
PlotShapes( IIf( Cover, shapeUpArrow, shapeNone ), colorBlue, 0, L, Offset = -45 );
_SECTION_END();
this is the current code that i am using kindly help me to change the buy according condition one
and condition two
thx