Spécifications
can you give me a quote for a Quantower indicator?
Indicator Explanation:
This custom indicator, called Order Flow Blocks (MS/LS/MB/LB), is used to display order flow information directly on the chart bars — meaning the flow of market orders.
Specifically, it shows four types of volumes for each time bar (typically every minute):
-
MS (Market Sell): Volume of market sell orders executed by aggressors (those who "hit" the ask in the order book).
-
LS (Limit Sell): Volume of sell orders placed passively (those waiting in the ask book).
-
MB (Market Buy): Volume of market buy orders executed by aggressors (those who "hit" the bid in the book).
-
LB (Limit Buy): Volume of buy orders placed passively (those waiting in the bid book).
This data is aggregated per minute (or per chart bar) and displayed as small colored boxes above each price bar.
How does the code work?
-
Data Collection:
The indicator subscribes to the TapeUpdated event, which is triggered whenever a new trade (executed order) comes in.
For each trade, it updates a dictionary ( orderFlowData ) that tracks volumes for each minute.
It classifies each trade as MS, LS, MB, or LB based on:-
Whether it's a buy or sell ( IsBuy )
-
Whether it's made by an aggressor or not ( IsAggressor )
-
-
Visualization:
In the OnPaintChart method, for each chart bar, it checks if there's order flow data.
If so, it draws four colored boxes:-
Red for MS (aggressive sells)
-
Bordeaux for LS (passive sells)
-
Green for MB (aggressive buys)
-
Dark Green for LB (passive buys)
-
Each box shows both the label and the aggregated volume.
I’ve attached a screenshot of how it should be displayed.