Diagonal Continuous Imbalance indicator

Questions about MultiCharts and user contributed studies.
binhsir
Posts: 7
Joined: Sep 18 2024

Sep 18 2024

Is there diagonal continuous imbalance indicator and function in MC? As you can see in attachment, we can use this indicator and signal in SC. For example: condition "Ask volume(price + 1 tick) / Bid volume(price) >= 3" is true at 3 continuous price level, or condition "Ask volume(price + 1 tick) / Bid volume(price) <= 1/3" is true at 3 continuous price level.
I'm not good at C ++ and ACSIL in SC. So i hope to develop some strategies based on this indicator in MC. Is there anyone who can help me?
Attachments
Continuous Imbalance.jpg
(552.62 KiB) Not downloaded yet
Diagonal Ratio.jpg
(139.93 KiB) Not downloaded yet

User avatar
faraz
Posts: 240
Joined: Feb 25 2011
Location: 1stChoiceStrategy.com
Has thanked: 26 times
Been thanked: 76 times

Sep 18 2024


binhsir
Posts: 7
Joined: Sep 18 2024

Sep 30 2024

Thanks, faraz.
In addition to displaying the indicators on the chart, Can we have a function that we can use in the signal and strategy?
Or someone can show me how to write this function or signal which equivalent to n consecutive diagonal buy/sell imbalance?

User avatar
faraz
Posts: 240
Joined: Feb 25 2011
Location: 1stChoiceStrategy.com
Has thanked: 26 times
Been thanked: 76 times

Sep 30 2024

Code: Select all

//Example vars: BuyImbalance(0), SellImbalance(0); if UpTicks-DownTicks>0 then BuyImbalance=1; if UpTicks-DownTicks<0 then SellImbalance=-1;

binhsir
Posts: 7
Joined: Sep 18 2024

Oct 01 2024

Upticks is mean buy volume in whole current bar, but how to further show the buy volume at each price level in current bar?

User avatar
faraz
Posts: 240
Joined: Feb 25 2011
Location: 1stChoiceStrategy.com
Has thanked: 26 times
Been thanked: 76 times

Oct 01 2024

Format Instrument > Build volume On: Tick count
Add indicators;
Volume Dn
Volume Up

On Live market, notice Volume Dn Or Volume Up increase indicating market direction. Use this imbalance reading.

binhsir
Posts: 7
Joined: Sep 18 2024

Oct 01 2024

I do not deny the role of this indicator in indicating the direction of the market. But they are also based on the whole bar.
The value I really want to get is buy /sell volume at the specific price level . It seems that getting these values is not easy in MC as opposed to SC

User avatar
faraz
Posts: 240
Joined: Feb 25 2011
Location: 1stChoiceStrategy.com
Has thanked: 26 times
Been thanked: 76 times

Oct 02 2024

want to get is buy /sell volume at the specific price level

Code: Select all

inputs:SpecificPrice(1500); var:oUpTicks(0),oDownTicks(0); if BarStatus(1)=2 then begin oUpTicks=0;oDownTicks=0;end; if Close=SpecificPrice then begin oUpTicks=oUpTicks+UpTicks;oDownTicks=oDownTicks+DownTicks;end; Plot1(oUpTicks); Plot2(oDownTicks);