TradingView
yeungshawn
2022年2月23日早上2點45分

Intraday Bar Counting 

E-mini S&P 500 FuturesCME

描述

As a day-trader, revising is the most important habit.

This script adds numbers on intraday bars to help you revise and analyze patterns and your entries/exits. Great help!

發布通知

Note:the script only works on 5-min chart.
if you wanna make it work on other timeframes, you can find the following part of the source code
--------
plotchar(time('5',............), and replace [5] to the specific number of your timeframe.

For example, if your timeframe is 15-min chart, just replace all the plotchar(time('5' to plotchar(time('15'

發布通知

minor update
評論
marcvrick
Nice work, Thank you! I just wonder why it starts at 8:30am (NY time) and not 9:30am? cheers
yeungshawn
@marcvrick, haha, if the numbers are shifted on your chart, just adjust it starting from the right time.
SteezyAB
Great indicator. I like that it shows RTH bar count even while on an ETH chart.
Bobabob
I made a 10 min that counts every bar if there are any David Frost fans out there. For some reason (I think time zones) I had to make a separate one for the ES. That one is first. Enjoy!

// This source code is subject to the terms of the Mozilla Public License 2.0 at mozilla.org/MPL/2.0/
// © Bobabob from @ yeungshawn
//@version=5
indicator(title='Intraday Bar Counting', shorttitle='Count ES', overlay=true)
plotchar(time('10', '0830-0839'), char=' ', text='1', size=size.auto, color=color.new(color.yellow, 0))
plotchar(time('10', '0840-0849'), char=' ', text='2', size=size.auto, color=color.new(color.yellow, 0))
plotchar(time('10', '0850-0859'), char=' ', text='3', size=size.auto, color=color.new(color.yellow, 0))
plotchar(time('10', '0900-0909'), char=' ', text='4', size=size.auto, color=color.new(color.yellow, 0))
plotchar(time('10', '0910-0919'), char=' ', text='5', size=size.auto, color=color.new(color.yellow, 0))
plotchar(time('10', '0920-0929'), char=' ', text='6', size=size.auto, color=color.new(color.yellow, 0))
plotchar(time('10', '0930-0939'), char=' ', text='7', size=size.auto, color=color.new(color.yellow, 0))
plotchar(time('10', '0940-0949'), char=' ', text='8', size=size.auto, color=color.new(color.yellow, 0))
plotchar(time('10', '0950-0959'), char=' ', text='9', size=size.auto, color=color.new(color.yellow, 0))
plotchar(time('10', '1000-1009'), char=' ', text='10', size=size.auto, color=color.new(color.yellow, 0))
plotchar(time('10', '1010-1019'), char=' ', text='11', size=size.auto, color=color.new(color.yellow, 0))
plotchar(time('10', '1020-1029'), char=' ', text='12', size=size.auto, color=color.new(color.yellow, 0))
plotchar(time('10', '1030-1039'), char=' ', text='13', size=size.auto, color=color.new(color.yellow, 0))
plotchar(time('11', '1040-1049'), char=' ', text='14', size=size.auto, color=color.new(color.yellow, 0))
plotchar(time('10', '1050-1059'), char=' ', text='15', size=size.auto, color=color.new(color.yellow, 0))
plotchar(time('10', '1100-1109'), char=' ', text='16', size=size.auto, color=color.new(color.yellow, 0))
plotchar(time('10', '1110-1119'), char=' ', text='17', size=size.auto, color=color.new(color.yellow, 0))
plotchar(time('10', '1120-1129'), char=' ', text='18', size=size.auto, color=color.new(color.yellow, 0))
plotchar(time('10', '1130-1139'), char=' ', text='19', size=size.auto, color=color.new(color.yellow, 0))
plotchar(time('10', '1140-1149'), char=' ', text='20', size=size.auto, color=color.new(color.yellow, 0))
plotchar(time('10', '1150-1159'), char=' ', text='21', size=size.auto, color=color.new(color.yellow, 0))
plotchar(time('10', '1200-1209'), char=' ', text='22', size=size.auto, color=color.new(color.yellow, 0))
plotchar(time('10', '1210-1219'), char=' ', text='23', size=size.auto, color=color.new(color.yellow, 0))
plotchar(time('10', '1220-1229'), char=' ', text='24', size=size.auto, color=color.new(color.yellow, 0))
plotchar(time('10', '1230-1239'), char=' ', text='25', size=size.auto
tin365trade
Sorry i really need the odds numbers... i tried to recode and add them but i get 79 lines and the maximum is 64... any solution?
tin365trade
@tin365trade, I find a solution... i code them in a separate indicator.
trendlab2
Interesting... Could you change the plot criteria to count fractals instead of each candle?
Pooltrader
How can you plot the count numbers under the bars?
yeungshawn
@Pooltrader, hi, you can add an argument: location=location.bottom.
you can see more info from here tradingview.com/pine-script-reference/v5/
更多