I need help for coding strategy for arbitrage
psudocode for this is -
case 1
when NSE cmp>BSE cmp
entry
if(% difference should be> 0.5%)
then short sell at NSE
and buy at BSE
exit
if(% difference should be<0.2%)
then sell at BSE
and buy at NSE
case 2
when NSE cmp<BSE cmp
entry
if(% difference should be> 0.5%)
then short sell at BSE
and buy at NSE
exit
if(% difference should be<0.2%)
then sell at NSE
and buy at BSE