vectorbt icon indicating copy to clipboard operation
vectorbt copied to clipboard

What is the best way to run indicator with halt dates?

Open eromoe opened this issue 1 year ago • 3 comments

For example use RSI, now I do

  1. backfill price , calucate RSI, generate entries
  2. use all halt dates, set corresponding date in entries to false

But, the backfill change the true RSI. I can't come up a good sulotion .

eromoe avatar Feb 05 '23 03:02 eromoe

Remove the gaps, compute the indicator, put the gaps back. Forward/backward filling skews indicators.

polakowo avatar Feb 08 '23 15:02 polakowo

@polakowo Hi, thank you reply. Since gaps are diffrent dates across all stocks, I haven't found a vectorized way to do . Need loop all stocks and concat them back up, I can't utilize all vectorbt built-in indicators .

I wonder does vectorbt.pro support this feature?

eromoe avatar Feb 09 '23 03:02 eromoe

This issue is stale because it has been open for 90 days with no activity.

github-actions[bot] avatar Feb 21 '24 01:02 github-actions[bot]