NexusFi: Find Your Edge


Home Menu

 





Rolling Bar type


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one Bullywig with 6 posts (4 thanks)
    2. looks_two RJay with 2 posts (4 thanks)
    3. looks_3 xplorer with 2 posts (5 thanks)
    4. looks_4 rleplae with 1 posts (1 thanks)
      Best Posters
    1. looks_one xplorer with 2.5 thanks per post
    2. looks_two RJay with 2 thanks per post
    3. looks_3 rleplae with 1 thanks per post
    4. looks_4 Bullywig with 0.7 thanks per post
    1. trending_up 2,543 views
    2. thumb_up 14 thanks given
    3. group 3 followers
    1. forum 10 posts
    2. attach_file 1 attachments




 
Search this Thread

Rolling Bar type

  #1 (permalink)
 
Bullywig's Avatar
 Bullywig 
Chicago
 
Experience: Intermediate
Platform: NinjaTrader
Broker: NinjaTrader Brokerage
Trading: FDAX, NQ, HG, SI, CL
Posts: 68 since Oct 2015
Thanks Given: 42
Thanks Received: 22

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?

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Exit Strategy
NinjaTrader
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
ZombieSqueeze
Platforms and Indicators
NexusFi Journal Challenge - April 2024
Feedback and Announcements
Ninja Mobile Trader VPS (ninjamobiletrader.com)
Trading Reviews and Vendors
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Get funded firms 2023/2024 - Any recommendations or word …
59 thanks
Funded Trader platforms
37 thanks
NexusFi site changelog and issues/problem reporting
24 thanks
GFIs1 1 DAX trade per day journal
22 thanks
The Program
19 thanks
  #2 (permalink)
 
rleplae's Avatar
 rleplae 
Gits (Hooglede) Belgium
Legendary Market Wizard
 
Experience: Master
Platform: NinjaTrader, Proprietary,
Broker: Ninjabrokerage/IQfeed + Synthetic datafeed
Trading: 6A, 6B, 6C, 6E, 6J, 6S, ES, NQ, YM, AEX, CL, NG, ZB, ZN, ZC, ZS, GC
Posts: 3,003 since Sep 2013
Thanks Given: 2,442
Thanks Received: 5,863


Bullywig View Post
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?

What would be the mechanism of the update ?

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

Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #3 (permalink)
 
Bullywig's Avatar
 Bullywig 
Chicago
 
Experience: Intermediate
Platform: NinjaTrader
Broker: NinjaTrader Brokerage
Trading: FDAX, NQ, HG, SI, CL
Posts: 68 since Oct 2015
Thanks Given: 42
Thanks Received: 22



rleplae View Post
What would be the mechanism of the update ?

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.

Cheers.
Bullywig

Started this thread Reply With Quote
Thanked by:
  #4 (permalink)
 
RJay's Avatar
 RJay 
Hartford, CT. USA
 
Experience: Intermediate
Platform: NinjaTrader
Broker: AMP/CQG, Kinetick
Trading: RTY
Posts: 682 since Jun 2009
Thanks Given: 757
Thanks Received: 787


Bullywig View Post
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?

This can be done with a custom indicator placed on a one minute bar chart.

Reply With Quote
Thanked by:
  #5 (permalink)
 
Bullywig's Avatar
 Bullywig 
Chicago
 
Experience: Intermediate
Platform: NinjaTrader
Broker: NinjaTrader Brokerage
Trading: FDAX, NQ, HG, SI, CL
Posts: 68 since Oct 2015
Thanks Given: 42
Thanks Received: 22


RJay View Post
This can be done with a custom indicator placed on a one minute bar chart.

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

Cheers.

Bullywig

Started this thread Reply With Quote
  #6 (permalink)
 
xplorer's Avatar
 xplorer 
London UK
Site Moderator
 
Experience: Beginner
Platform: CQG
Broker: S5
Trading: Futures
Posts: 5,944 since Sep 2015
Thanks Given: 15,447
Thanks Received: 15,291


Bullywig View Post
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.

Cheers.
Bullywig

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.

Attached Files
Elite Membership required to download: 5-mins-chart.mp4
Reply With Quote
Thanked by:
  #7 (permalink)
 
Bullywig's Avatar
 Bullywig 
Chicago
 
Experience: Intermediate
Platform: NinjaTrader
Broker: NinjaTrader Brokerage
Trading: FDAX, NQ, HG, SI, CL
Posts: 68 since Oct 2015
Thanks Given: 42
Thanks Received: 22


xplorer View Post
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.

Started this thread Reply With Quote
Thanked by:
  #8 (permalink)
 
xplorer's Avatar
 xplorer 
London UK
Site Moderator
 
Experience: Beginner
Platform: CQG
Broker: S5
Trading: Futures
Posts: 5,944 since Sep 2015
Thanks Given: 15,447
Thanks Received: 15,291


Bullywig View Post
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


Reply With Quote
Thanked by:
  #9 (permalink)
 
Bullywig's Avatar
 Bullywig 
Chicago
 
Experience: Intermediate
Platform: NinjaTrader
Broker: NinjaTrader Brokerage
Trading: FDAX, NQ, HG, SI, CL
Posts: 68 since Oct 2015
Thanks Given: 42
Thanks Received: 22


xplorer View Post
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.

Cheers
Bullywig

Started this thread Reply With Quote
Thanked by:
  #10 (permalink)
 
RJay's Avatar
 RJay 
Hartford, CT. USA
 
Experience: Intermediate
Platform: NinjaTrader
Broker: AMP/CQG, Kinetick
Trading: RTY
Posts: 682 since Jun 2009
Thanks Given: 757
Thanks Received: 787



Bullywig View Post
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

Cheers.

Bullywig

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.

Reply With Quote
Thanked by:




Last Updated on February 22, 2018


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts