Trade Volume Delta Indicator for ThinkorSwim

Thanks for checking! So this is interesting, as I have been using it on one and five minute charts with great success. If I understand correctly, there is no way to normalize and combine Chaikin money flow and Cumulative delta successfully into one normalized study, based on what you see?
 
Thanks for checking! So this is interesting, as I have been using it on one and five minute charts with great success. If I understand correctly, there is no way to normalize and combine Chaikin money flow and Cumulative delta successfully into one normalized study, based on what you see?


I normalized all three 2 days ago, have a look at that post, it runs fine on a daily chart.
 
Sorry, I didn't word my question well. I meant to ask, is there no way to normalize and combine Chaikin money flow and Cumulative delta successfully, for a five minute chart, based on what you see in the code? The Cumulative delta works great for me on tick and five minute charts, despite what is in the header of the code. That said, the combined indicator shows different cumulative delta when I throw it on a five minute chart and compare to the originally posted Cumulative delta chart. This seems odd to me, but I am no coder. Worst case, I will do what I have been doing and use them separately, but I was hoping to save lower screen real estate. Thanks.
 
Jus
Mind sharing how the Chaikins provide value to you?
Just like most indicators I look for divergences, and/or crossings above or below the zero line to go long or short. I find Chaikin Money flow to be the more useful of the two. If consolidating but Chaikin is rising above zero line, it's a good play to go long.
 
Does anyone have a Delta (Cumulative Delta) indicator they could share? Something like the attached image. Thank you!

vxClcd3.png
Were you able to find anything like this? I'm also looking for this. Ninja trader has a bunch of cumulative delta indicators but I'm hoping to find it for TOS.
 
I wrote this code to plot the real cumulative volume using BID and ASK transactions no the close of the candle, please take a look and let me know what do you think.

it works only for 15 min charts other wise you must change the aggregation period within the code. doesn't work with tick charts.

input displace = 0;
def ASK = tick_count(priceType = PriceType.ASK , period = AggregationPeriod.FIFTEEN_MIN);
def BID = tick_count(priceType = PriceType.BID , period = AggregationPeriod.FIFTEEN_MIN);
def MARK = tick_count(priceType = PriceType.MARK , period = AggregationPeriod.FIFTEEN_MIN);
def LAST = tick_count(priceType = PriceType.LAST , period = AggregationPeriod.FIFTEEN_MIN);

def ba = BID - ASK;

plot data = Sum(ba-displace, 100);



Here is the same code plus the histogram



#start code

declare lower;
declare zerobase;
input displace = 0;
def ASK = tick_count(priceType = PriceType.ASK , period = AggregationPeriod.FIFTEEN_MIN);
def BID = tick_count(priceType = PriceType.BID , period = AggregationPeriod.FIFTEEN_MIN);
def MARK = tick_count(priceType = PriceType.MARK , period = AggregationPeriod.FIFTEEN_MIN);
def LAST = tick_count(priceType = PriceType.LAST , period = AggregationPeriod.FIFTEEN_MIN);
def ba = BID - ASK;
plot BUVol=if(ba>0,ba,0);
plot BEVol=if(ba<0,ba,0);

plot data = Sum(ba-displace, 100);

BEVol.SetPaintingStrategy(PaintingStrategy.HISTOGRAM);
BEVol.SetDefaultColor(Color.RED);
BUVOL.SetPaintingStrategy(PaintingStrategy.HISTOGRAM);
BUVol.SetDefaultColor(Color.GREEN);
 
Last edited:
I wrote this code to plot the real cumulative volume using BID and ASK transactions no the close of the candle, please take a look and let me know what do you think.

it works only for 15 min charts other wise you must change the aggregation period within the code. doesn't work with tick charts.

input displace = 0;
def ASK = tick_count(priceType = PriceType.ASK , period = AggregationPeriod.FIFTEEN_MIN);
def BID = tick_count(priceType = PriceType.BID , period = AggregationPeriod.FIFTEEN_MIN);
def MARK = tick_count(priceType = PriceType.MARK , period = AggregationPeriod.FIFTEEN_MIN);
def LAST = tick_count(priceType = PriceType.LAST , period = AggregationPeriod.FIFTEEN_MIN);

def ba = BID - ASK;

plot data = Sum(ba-displace, 100);
can you go in detail what the blue lines represent?
 
Is there anything close to "footprints" indicator in Thinkorswim? If so, I'd like a combination with that! Thanks

I have a code but it works best with futures take a look let me know what you think! Use 15 min time frame other wise you have to change the aggregation code for specific time fame. Doesn't work with tick charts.

Code:
declare lower;
declare zerobase;
def displace = 0;
def ASK = tick_count(priceType = PriceType.ASK, period = AggregationPeriod.FIFTEEN_MIN);
def BID = tick_count(priceType = PriceType.BID , period = AggregationPeriod.FIFTEEN_MIN);
def MARK = tick_count(priceType = PriceType.MARK , period = AggregationPeriod.FIFTEEN_MIN);
def LAST = tick_count(priceType = PriceType.LAST , period = AggregationPeriod.FIFTEEN_MIN);
def  ba = BID - ASK;
plot data = Sum(ba - displace, 100);
 
@cesarword
declare lower;
declare zerobase;

Input agg = aggregationPeriod.DAY;

def ASK = tick_count(priceType = PriceType.ASK, period = Agg);
def BID = tick_count(priceType = PriceType.BID , period = Agg);
def MARK = tick_count(priceType = PriceType.MARK , period = Agg);
def LAST = tick_count(priceType = PriceType.LAST , period = Agg);
def ba = BID - ASK;
plot data = Sum(ba , 100);
 
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;
def comulative= sum(Ask-Bid,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:
@alexR Add this snippet to the bottom of your script:

Code:
plot line1 = 0.15;
plot line2 = -0.15;
 
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
 

Join useThinkScript to post your question to a community of 21,000+ developers and traders.

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

87k+ Posts
533 Online
Create Post

Similar threads

Similar threads

The Market Trading Game Changer

Join 2,500+ subscribers inside the useThinkScript VIP Membership Club
  • Exclusive indicators
  • Proven strategies & setups
  • Private Discord community
  • ‘Buy The Dip’ signal alerts
  • Exclusive members-only content
  • Add-ons and resources
  • 1 full year of unlimited support

Frequently Asked Questions

What is useThinkScript?

useThinkScript is the #1 community of stock market investors using indicators and other tools to power their trading strategies. Traders of all skill levels use our forums to learn about scripting and indicators, help each other, and discover new ways to gain an edge in the markets.

How do I get started?

We get it. Our forum can be intimidating, if not overwhelming. With thousands of topics, tens of thousands of posts, our community has created an incredibly deep knowledge base for stock traders. No one can ever exhaust every resource provided on our site.

If you are new, or just looking for guidance, here are some helpful links to get you started.

What are the benefits of VIP Membership?
VIP members get exclusive access to these proven and tested premium indicators: Buy the Dip, Advanced Market Moves 2.0, Take Profit, and Volatility Trading Range. In addition, VIP members get access to over 50 VIP-only custom indicators, add-ons, and strategies, private VIP-only forums, private Discord channel to discuss trades and strategies in real-time, customer support, trade alerts, and much more. Learn all about VIP membership here.
How can I access the premium indicators?
To access the premium indicators, which are plug and play ready, sign up for VIP membership here.
Back
Top