Counting upticks and downticks – This seems to be working


Category:
0
0

I searched the forum for tick_count and didn’t find much, so I thought some of you folks might find this interesting. On the two minute chart with the times & sales window visible I can see it counting the upticks and downticks. I haven’t been able to extract the up-volume and down-volume, but even the number of ticks is interesting.

declare lower;
plot TradeCountASK = tick_count(PriceType = PriceType.ASK);
plot TradeCountBID = -tick_count(PriceType = PriceType.BID);
plot zl = 0 ;
TradeCountASK.SetPaintingStrategy(PaintingStrategy.HISTOGRAM);
TradeCountBID.SetPaintingStrategy(PaintingStrategy.HISTOGRAM);
TradeCountASK.AssignValueColor(Color.GREEN);
TradeCountBID.AssignValueColor(Color.RED)
Marked as spam
Posted by (Questions: 1, Answers: 0)
Asked on March 6, 2020 11:06 am
434 views
0
Private answer

Yes, we have had a few quests for "number of trades", which is different than actual volume. I believe this is the first time someone has thought to apply the price type Bid/Ask to this function. So yes, this is very interesting. You can get the full details on the tick_count function here:

https://toslc.thinkorswim.com/center/reference/thinkScript/Functions/Fundamentals/tick-count

So I take you tried to apply this to volume and it did not perform the same function?

Marked as spam
Posted by (Questions: 37, Answers: 4118)
Answered on March 6, 2020 11:51 am