Profit in backtest doesnt get multiplied by lotsize

#1
Hi,
I have a simple code for taking positions in the index futures depending on vix levels.The afl is

SetOption("AllowSameBarExit",False);
SetOption("AllowPositionShrinking", False);
SetOption("FuturesMode", True);
SetOption("InterestRate",3);
SetOption("MaxOpenPositions",1);
SetOption("MinShares",1);
SetOption("PriceBoundChecking",False);
SetOption("CommissionMode",1);
SetOption("CommissionAmount",0.04);
SetOption("AccountMargin",25);
SetOption("ReverseSignalForcesExit",False);
SetOption("UsePrevBarEquityForPosSizing",True);

MarginDeposit = 0.25*C*50;
LotSize = Optimize("LotSize",2,1,5,1);
PositionSize = MarginDeposit*LotSize;

RoundLotSize =1 ;
SetTradeDelays(0,0,0,0);
BuyPrice = Close;
SellPrice = Close;
ShortPrice = Close;
CoverPrice =Close;

VIX = Foreign("VIX","CLOSE",1);


DL = LLV(Ref(VIX,-1),33);
DH = HHV(Ref(VIX,-1),22);
Short = VIX<DL;
Cover =0;
Buy=0;
Sell=0;
for(i=0;i<BarCount;i++)
{
if(Short==1)
{
for(j=i;j<BarCount;j++)
{
if(VIX[j]>DH[j])
{
Cover[j]=1;
CoverPrice[j]=C[j];
j=BarCount;
}
}
}

}

When i backtest this on nifty futures i get some results.However,whatever profit gets shown,I find it is irregular in the way that it doesnt get multiplied with the lotsize.
I have attached zip file.Please take a look at the trades.As you would see,the profit doesnt get multiplied by lot size and i have a smaller figure.I have attached settings as well.Any help??