Custom WL showing VPoC between certain dates


Category:
0
0

Hi Pete, a novice here in thinkscript. Taking a crack at creating the watchlist that gets volume point of control for stocks in the watchlist between specified dates, say from the lows on March 18th this year to current.

Using the thinkscript guide, here’s my current codes but it actually provides 1 year VPOC instead of the specified periods from March 18th to Dec 15th. Wondering if you can help with this.

input startDate = 20200318;
input endDate = 20201215;

def period = countTradingDays(startDate, endDate);
def cond = 0 < period – period[1];
profile tpo = volumeprofile(“startNewProfile” = cond, “onExpansion” = no);

plot b = tpo.GetPointOfControl();

Marked as spam
Posted by (Questions: 1, Answers: 0)
Asked on December 16, 2020 8:04 am
84 views
0
Private answer

If such a thing were possible the solution would be light-years beyond the scope of something I would provide free of charge in the Q&A Forum.

Marked as spam
Posted by (Questions: 37, Answers: 4084)
Answered on December 16, 2020 9:20 am