Skip to main content
Source: src/Deepdom/Annotations/BigTradeMarker.cs A circle on the price for every aggregated trade of at least a given size, with a message in realtime.

What it shows

  • The aggregated trades: SetCalculateAggrTrades and AggrInfo.
  • Annotations in the main area, their group and their removal.
  • A message for the user, in realtime only.

How it works

The aggregated trades are asked for in OnInit. In OnTick, aggrInfo is null for every trade which does not complete an aggregate:
The marker is an annotation on the main area, at the bar of the trade (TickIndex + 1) and at its price:
The markers are kept in a list, and the oldest one is removed when there are too many:

Things to notice

  • The group is created in OnLoad, and the list is emptied there: the chart starts from scratch at every load.
  • The message is shown only when isRt is true. During the history there would be one for every past trade.
  • Tooltip gives the annotation a text shown when the mouse is over it.

Try

  • Scale the marker with the size of the trade.
  • Show the sum of the big trades of each side in a label.