NexusFi: Find Your Edge


Home Menu

 





BT OPENING RANGE INDICATOR - without vertical lines at session changes


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one Fat Tails with 54 posts (161 thanks)
    2. looks_two rcabri with 9 posts (7 thanks)
    3. looks_3 meyer99 with 7 posts (0 thanks)
    4. looks_4 Big Mike with 6 posts (5 thanks)
      Best Posters
    1. looks_one Gabriyele with 4 thanks per post
    2. looks_two Fat Tails with 3 thanks per post
    3. looks_3 rcabri with 0.8 thanks per post
    4. looks_4 Big Mike with 0.8 thanks per post
    1. trending_up 46,496 views
    2. thumb_up 184 thanks given
    3. group 21 followers
    1. forum 109 posts
    2. attach_file 51 attachments




 
Search this Thread

BT OPENING RANGE INDICATOR - without vertical lines at session changes

  #1 (permalink)
 
Todd's Avatar
 Todd 
Alpharetta, GA
 
Experience: Intermediate
Platform: ninja
Broker: Mirus / Zenfire
Trading: ES
Posts: 234 since Jun 2009
Thanks Given: 28
Thanks Received: 40

I use the BT Opening Range Indicator which is great.

See screenshot.
TechSmith | Screencast.com, online video sharing, 2010-08-26_0906

Is there a way to get the vertical lines not to plot between the end of one session and the beginning of the other? If I could get rid of the vertical lines, that would make my chart much cleaner.

Any help is appreciated.

Thanks,
Todd

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Exit Strategy
NinjaTrader
The space time continuum and the dynamics of a financial …
Emini and Emicro Index
Deepmoney LLM
Elite Quantitative GenAI/LLM
Better Renko Gaps
The Elite Circle
Are there any eval firms that allow you to sink to your …
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Get funded firms 2023/2024 - Any recommendations or word …
61 thanks
Funded Trader platforms
38 thanks
NexusFi site changelog and issues/problem reporting
26 thanks
GFIs1 1 DAX trade per day journal
19 thanks
The Program
18 thanks
  #3 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,102



Todd View Post
I use the BT Opening Range Indicator which is great.

See screenshot.
TechSmith | Screencast.com, online video sharing, 2010-08-26_0906

Is there a way to get the vertical lines not to plot between the end of one session and the beginning of the other? If I could get rid of the vertical lines, that would make my chart much cleaner.

Any help is appreciated.

Thanks,
Todd

Hi Todd,

To get rid of the vertical lines, you would need to reset the data series values somewhere before switching to the next opening range.

If you have data prior to the opening range you could try to add the following code at the end of OnBarUpdate(). Not tested.

 
Code
 
if (Bars.FirstBarOfSession)
{
   RangeTop.Reset();
   RangeBottom.Reset();
}
Below is the indicator I use to display the opening range.

Attached Files
Elite Membership required to download: anaOpeningRangeV23.zip
Reply With Quote
  #4 (permalink)
 
Todd's Avatar
 Todd 
Alpharetta, GA
 
Experience: Intermediate
Platform: ninja
Broker: Mirus / Zenfire
Trading: ES
Posts: 234 since Jun 2009
Thanks Given: 28
Thanks Received: 40

Fat Tails,

I downloaded the anaOpeningRange Indicator but it's totally different than the BTOpeningRange Indicator. I've attached the opening range indicator below.

The good thing about the BTOpeningRange indicator is the flexiblity it gives to set the opening range start and stop time. I don't see that flexibility with the AnaOpening Range indicator, or am I just missing something.

If you get a chance, could you modify the attached indicator to include the fix that gets rid of the the vertical lines?

Thanks,

Todd

Attached Files
Elite Membership required to download: BTOpeningRange.zip
Started this thread Reply With Quote
  #5 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,102

I have imported this indicator to NT7, it does not plot anything, but throws lots of exceptions on the trace file.
The serialization of start and end time is not done properly. I think you should ask the author to repair it.

Reply With Quote
Thanked by:
  #6 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,102


Todd View Post
Fat Tails,

I downloaded the anaOpeningRange Indicator but it's totally different than the BTOpeningRange Indicator. I've attached the opening range indicator below.

The good thing about the BTOpeningRange indicator is the flexiblity it gives to set the opening range start and stop time. I don't see that flexibility with the AnaOpening Range indicator, or am I just missing something.

If you get a chance, could you modify the attached indicator to include the fix that gets rid of the the vertical lines?

Thanks,

Todd


The anaOpeningRange indicator has the advantage that you can set the opening range start and stop time for each instrument individually. Once this is done, you can toggle between instruments, and for each instrument the appropriate start and end time will be selected.

Opening Time: Enter the session length. Some examples:

ES with CME Index Futures ETH -> session end = 3:15 PM CT, session length of 6:45 will get you the opening at 8:30 AM CT (which is equivalent to 9:30 AM ET).

ES with cash session template: You would choose a session length of 6:30 to get the same opening time, because the cash session ends 15 minutes prior to the futures session.

Opening Period: Just enter the lenght of the opening period in hours and minutes.

Reply With Quote
  #7 (permalink)
 
Todd's Avatar
 Todd 
Alpharetta, GA
 
Experience: Intermediate
Platform: ninja
Broker: Mirus / Zenfire
Trading: ES
Posts: 234 since Jun 2009
Thanks Given: 28
Thanks Received: 40

Fat Tails,

If I wanted to see CL from 9am to 9:30am, how would I do that? CL opens at 6pm but I like to see the 1st 30 minute range from 9am to 9:30am.

In your indicator, it doesn't give the ability to manually enter a start and stop time, correct?

Todd

Started this thread Reply With Quote
  #8 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,102


Todd View Post
Fat Tails,

If I wanted to see CL from 9am to 9:30am, how would I do that? CL opens at 6pm but I like to see the 1st 30 minute range from 9am to 9:30am.

In your indicator, it doesn't give the ability to manually enter a start and stop time, correct?

Todd


Of course you can. It depends on your session template.

(1) With Nymex Energy RTH the session end time is 14:30 ET. If you want to start the opening range at 9:00 AM, you will enter a session length of 5 hours and 30 minutes under Session Length CL and you will set the opening period to 0:30 minutes.

(2) With Nymex Metals/Energy ETH the session end time would be 17:15 ET, so you will enter a session length of 8 hours and 15 minutes under Session Length CL and you will set the opening range to 0:30 minutes.

The screenshot below shows the second example. Opening Range is red, European Range is gray, Pivot Range is blue.

Attached Thumbnails
Click image for larger version

Name:	Opening Range.jpg
Views:	881
Size:	100.3 KB
ID:	19258  
Reply With Quote
  #9 (permalink)
 meyer99 
Charlotte NC
 
Experience: Advanced
Platform: Charts:TOS, execution:TOS
Broker: TOS
Trading: SPX, RUT. TQQQ, Stocks, /YM
Posts: 234 since Jul 2009
Thanks Given: 99
Thanks Received: 122

Fat tails,
Thank you for this great indicator.
You mentioned " enter a session length of 5 hours and 30 minutes under Session Length CL "
Is that in the indicator settings tab or under Tools/Session Manager?
Can you show an example?

Reply With Quote
  #10 (permalink)
 
cory's Avatar
 cory 
virginia
 
Experience: Intermediate
Platform: ninja
Trading: NQ
Posts: 6,098 since Jun 2009
Thanks Given: 877
Thanks Received: 8,090



Todd View Post
I use the BT Opening Range Indicator which is great.

See screenshot.
TechSmith | Screencast.com, online video sharing, 2010-08-26_0906

Is there a way to get the vertical lines not to plot between the end of one session and the beginning of the other? If I could get rid of the vertical lines, that would make my chart much cleaner.

Any help is appreciated.

Thanks,
Todd

goto setting change rangetop and rangebottom plotting from line to hash.

Reply With Quote
Thanked by:




Last Updated on January 22, 2019


© 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