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.
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 | |
R | Create a horizontal drawing, then remove it once price hits it | Questions | 7 |