Hi, I'm working on an algorithm and there are two things I want to do that I couldn't figure out yet (new to C#):


I wanted to use a previous bar's low/high as a stop, i.e. stop when data[symbol].Close <= (data[symbol].Low)[1]


The other thing I wanted to do was a way to determine if a bar is abnormal size, what Ive done on my charting platform is something to the tune of 


close-open <= 2*(sma(absval(close-open)),1000)


Any help would be greatly appreciated!