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

  #31 (permalink)
 
Trafford's Avatar
 Trafford 
London, England
 
Experience: Intermediate
Platform: Ninja
Broker: Mirus Futures/Zen-Fire
Trading: EUR
Posts: 337 since Sep 2010
Thanks Given: 378
Thanks Received: 229

FT,

Does the opening range indicator work on Tick based charts?

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
NexusFi Journal Challenge - April 2024
Feedback and Announcements
Are there any eval firms that allow you to sink to your …
Traders Hideout
Futures True Range Report
The Elite Circle
Deepmoney LLM
Elite Quantitative GenAI/LLM
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
 
  #32 (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


Trafford View Post
FT,

Does the opening range indicator work on Tick based charts?

Have not tested yet, but it should.

Reply With Quote
  #33 (permalink)
 
Trafford's Avatar
 Trafford 
London, England
 
Experience: Intermediate
Platform: Ninja
Broker: Mirus Futures/Zen-Fire
Trading: EUR
Posts: 337 since Sep 2010
Thanks Given: 378
Thanks Received: 229


Yes it works great I put two of the same indicator on, one to capture first 30 mins and second to capture completion of IB.

Thanks,

Trafford

Reply With Quote
  #34 (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


Trafford View Post
Yes it works great I put two of the same indicator on, one to capture first 30 mins and second to capture completion of IB.

Thanks,

Trafford

Colors can be changed to make the difference.

You can also save the original indicator under a different name, such as anaInitialBalanceV30. You will then need to replace the string "OR30" with "IB30" within the indicator code to have different enums. You can then replace the text in lines 111-113 to show "IB-High", IB-Low" and "IB-Mid" and afterwards compile. Compiling of the copied indicator will not work, if you do not change the names of the enums.

Reply With Quote
Thanked by:
  #35 (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 View Post
That would be sort of a minimum price target for the day. You could display this in a similar fashion as the SessionVolatility Bands. Calculate averageZ for two periods, for example 3 and 10 days. You can then plot a band above and below the open for the RTH session.

The SessionVolatilityBands indicator already has an ETH and RTH option, uses the session logic and calculates averages of the daily range, so it should not be too diiffcult to modify the calculation

- take the minimum Min(high - open, open - low) instead of the daily range, then apply the average calculatation
- add/subtract this to the open value instead adding to low and subtracting from high

Does this make sense for you?

Any luck with this? No rush, no rush lol

Reply With Quote
  #36 (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


meyer99 View Post
Any luck with this? No rush, no rush lol

It is on my ever growing to-do-list, as it canc be done with moderate effort.

Reply With Quote
Thanked by:
  #37 (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


meyer99 View Post
I do not have a chart to show but its only two horizontal lines.
Basically the indicator looks at a) the difference between the HH less the open and b) the open less the LL for the RTH for a certain day. Then picks the lower of a or b for that day (Z).
Then add the Z's of the past x days and divide by x (averZ).
The next day at the open it will draw two lines 1) at the open + averZ, and 2) the open - averZ. The lines cover only RTH.

I have posted it here, as it is a modified version of the SessionVolatilityBands Indicator.


Reply With Quote
  #38 (permalink)
 
Trafford's Avatar
 Trafford 
London, England
 
Experience: Intermediate
Platform: Ninja
Broker: Mirus Futures/Zen-Fire
Trading: EUR
Posts: 337 since Sep 2010
Thanks Given: 378
Thanks Received: 229


Fat Tails View Post
Colors can be changed to make the difference.

You can also save the original indicator under a different name, such as anaInitialBalanceV30. You will then need to replace the string "OR30" with "IB30" within the indicator code to have different enums. You can then replace the text in lines 111-113 to show "IB-High", IB-Low" and "IB-Mid" and afterwards compile. Compiling of the copied indicator will not work, if you do not change the names of the enums.


Thanks FT I will give tha a go.

Reply With Quote
  #39 (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 updated the opening range indicator.

Following a suggestion by @ trendisyourfriend, the indicator will now show all incomplete ranges in gray. Once they are completed they switch to their usual color.

This applies to the opening range between session start and completion, to the night session or pre-session range prior to session start, the Asian range during the Asian session and the European range during the European session.

I would appreciate, if some of you tested the indicator. It works correctly on my machine, but with all the rules for the different timezones, it could well be that the Plot() meethod does something unexpected, if you are sitting in the US or Asia.

[COLOR=#810081]https://nexusfi.com/free_downloads/[AUTOLINK]ninjatrader[/AUTOLINK]-7/indicators/620-download.html?view[/COLOR]

The charts below show how incomplete and complete ranges now should be drawn. I did not change the version number of the indicator.

Attached Thumbnails
Click image for larger version

Name:	$EURUSD (5 Min)  16_12_2010 Asian.jpg
Views:	366
Size:	83.8 KB
ID:	27038   Click image for larger version

Name:	$EURUSD (5 Min)  16_12_2010 European.jpg
Views:	319
Size:	86.4 KB
ID:	27039   Click image for larger version

Name:	$EURUSD (5 Min)  16_12_2010 New York.jpg
Views:	324
Size:	102.3 KB
ID:	27040  
Reply With Quote
  #40 (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


A short note on the OpeningRange V31 and Initial Balance Range Bands V31 Indicators.

There are several NinjaTrader bugs that affect the indicator and occur, when you use it on volume or tick bars with very small periods. The bugs are the consequence of a strange behavior of NinjaTrader time stamps. More details are here:




The problem will translate to a very narrow opening range, which is calculated from the high and the low of the first bar.

It will only affect the super fast scalpers, which use tick and volume charts with a resolution that allows to complete the first bar of the session prior to the end of the first second of the trading session.

Normal traders are not affected by the bug.

Reply With Quote




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