"Opening" bar of an indicator - NinjaTrader | futures io social day trading
futures io futures trading


"Opening" bar of an indicator
Updated: Views / Replies:973 / 6
Created: by patbateman Attachments:2

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors – all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you don’t need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

Reply
 
Thread Tools Search this Thread
 

"Opening" bar of an indicator

  #1 (permalink)
Elite Member
NY, NY
 
Futures Experience: None
Platform: T4, NinjaTrader
Favorite Futures: All!
 
patbateman's Avatar
 
Posts: 235 since Mar 2012
Thanks: 113 given, 193 received

"Opening" bar of an indicator

Hello, I'm trying to find a way to bring up the "bar" of an indicator at a specific time.

For example, the value of volume at 9:30 eastern.

CurrentDayOHL won't work, and it looks like FatTails superior OHL won't either.

"A Jedi's strength flows from the force."
-Yoda
Reply With Quote
 
  #2 (permalink)
Market Wizard
virginia
 
Futures Experience: Intermediate
Platform: ninja
Favorite Futures: ES
 
cory's Avatar
 
Posts: 5,220 since Jun 2009
Thanks: 628 given, 6,317 received
Forum Reputation: Legendary

something likes this?



Syntax
Bars.GetBar(DateTime time)


Parameters
time
Time stamp to be converted to a bar index


Examples
// Check that its past 9:45 AM
if (ToTime(Time[0]) >= ToTime(9, 45, 00))
{
// Calculate the bars ago value for the 9 AM bar for the current day
int barsAgo = CurrentBar - Bars.GetBar(new DateTime(2006, 12, 18, 9, 0, 0));

// Print out the 9 AM bar closing price
Print("The close price on the 9 AM bar was: " + Close[barsAgo].ToString());
}

Reply With Quote
 
  #3 (permalink)
Elite Member
Berlin, Europe
 
Futures Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker/Data: Interactive Brokers
Favorite Futures: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,653 since Mar 2010
Thanks: 4,226 given, 25,602 received
Forum Reputation: Legendary



patbateman View Post
Hello, I'm trying to find a way to bring up the "bar" of an indicator at a specific time.

For example, the value of volume at 9:30 eastern.

CurrentDayOHL won't work, and it looks like FatTails superior OHL won't either.


Could you please explain what you want to bring up and how you want to display it?

Obviously OHLC will not work, because those values are directly taken from the instrument.

Reply With Quote
 
  #4 (permalink)
Elite Member
NY, NY
 
Futures Experience: None
Platform: T4, NinjaTrader
Favorite Futures: All!
 
patbateman's Avatar
 
Posts: 235 since Mar 2012
Thanks: 113 given, 193 received

Plotting an SMA of volume on a futures ETH chart is useless, because it picks up the globex session. I'm trying to figure a way to compare volume to the average volume of that point in time. Example, a 9:30 volume bar to every other 9:30 volume bar since 2010.

I was thinking on using OHL somehow, but I suppose there are better methods. Maybe something already exists that I'm missing?

Any thoughts and I'll pitch in. This is definitely useful and I think others will use it too.

"A Jedi's strength flows from the force."
-Yoda
Reply With Quote
 
  #5 (permalink)
Elite Member
Berlin, Europe
 
Futures Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker/Data: Interactive Brokers
Favorite Futures: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,653 since Mar 2010
Thanks: 4,226 given, 25,602 received
Forum Reputation: Legendary


patbateman View Post
Plotting an SMA of volume on a futures ETH chart is useless, because it picks up the globex session. I'm trying to figure a way to compare volume to the average volume of that point in time. Example, a 9:30 volume bar to every other 9:30 volume bar since 2010.

I was thinking on using OHL somehow, but I suppose there are better methods. Maybe something already exists that I'm missing?

Any thoughts and I'll pitch in. This is definitely useful and I think others will use it too.


I have coded an indicator which compares the volume of the current bar to the volume of all previous bars with the same day of week and the same time stamp. With default settings, it would compare the volume of today's 1:00 PM bar to the average volume of the 1:00 PM bars of the preceding 20 Fridays. The indicator will

- The indicator will display the relative volume compared to the average.
- Any value below 80% (threshold selectable) will be plotted red.
- Any value between 80% and 120% (thresholds selectable) will be plotted white.
- Any value above 120% (threshold selectable) will be plotted green.
- Specific dates (holidays or crash days) can be excluded from the average.
- The indicator also displays the cumulated value of the relative volume for the entire trading day.
- The indicator deals with daylight savings issues.

Below you will see that today's volume was only 58% of the average volume of the last 20 Fridays. There were only two exciting bars with a high relative volume

- one was a doji at 0:30 - 0:45 EST
- the other one was the bar prior to the regular open from 9:15 to 9:30 EST

Here is a link to the indicator:

https://futures.io/download/ninjatrader-7/indicators/632-download.html?view


Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).

Reply With Quote
The following 3 users say Thank You to Fat Tails for this post:
 
  #6 (permalink)
Elite Member
NY, NY
 
Futures Experience: None
Platform: T4, NinjaTrader
Favorite Futures: All!
 
patbateman's Avatar
 
Posts: 235 since Mar 2012
Thanks: 113 given, 193 received


Fat Tails View Post
I have coded an indicator which compares the volume of the current bar to the volume of all previous bars with the same day of week and the same time stamp. With default settings, it would compare the volume of today's 1:00 PM bar to the average volume of the 1:00 PM bars of the preceding 20 Fridays. The indicator will

- The indicator will display the relative volume compared to the average.
- Any value below 80% (threshold selectable) will be plotted red.
- Any value between 80% and 120% (thresholds selectable) will be plotted white.
- Any value above 120% (threshold selectable) will be plotted green.
- Specific dates (holidays or crash days) can be excluded from the average.
- The indicator also displays the cumulated value of the relative volume for the entire trading day.
- The indicator deals with daylight savings issues.

Below you will see that today's volume was only 58% of the average volume of the last 20 Fridays. There were only two exciting bars with a high relative volume

- one was a doji at 0:30 - 0:45 EST
- the other one was the bar prior to the regular open from 9:15 to 9:30 EST

Here is a link to the indicator:

https://futures.io/download/ninjatrader-7/indicators/632-download.html?view


Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).

Amazing! I'll definitely add it and tell others to join the EC, many thanks.

"A Jedi's strength flows from the force."
-Yoda
Reply With Quote
 
  #7 (permalink)
Elite Member
Berlin, Europe
 
Futures Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker/Data: Interactive Brokers
Favorite Futures: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,653 since Mar 2010
Thanks: 4,226 given, 25,602 received
Forum Reputation: Legendary

Comparing volume since January 2010

If you want to compare the volume since the beginning of 2010, then you would need to increase the lookback period of the chart to 365 + 365 + 230 = 960 days or more and set the number of weeks referenced to 52 + 52 + 32 /* current week of year - 1 */ = 136. It will then compare today's volume to the last 136 weeks.

See chart attached.

The indicator is not one of the most recent ones, so I would need to update it.


Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).

Reply With Quote
The following 2 users say Thank You to Fat Tails for this post:

Reply



futures io > > > > "Opening" bar of an indicator

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)

Jigsaw Trading: TBA

Elite only

FuturesTrader71: TBA

Elite only

NinjaTrader: TBA

Jan 18

RandBots: TBA

Jan 23

GFF Brokers & CME Group: Futures & Bitcoin

Elite only

Adam Grimes: TBA

Elite only

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fukushima: "China Syndrome Is Inevitable" ... "Huge Steam Explosions", or "Nuclear Bo Quick Summary News and Current Events 0 November 22nd, 2011 02:50 AM
How to change "Stop Loss" and "Take Profit" in "shElderImpulse" Strategy javed759 NinjaTrader 1 November 1st, 2011 11:44 PM
"mid", "buy", "sell" volumes lokgotkent Traders Hideout 6 September 30th, 2011 02:24 PM
RJay's "Trader Volume" and "Trader Tick" Indicator Suites RJay The Elite Circle 20 December 20th, 2010 06:01 PM
Wondering if there is a "Range " bar without the 1 tick gap Breakout Traders Hideout 7 July 15th, 2010 02:47 AM


All times are GMT -4. The time now is 05:59 PM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
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.
no new posts
Page generated 2017-12-15 in 0.11 seconds with 20 queries on phoenix via your IP 54.145.16.43