Skip to content

Custom bars #576

Answered by cjdsellers
rdong8 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @rdgh8 thanks for your interest

There is a way to do this, firstly you could:

  • Define this custom data type, probably inheriting from Data rather than Bar.
  • Write the logic for aggregating these bars in a class inheriting Actor, which you could then use to publish the bars onto the general message bus.
  • Strategies or other actors could then subscribe to this custom bar datatype.

You could even take it further by defining your own aggregation type, and writing a custom BarAggregator but you probably don't need to for now.

Hope that helps!

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by cjdsellers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
2 participants