how do i calculate the 4 day sma of the daily LOWS(not close )from daily timeframe.
i was able to get the 4 day sma of close as follows
protected override void Initialize()
{
Add(PeriodType.Day, 1);
protected override void OnBarUpdate()
{
if (BarsInProgress == 0)
if(SMA(BarsArray[1], 4)[0] < Close[0] )

Comment