Overview of events in BotTabCluster.

Overview of events in BotTabCluster.

In the BotTabCluster tab, there are a series of events signaling changes in clusters with maximum and minimum volumes, as well as events indicating changes in section values in the last cluster.

public event Action<HorizontalVolumeCluster> MaxSummClusterChangeEvent; 

Signals the appearance of a new cluster to which the section with the maximum total volume belongs.

1. Subscribe to the MaxSummClusterChangeEvent event.

2. Set a stop for the short position using the maximum cluster price from the event.

public event Action<HorizontalVolumeCluster> MaxBuyClusterChangeEvent;

Signals the appearance of a new cluster to which the section with the maximum buying volume belongs.

When a cluster with the maximum buying volume appears, a long position is opened at the price of the section with the maximum buying volume in the cluster.

public event Action<HorizontalVolumeCluster> MaxSellClusterChangeEvent;

Signals the appearance of a new cluster to which the section with the maximum selling volume belongs.

1. If there are already short positions, exit the method.

2. Otherwise, open a short position at the price of the section with the maximum selling volume in the cluster.

public event Action<HorizontalVolumeCluster> MaxDeltaClusterChangeEvent;

Signals the appearance of a new cluster to which the section with the maximum delta volume between buys and sells belongs.

1. The field stores the signal delta size that will be used to open positions.

2. When a new cluster with the maximum delta volume appears, recalculate the signal delta size.

3. When the candle closes in the simple tab, check for open positions. If there are any, exit the method.

4. Otherwise, take the last cluster index from the tab.

5. If the delta volume of the last cluster exceeds the signal volume, open a position.

public event Action<HorizontalVolumeCluster> MinSummClusterChangeEvent;

The event signals the appearance of a new cluster to which the section with the minimum total buying and selling volume belongs.

public event Action<HorizontalVolumeCluster> MinBuyClusterChangeEvent;

The event signals the appearance of a new cluster to which the section with the minimum buying volume belongs.

public event Action<HorizontalVolumeCluster> MinSellClusterChangeEvent;

The event signals the appearance of a new cluster to which the section with the minimum selling volume belongs.

public event Action<HorizontalVolumeCluster> MinDeltaClusterChangeEvent;

The event signals the appearance of a new cluster to which the section with the minimum delta size between buys and sells belongs. Next are events that report changes in the last cluster.

public event Action<HorizontalVolumeLine> MaxSummLineChangeEvent;

The event reports that the section with the maximum total volume has changed in the last cluster.

In the MaxSummLineChangeEvent event handler, the following logic is performed:

1. The variable stores a reference to the section that contained the maximum total volume.

2. Using the IsUpTreand method, we determine the presence of a trend.

3. Update the reference to the section with the maximum total volume.

4. In the IsUpTreand method, we check if the required section exists. If not, it means that there is not enough data to determine the trend.

5. Compare the new section with the previous one. If the total volume has increased and the price has risen, we assume the presence of an upward trend.

public event Action<HorizontalVolumeLine> MaxBuyLineChangeEvent;

The event reports that the section with the maximum buying volume has changed in the last cluster.

public event Action<HorizontalVolumeLine> MaxSellLineChangeEvent;

The event reports that the section with the maximum selling volume has changed in the last cluster.

public event Action<HorizontalVolumeLine> MaxDeltaLineChangeEvent;

The event reports that the section with the maximum delta volume between buys and sells has changed in the last cluster.

public event Action<HorizontalVolumeLine> MinSummLineChangeEvent;

The event reports that the section with the minimum total volume has changed in the last cluster.

public event Action<HorizontalVolumeLine> MinBuyLineChangeEvent;

The event reports that the section with the minimum buying volume has changed in the last cluster.

public event Action<HorizontalVolumeLine> MinSellLineChangeEvent;

The event reports that the section with the minimum selling volume has changed in the last cluster.

public event Action<HorizontalVolumeLine> MinDeltaLineChangeEvent;

The event reports that the section with the minimum delta size between buys and sells has changed in the last cluster.

If you have any difficulties or questions, please write to the support chat. Link