Bug report
I tried to add a few indicators that track premium across exchanges. It seems that if those indicators consume the same source data the second indicator will have not access to the subscribed market data (the data will be 0).
See screenshot.
Correct sources are added.
Checklist
Description of what the bug is
- Environment: aggr.trade
- Version: [v3.7.0]
Steps to reproduce:
Add two indicators as follows:
Indicator 1
var exchange = 'BINANCE'
var premium = source(close, exchange=exchange, type="perp") - source(close, exchange=exchange, type="spot")
line(premium, title='binance')
Indicator 2
var premium = source(close, exchange='BINANCE', type="perp") - source(close, exchange='COINBASE', type="spot")
line(premium, title='crossEx')
Indicator 1 will display data correctly.
Indicator 2 will have no data for binance perp so it will displays high negative number from coinbase only.
Screenshots

Export Aggr Database
aggr-n1-premium-d9cg.json