How to input Lot size from runtime variable? Need help

I am trying to have variable lot sizes for my strategy, so I have initialized a variable and used that for buying nifty or bank nifty, which is not working, any suggestions ??

image

image