    

 ## On this page

  

 

 # dataCollectorCreated

 Last update: 30.07.2026 

abstract fun [dataCollectorCreated](data-collector-created.md)(tradeStudy: [TradeStudy2](./../-trade-study2/index.md), dataCollector: [DataCollector](./../-data-collector/index.md))

Called when the trade study creates a new data collector for it to use. The data collector should not be shown before being passed.

#### Parameters

tradeStudythe trade study associated with the data collectordataCollectorthe new data collector