WeightedMidprice weighted for market sentiment

Custom indicators, trading strategies, data export and recording and more...
ingyukoh
Posts: 33
Joined: Tue Nov 26, 2019 7:06 am
Been thanked: 1 time

WeightedMidprice weighted for market sentiment

Post by ingyukoh » Sun Dec 29, 2019 5:15 am

In WeightedMidprice.java,

WeightedMidprice is defined as

bestBid * bestAskSize + bestAsk * bestBidSize
with normalization of total size.

First look at the formula surprises me that the weighted with wrong size.

However I conjecture that you formulate for the sake of market sentiment.

For examplem, bestAsk=7300, bestBid=7299 with bestAskSize=99, bestBidSize=1,
then weightedMidprice is approximate 7299.01. Market sentiment
is below mid line(7299.50), indicating downward pressure.


Similarly in QuotesDelta.java, indicator is integration of (bidDelta-askDelta)
with negative sentiment below zero. Difference from weighted price is that price
does not play role in QuotesDelta.