I am using pandas_ta to calculate supertrend its fine for one stock but when I am trying to calculate it for like 100 stocks using a simple for loop, it takes more than 6 secs, how can I optimize it? or is there any different way to achieve it?
for column in close.columns:
supertrend[column] = ta.supertrend(high=high[column], low=low[column],close=close[column], length=period, multiplier=multiplier)[props]