Coding scalein IN SHORTING OPTIONS for backtesting

I Have tried writing the code but am failing in it
here is my query

say its a expiry day and i want to short sell a option at say 100 say 1 contract and want to keep Short exit for it at 20%
if price drops to 80 i want short 3 more contracts and this entry should have 30% stoploss from entry
and again short 5 contracts scale-in at 60 with Stop of 50%
and exit end of the day

This topic was automatically closed 100 days after the last reply. New replies are no longer allowed.