PureBytes Links
Trading Reference Links
you need one more change to initialise Strend correctly to -1. IF MRO(Close >= Close[24],Consec,1) = -1 Then STrend =-1;