Anybody know how to create a bar counter on ToS? I want something that I can count from a specific bar to another specific bar.
Join useThinkScript to post your question to a community of 21,000+ developers and traders.
No there isn't...Is there something similar to EXPANSION AREA for the left side of the chart ?
declare upper;
def GreenCandle = Close>Open;
def RedCandle = Close<Open;
def GreenCount = TOTALSUM(GreenCandle);
def RedCount = TOTALSUM(RedCandle);
AddLabel(yes, "GreenCandle: " + GreenCount, color.GREEN);
AddLabel(yes, "RedCandle: " + RedCount, color.RED);
declare upper;
def GreenCandle = Close>Open;
def RedCandle = Close<Open;
def GreenCount = SUM(GreenCandle,200);
def RedCount = SUM(RedCandle,200);
AddLabel(yes, "GreenCandle: " + GreenCount, color.GREEN);
AddLabel(yes, "RedCandle: " + RedCount, color.RED);
i did something like that for someone on here a few days ago. its in this post https://usethinkscript.com/threads/opening-volume-vs-30d-average-volume.4973/page-2@rad14733 I understand price is king but volume helps support and confirm the price action. My thinking wasn't necessarily wanting to see what an average volume is for a particular # of days but more of what's happening during today and that the first hour of trading is usually the heaviest volume of the day. Sometimes you see a spike later on and thought that if I can scan for stocks that has volume that is equal to or greater than the average first hour of the trading day, I may be able to see the stocks where interest is coming back. I was just curious to see if it's a viable concept. The scanner only lets you choose average volume that is greater than # of bars ago. I thought using an average of that time period would be better than randomly choosing a bar that may or may not have adequate representation of the traffic that's showing up in the morning. I'll figure it out at some point.
Thread starter | Similar threads | Forum | Replies | Date |
---|---|---|---|---|
Does Anybody Know of A Predictive Moving Average Script? | Questions | 2 | ||
A | Does anybody know the indicator he is using? | Questions | 2 | |
F | Can anybody help to explain these scripts? | Questions | 4 | |
M | anybody know 1-2-3 Chart Patterns | Questions | 7 | |
M | Trying to create an earnings scan in TOS | Questions | 2 |
Start a new thread and receive assistance from our community.
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.
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.