Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
Is there a bar type available that calculates an assigned (x) minutes bar, but updates every minute? Essentially a rolling bar type? So for example, a 10, 15, or 30 minute bar that updates every minute rather that the assigned value of the bar?
Can you help answer these questions from other members on NexusFi?
It then is no longer ea time based bar, but something else
you can extend NT with a custombar type, you need to tell more about the logic
for the update, to be able to answer your question
I'm sorry if my description was too vague. Let me see if I can explain things more clearly.
Let's take a 10 minute bar. Normally it would update every ten minutes and contain the data from the previous 10 minutes. Updates would normally be as an example 8:00, 8:10, 8:20 etc.
I would like to form a 10 minute bar that contains the data from the previous 10 minutes, but that updates every minute;
8:01, 8:02, 8:03 etc. Essentially, it's still a 10 minute bar, but it updates every minute so that I have a picture of a 10 minute bar forming every minute from the previous 10 minutes of data.
I'm new to trading and just learning, but this is something that interests me as a filter, and I do not have the coding experience to understand the logic and build it myself. Perhaps someday I will, but just cutting my teeth as we speak on learning c# so I can follow along. Any direction or advice is appreciated, and thank you for commenting in general.
Thank you for your response. Can you elaborate a bit? What indicator would do this? Does it already exist? Do you have an example of this I can see. Thanks
Unless I'm misinterpreting what I read, I think you have your understanding wrong. You say "a 10 min bar updates every 10 minutes". That's not the case. Any bar duration updates istantaneously. Doesn't matter if the duration of the bar is daily, hourly, 10 or 1 minute, the "current" bar will always update as price changes.
So if you have a 10 minutes bar, it will keep tracking price until the 10 minutes have elapsed. When 10 minutes have passed, that bar will "solidify" in whichever form it was when the 10 minutes were up and a new one will form, and this one will now be the current bar.
The current bar always updates price in real time (requires realtime data of course)
Video example of 5 mins bar that updates constantly attached.
Thank you for pointing that out. I used the wrong word; I should have said "culminates" instead of updates, or "prints"; not update. I do understand the bar is constantly updating. What I'm having a difficult time explaining is;
is there a way to have a bar comprised of 10 minutes worth of data that is constantly updating, culminate every minute on the previous 10 minutes worth of data, instead of culminating every 10 minutes? A 1 minute bar that contains the previous 10 minutes worth of dat, thus, what I'm calling a rolling bar type, and perhaps that is not an accurate description, but in my mind it's making sense. Hope that helps clarify things a bit more.
i.e., instead of culminating 8:00, 8:10, 8:20 at fixed intervals, have that interval fixed at a user defined period; for my example 1 minute; therefore, if possible, the 10 minute bar would culminate every 1 minute, instead of every 10 minutes like a standard 10 minute bar would do.
I think I now understand - are you looking for a certain pattern to be seen inside of a larger pattern, i.e. looking at 1-minute candles inside a 10-min candle?
If so, this thread should help - there's a link to a NinjaTrader indicator that does that
Thank you for the link. I will look at that shortly.
Actually though, I'm trying to achieve the the opposite of what you are describing if I'm interpreting your comments correctly.
What I'm looking for is a 10 minute candle inside a 1 minute candle. I have used larger time frames as a trend filter, but waiting for the larger candle to close severely limits the trading opportunities in my opinion. By the time the candle closes, an opportunity may have presented itself and played out while we are waiting for the larger time frame candle to close. The lag factor tends to counteract the confirmation factor in my opinion. If there is a way to have 1 minute candles that are comprised of the previous 10 minutes (I am only using 10 minutes here as an example) then the ten minute candle would reside in a minute candle by rolling over each minute, and would then align with any potential moves in more of a "real time" environment without as much lag factor to contend with. In my head it seems very straight forward,but I obviously have no idea how to construct such a candle, and I certainly don;t have the experience to know if this is even a good idea or not. Intuition though tells me it would be worth looking into. Again, I appreciate the engagement. It's immensely helpful at this stage of my trading and coding adventure.
On a one minute bar chart, For Five minute data collection on a one minute bar:
Value of "bar" open is Open of the 4th prior bar back.
Value of "bar" high is High Max for currentbar + 4 prior bars.
Value of "bar" low is Low Min for currentbar + 4 prior bars.
Value of "bar" close is always current bar Close values.
This can be plotted using Lines, Rectangles, and Color.