NexusFi: Find Your Edge


Home Menu

 





Indicator to Plot the OHLC - user selected start/stop times


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one Fat Tails with 48 posts (61 thanks)
    2. looks_two rfiske with 17 posts (0 thanks)
    3. looks_3 gtichauer with 16 posts (2 thanks)
    4. looks_4 TempletonPeck with 4 posts (0 thanks)
      Best Posters
    1. looks_one Fat Tails with 1.3 thanks per post
    2. looks_two soulartist with 1 thanks per post
    3. looks_3 cory with 0.3 thanks per post
    4. looks_4 gtichauer with 0.1 thanks per post
    1. trending_up 44,702 views
    2. thumb_up 68 thanks given
    3. group 13 followers
    1. forum 105 posts
    2. attach_file 29 attachments




 
Search this Thread

Indicator to Plot the OHLC - user selected start/stop times

  #61 (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,103


gtichauer View Post
Today is the first day with realtime data on the two session template....and I see 60m opening ranges (renamed IB high/low) are not being plotted right as I mentioned yest when looking back the chart....do u know why this could be happening?

The indicator OpeningRangeV27 only works on single session templates. The next version V28 will work on double and triple session templates and should be ready tomorrow.


gtichauer View Post
Also curiosly GomCD stop plotting after pit session initiated on the two session template? any idea if this recent changes may have something to do?

thanks,

You need to ask somebody else on the GOM indicator. Best go to GOMI's thread and put the question there. I do not use it and do not know how it reacts to different sessions.


Testing the SessionPivotsV28 indicator

Would you mind testing the SessionPivotsV28 indicator?

Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
ZombieSqueeze
Platforms and Indicators
Quant vue
Trading Reviews and Vendors
MC PL editor upgrade
MultiCharts
REcommedations for programming help
Sierra Chart
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
 
  #62 (permalink)
 
gtichauer's Avatar
 gtichauer 
Argentina
 
Experience: Intermediate
Platform: Ninja
Broker: Zen Fire / IB
Trading: ES, TF, 6E, CL
Posts: 379 since Jul 2009
Thanks Given: 807
Thanks Received: 298


Fat Tails View Post

Testing the SessionPivotsV28 indicator

Would you mind testing the SessionPivotsV28 indicator?

FT,

I tested V28 both CurrentDay and Pivots on RTH and ETH and they work great.....I compared with the vaues u posted on the link and I have exactly the same.....

look forward to Opening Range V28 to complete the arsenal.....thanks so much...

GT
Follow me on Twitter Reply With Quote
Thanked by:
  #63 (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,103



gtichauer View Post
FT,

I tested V28 both CurrentDay and Pivots on RTH and ETH and they work great.....I compared with the vaues u posted on the link and I have exactly the same.....

look forward to Opening Range V28 to complete the arsenal.....thanks so much...


Don't hesitate to inform me if any values are not correct. I appreciate feedback, as I cannot test 10 different time zones and data feeds myself. Thank you for testing.

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

Here is a preliminary version of the OpeningRangeV28, not yet fully tested. It follows a competely different logic than the precursor, so it is more or less a new indicator. These are the changes:


Up to 3 Sessions to be entered via Session Manager

You need to enter all session times via the session manager. The indicator will plot the opening range on the beginning of your main session. You cannot enter session times via indicator dialogue, it is done via the session manager.


Select the session where to plot the opening range

Via indicator dialogue you can select the first, second or third intraday session. The opening range plots until the end of the trading day.


Select your opening range

The default is 60 min, but you can also use 5 min, 120 min or any different period.


Choose between the Night Session, the European Session and the Asian Session

The indicator allows you to display the the range of price activity prior to the opening. As a default it will display the Night Session Range. which includes all price action prior to open. Via indicator panel you can also opt to display the European Session Range or the Asian Session Range. The times for the European and Asian Sessions can be individually selected. Use Central European Time for the Euriopean Session or Tokyo Standard Time for the Asian Session.


Example

I have used a three session template for $EURUSD. The three sessions represent the Asian, the European and the US session. You can obviously build your own session template with different times.

The indicator displays opening range for US session (third session selected), the European Session Range and Asian Session Range (second instance of the indicator needed to display the Asian Session in parallel with the European Session).

You will not that the high of the Asian Session Range was an important support for EURUSD during the US session today.


Edit: This version only runs on NT 7.0.0.21, for users with NT 7.0.0.20 or earlier, please see post #68 of this thread.

Attached Thumbnails
Click image for larger version

Name:	FOREX Template.JPG
Views:	155
Size:	45.2 KB
ID:	20004   Click image for larger version

Name:	$EURUSD (15 Min)  10_09_2010.jpg
Views:	187
Size:	110.1 KB
ID:	20005  
Attached Files
Elite Membership required to download: TestOpeningRangeV28.zip
Reply With Quote
Thanked by:
  #65 (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,103

This example uses a two-session- template for ES (Globex Night Session and RTH Session).

The chart shows RTH pivots, opening range and European Session range.

Attached Thumbnails
Click image for larger version

Name:	CME Template.JPG
Views:	146
Size:	46.1 KB
ID:	20007   Click image for larger version

Name:	YM 12-10 (5 Min)  10_09_2010.jpg
Views:	180
Size:	108.3 KB
ID:	20008  
Reply With Quote
Thanked by:
  #66 (permalink)
 
gtichauer's Avatar
 gtichauer 
Argentina
 
Experience: Intermediate
Platform: Ninja
Broker: Zen Fire / IB
Trading: ES, TF, 6E, CL
Posts: 379 since Jul 2009
Thanks Given: 807
Thanks Received: 298


Fat Tails View Post
Here is a preliminary version of the OpeningRangeV28, not yet fully tested. It follows a competely different logic than the precursor, so it is more or less a new indicator. These are the changes:

FT,

I receive an error when importing it....

TechSmith | Screencast.com, online video sharing, 09.10.2010-16.23.32

GT
Follow me on Twitter Reply With Quote
Thanked by:
  #67 (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


gtichauer View Post

ver. b21, I just import it np, you may want to delete the old indi first.

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

I have an idea, why this might have failed. I have coded the indicator today by using NT 7.0.0.21 and it uses the method Bars.GetTradingDayFromLocal() in line 743. This is a new code breaking change that has been decided for NT 7, as the old methods are no longer supported.

See this thread here for further information:

GetSessionBar() flawed - [AUTOLINK]NinjaTrader[/AUTOLINK] Support Forum

If you still use NT 7.0.0.20 or earlier, the indicator may not work. If you look at your tracefile you should find an error message that confirms my suspicion.

So I cannot use the old method, because it does not work for NT 7.0.0.21 and higher, and I cannot use the new method, because it will not run on the prior versions still installed by most of the users.

I finally found a workaround. The version below does not use the offensive methods and should work. I have tested it on my second machine as well and it runs as expected with NT 7.0.0.21.

Indicator below contained in Test2OpeningRange should run on all versions of NT7.

Attached Files
Elite Membership required to download: Test3OpeningRangeV28.zip
Reply With Quote
Thanked by:
  #69 (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,103

OK, I found a second line with the offensive code. Test2OpeningRange should now also run on older versions of NT 7.0

Have replaced the code again, you can download it from the previous post.

This is really more of a NinjaTrader problem. Because a number of methods were not correctly implemented for all versions prior to NT 7.0.0.21, I was eager to change and use the correct methods, which I already had tested on a custom install during the last week. So I forgot that everybody else still has NT 7.0.0.20 or earlier, and that these new tested methods cannot be used.
The precurseurs were flawed, so I did not implement them either. Took some time to write the workaround, which should comply with all versions.

Reply With Quote
Thanked by:
  #70 (permalink)
 
gtichauer's Avatar
 gtichauer 
Argentina
 
Experience: Intermediate
Platform: Ninja
Broker: Zen Fire / IB
Trading: ES, TF, 6E, CL
Posts: 379 since Jul 2009
Thanks Given: 807
Thanks Received: 298



Fat Tails View Post
OK, I found a second line with the offensive code. Test2OpeningRange should now also run on older versions of NT 7.0

Have replaced the code again, you can download it from the previous post.

This is really more of a NinjaTrader problem. Because a number of methods were not correctly implemented for all versions prior to NT 7.0.0.21, I was eager to change and use the correct methods, which I already had tested on a custom install during the last week. So I forgot that everybody else still has NT 7.0.0.20 or earlier, and that these new tested methods cannot be used.
The precurseurs were flawed, so I did not implement them either. Took some time to write the workaround, which should comply with all versions.

FT,

Now working perfect on historical data....will check Monday on Real time. or weekend on replay....two comments:
- do I have to change anything as I did with prev version to plot OR high/low since they are defined (remaining fixed) instead of since the opening and moving until they are finally defined?

- with prev version I edited and changed the names to IB High/Low and o/n High/low but in this case it is not working? can u guide me how to do this?

thanks again !!!

GT
Follow me on Twitter Reply With Quote




Last Updated on October 14, 2015


© 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