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 runner with 0.3 thanks per post
    4. looks_4 gtichauer with 0.1 thanks per post
    1. trending_up 44,632 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

  #11 (permalink)
 rfiske 
temecula,ca
 
Experience: Advanced
Platform: NT
Broker: AMP/Zen
Trading: Euro
Posts: 46 since May 2010
Thanks Given: 33
Thanks Received: 8

I only trade the ES.
I can leave the Session template set to 'CME Global Index Futures RTH' if that makes things easier.

Opening times for the first hour low/high are 8:30 - 9:30 CST, Globex open 15:30 CST close 8:29 CST, and the London session times I'm interested in are 2:00 - 5:00 CST.

The Trade Station indicator didn't care what your session start / stop times were - you just entered the start hh and minutes mm - the stop time hh and mm - and it calculated the OHLC (you could turn on/off any of the OHLC lines) between the 2 operator input times based on what ever time the chart was using.

hope this helps. Really appreciate your help.

yes i can now change things in the code if i know what has to be changed to what. i just downloaded MS Visual Web Developer Express and made changes to a *.cs file but only did exactly what was posted in the Ninja forum. So I could edit the label in the code then compile.

Incidentally you did a great job on the Fib webinar - i learned a lot.

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
ZombieSqueeze
Platforms and Indicators
How to apply profiles
Traders Hideout
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Better Renko Gaps
The Elite Circle
NexusFi Journal Challenge - May 2024
Feedback and Announcements
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
34 thanks
Just another trading journal: PA, Wyckoff & Trends
30 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
23 thanks
GFIs1 1 DAX trade per day journal
21 thanks
  #12 (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

The indicator would not work with the RTH template, because this excludes the night session data, which are required to calculate Globex pivots and your London session pivots. The indicator only uses data on the chart. No data -> no values.

I will a look at this later in the evening and post a first trial version of the indicator, once I am finished.


rfiske View Post
I only trade the ES.
I can leave the Session template set to 'CME Global Index Futures RTH' if that makes things easier.

Opening times for the first hour low/high are 8:30 - 9:30 CST, Globex open 15:30 CST close 8:29 CST, and the London session times I'm interested in are 2:00 - 5:00 CST.

The Trade Station indicator didn't care what your session start / stop times were - you just entered the start hh and minutes mm - the stop time hh and mm - and it calculated the OHLC (you could turn on/off any of the OHLC lines) between the 2 operator input times based on what ever time the chart was using.


Reply With Quote
Thanked by:
  #13 (permalink)
 rfiske 
temecula,ca
 
Experience: Advanced
Platform: NT
Broker: AMP/Zen
Trading: Euro
Posts: 46 since May 2010
Thanks Given: 33
Thanks Received: 8


Sorry - you are right I have build a Globex/regular session template that i should have listed not the std template times.

I actually am using (all times CST) Sunday 17:00:00 - Monday 15:14:59, Monday 15:30:00 - Tuesday 5:14:59, repeats through Friday 15:14:59.

does that make sense now?

Started this thread Reply With Quote
  #14 (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

That's the standard CME US Index Futures ETH template, except you cut it short 1 second. I think you cannot enter seconds iinto the session template of NinjaTrader.


rfiske View Post
Sorry - you are right I have build a Globex/regular session template that i should have listed not the std template times.

I actually am using (all times CST) Sunday 17:00:00 - Monday 15:14:59, Monday 15:30:00 - Tuesday 5:14:59, repeats through Friday 15:14:59.

does that make sense now?


Reply With Quote
  #15 (permalink)
 rfiske 
temecula,ca
 
Experience: Advanced
Platform: NT
Broker: AMP/Zen
Trading: Euro
Posts: 46 since May 2010
Thanks Given: 33
Thanks Received: 8

2-5 AM CST from my experience seems to be the more critical period for London/Europe trades of the ES futures. Would be interested in your observations.

I start trading pre-mkt about 7AM CST. If we are inside the London 2-5 AM CST then i look for possible fade of the London 2-5 H/L or a breakout or failed Breakout. Same for Globex H/L. can't tell you % likely hood of these trades working but i do look for these.

Started this thread Reply With Quote
  #16 (permalink)
 rfiske 
temecula,ca
 
Experience: Advanced
Platform: NT
Broker: AMP/Zen
Trading: Euro
Posts: 46 since May 2010
Thanks Given: 33
Thanks Received: 8

Okay - on time entry you are correct - i was just taking the time off the chart (lazy i guess) not the actual template. The chart shows the candle time to 00:00:00 but the template is set to 00:00.

Started this thread Reply With Quote
  #17 (permalink)
 rfiske 
temecula,ca
 
Experience: Advanced
Platform: NT
Broker: AMP/Zen
Trading: Euro
Posts: 46 since May 2010
Thanks Given: 33
Thanks Received: 8

Okay attached is what I think is the correct Session template - new to NT (Trade Station 7+ yrs) so let me know if it is correct

Attached Thumbnails
Click image for larger version

Name:	CST Globex Session Temp.jpg
Views:	268
Size:	56.3 KB
ID:	17612  
Started this thread Reply With Quote
  #18 (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

Template is not correct. Timezone must always be exchange time, so you need to set it to Central Time. The Sunday start time will be 5:00 PM. All the other times are correct in Central Time.

Just use the existing template CME US Index Futures ETH. It is all done! Connect ES to this template via instrument manager. Use <instrument settings>, when you open a chart.

I did not forget about the indicator, but had no time yesterday to play around with it.



rfiske View Post
Okay attached is what I think is the correct Session template - new to NT (Trade Station 7+ yrs) so let me know if it is correct


Reply With Quote
Thanked by:
  #19 (permalink)
 rfiske 
temecula,ca
 
Experience: Advanced
Platform: NT
Broker: AMP/Zen
Trading: Euro
Posts: 46 since May 2010
Thanks Given: 33
Thanks Received: 8


Fat Tails View Post
Template is not correct. Timezone must always be exchange time, so you need to set it to Central Time. The Sunday start time will be 5:00 PM. All the other times are correct in Central Time.

Just use the existing template CME US Index Futures ETH. It is all done! Connect ES to this template via instrument manager. Use <instrument settings>, when you open a chart.

I did not forget about the indicator, but had no time yesterday to play around with it.

Thanks - Got the changes - should have seen them myself. I know it should be CST and thus Sunday start time 5PM - duh! But another dumb mistake! Thanks again for the correction.

Started this thread Reply With Quote
  #20 (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


As a first answer to your request, I attach an indicator which plots the opening range for various futures contracts. I have done this for my own needs as well. There were four things I wanted to integrate:

(1) Display the open of the RTH session.

(2) If you put the indicator on a chart and then switch instruments, the indicator should automatically select the correct opening period for the instrument. For example the opening period for ES should be 8:30 to 9:30 AM CT, whereas the opening period for 6E should be 8:00 to 9:00 AM ET. This requires that the indicator knows the default values and that you can change them via indicator dialogue.

(3) With ever changing daylight savings times between Europe the US and the rest of the world, the indicator should adapt automatically to these times. So you cannot enter the opening time in your local timezone, but you need to indicate teh session length (close time as per session template - opening time). For example for ES the correct session length would be 15:15 - 8:30 = 6h45, for TF the session length would be 18:00 - 9:30 = 8h30.

(4) Some of the session start at strange times, like the GC session at 8:20 AM, or the SI session at 8:25 AM. If you use larger time frames the data required to calculate the opening range is not included with the chart data base. There will be no bar opening at 8:25 and you cannot display the correct RTH open. This requires to load minute data separately, and calculate the opening range from this data.

(1) to (3) are implemented with the current version, have kept (4) for future improvement.


Default session times based on ETH, opening period based on RTH

FOREX: ETH session 17:00 ET - 17:00 ET, opening period starts 8:00 ET
Currency Futures: ETH session 17:00 CT - 16:00 CT, opening period starts 7:00 CT
DX (Dollar Index): ETH session 20:00 ET - 18:00 ET, opening period starts 8:00 ET
CME Index Futures: ETH session 15:30 CT - 15:15 CT, opening period starts 8:30 CT
TF (Russell 2000): ETH session 20:00 ET - 18:00 ET, opening period starts 9:30 ET
EUREX Index Futures: ETH session 8:00 CET - 22:00 CET, opening period starts 9:00
CBOT Interest Rate Futures: ETH session 17:00 CT - 16:00 CT, opening period starts 8:20 CT
EUREX Interest Rate Futures: ETH session 8:00 - 22:00 CET, opening period starts 8:00
CL (WTI Crude): ETH session 18:00 ET - 17:15 ET, opening period starts 9:00 ET
BC (Brent Crude, ICE): ETH session 20:00 ET - 18:00 ET, opening period starts 9:00 ET
GC (Gold) : ETH session 18:00 ET - 17:15 ET, opening period starts 8:20 ET
SI (Silver): ETH session 18:00 ET - 17:15 ET, opening period starts 8:25 ET
HG (Copper): ETH session 18:00 ET - 17:15 ET, opening period starts 8:10 ET

To catch the correct opening period, you need to enter the difference between session end as per session template and the opening time.

The solution adapted may look complicated, but there are some advantages:

- The indicator will adapt to any chosen template and settings
- You can select the duration of the opening period (for example 5, 15, 30 or 60 minutes)
- You can switch instruments and the opening range will adapt to the instrument
- The opening range will remain correct, when the US has DST for Halloween and Europe is already back to standard time

Feedback welcome.

Attached Thumbnails
Click image for larger version

Name:	6E 09-10 (5 Min)  03_08_2010.jpg
Views:	438
Size:	101.8 KB
ID:	17901  
Attached Files
Elite Membership required to download: OpeningRangeV23.zip
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