I am looking for a script that would count new highs or lows bar by bar based on the timeframe that's been set.
See example below, each time the 15 min bar made a new high above the previous high, the counter would be indexed up.
Not looking for this to be drawn on the chart, just a simple numerical counter that could be used for scanning purposes.
Inputs:
Aggregation Time: 1 min, 5 min, 1 hr, 1 day, or whatever
Start Time: 9:30 AM
End Time: 4 PM
Output:
Number of new highs from start time to current time
+ would indicate new highs
- would indicate new lows
If anyone can help, I really appreciate it
Thank you
See example below, each time the 15 min bar made a new high above the previous high, the counter would be indexed up.
Not looking for this to be drawn on the chart, just a simple numerical counter that could be used for scanning purposes.
Inputs:
Aggregation Time: 1 min, 5 min, 1 hr, 1 day, or whatever
Start Time: 9:30 AM
End Time: 4 PM
Output:
Number of new highs from start time to current time
+ would indicate new highs
- would indicate new lows
If anyone can help, I really appreciate it
Thank you