Demand Index for cAlgo API.
formula can be found online.
FORMULA FOR DEMAND INDEX
The Demand Index (DI) calculates two values, Buying Pressure (BP) and Selling Pressure (SP), and then takes a ratio of the two. DI is BP/SP.
There are some slight variations in the formula.
Here's one version:
If prices rise:
BP = V or Volume
SP = V/P where P is the % change in price
If prices decline:
BP = V/P where P is the % change in price SP = V or Volume
Because P is a decimal (less than 1), P is modified by multiplying it by the constant K.
P = P(K)
K = (3 x C)/VA
Where C is the closing price and VA (Volatility Average) is the 10 day average of a two day price range (highest high — lowest low).
If BP > SP then DI = SP/BP
hi,
I am professional asp.net developer and had a great experience in asp.net,mvc,sql,c# and worked in financial domains so i can provide you quality of code and quick results.I can start whenever you want.
thanks