{ Downloaded From https://www.WiseStockTrader.com }
periods:=Cum(If(C>0,1,0));
dollars:=C-ValueWhen(1,periods=1,C);
dollars;