Trade Volume Delta Indicator for ThinkorSwim

C

cesarword

New member
@horserider Great this way works with different time frames. Thank you

C

cesarword

New member
I coded what I believe is a better version of the cumulative volume delta Histogram.
feel free to take a look and let me know what do you think about it.

Note: It only works on a 1 tick chart because thinkorswing doesn't provide Bid or Ask volume data. But you can add a 5 min chart on top of it and set up your cursor to display in both charts.
This histogram measures pure volume per 1 tick at the bid and ask.

Code:
``````#----------------------

declare lower;
declare zerobase;

def MoneyCount = volume;

def c = close;
def Ask = If( close from 0 bars ago >= close from 1 bars ago,volume ,0);

def Bid = If( close from 0 bars ago <= close from 1 bars ago,volume,0);

input length = 900;

plot z = 0;

plot High = HighestAll(comulative);
plot Low = LowestAll(comulative);

plot Bullish = (comulative);

Bullish.AssignValueColor(if comulative >= 0 then Color.UPTICK else Color.DOWNTICK);
Bullish.SetPaintingStrategy(PaintingStrategy.HISTOGRAM);``````

Last edited:
A

alexR

New member
VIP
@tomsk Would it be possible to add a fix line at +and- 0.15 with arrows down xsing from +0.15 and arrow up xsing from -0.15.

thanks

BenTen

Staff
VIP

Code:
``````plot line1 = 0.15;
plot line2 = -0.15;``````

A

alexR

New member
VIP
Thanks ben, what about adding arrows up and down when crosses the -+0.15,is it possible? I should have say when CMF crosses those lines-+0.15

BenTen

Staff
VIP
@alexR Try this:

Code:
``````def condition1 = ChaikinOsc crosses above line2;
def condition2 = ChaikinOsc crosses below line1;

plot pDown = condition2;
pDown.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_DOWN);
pDown.SetLineWeight(1);
pDown.AssignValueColor(COLOR.MAGENTA);

plot pUp = condition1;
pUp.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_UP);
pUp.SetLineWeight(1);
pUp.AssignValueColor(COLOR.CYAN);``````

A

alexR

New member
VIP
@alexR Try this:

Code:
``````def condition1 = ChaikinOsc crosses above line2;
def condition2 = ChaikinOsc crosses below line1;

plot pDown = condition2;
pDown.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_DOWN);
pDown.SetLineWeight(1);
pDown.AssignValueColor(COLOR.MAGENTA);

plot pUp = condition1;
pUp.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_UP);
pUp.SetLineWeight(1);
pUp.AssignValueColor(COLOR.CYAN);``````
Hi Ben, I add this a the bottom of study but is not working, i plots the arrows but nothing else.

A

anycolour

Member
I coded what I believe is a better version of the cumulative volume delta Histogram.
feel free to take a look and let me know what do you think about it.

Note: It only works on a 1 tick chart because thinkorswing doesn't provide Bid or Ask volume data. But you can add a 5 min chart on top of it and set up your cursor to display in both charts.
This histogram measures pure volume per 1 tick at the bid and ask.
....
Hi Cesarword! I'm just now trying out your Cum Vol Delta Indicator and your Footprints indicator in the 15m charts. I'm going to test these out. Is it supposed to look like this? If so, the footprints is already embedded into the Cum Vol Delta, isn't it (it's the same trendline)?

Also, when you say the Cum Vol Delta for 1 tick chart is better, you mean better than the one you posted for the 15m charts? If so, how is it better? Could the 15m still provide value or is it obsolete? 1 tick charts are too restrictive for me. Minimum I use is 1k tick charts.

Thank you!