Essentially my bot is checking through all nifty 500 stocks every 5 mins. Now basic stuff like stock name and all is hardcoded. Here's what is happening: For every stock it calls for data > Checks for minimum easiest condition > if true checks for all conditions > if matches places order. Else > if false > moves onto next stock.
Now what is happening is by the time it reaches let's say 400th stock, 1 min has passed and thus if I get signal, I have lost one min of movement. and this creates some weird discrepancies.
What am I missing here? Or how can I make it faster?