Indicator to Plot the OHLC - user selected start/stop times - NinjaTrader Programming | futures io social day trading
futures io futures trading


Indicator to Plot the OHLC - user selected start/stop times
Updated: Views / Replies:22,504 / 105
Created: by rfiske Attachments:30

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
 30  
 
Thread Tools Search this Thread
 

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

  #21 (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,318 received
Forum Reputation: Legendary

thought on forex hours by Kiwi
240 Min / 4 Hour Chart Time-frame Query - Sierra Chart Support Board

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



FOREX offers several breakout opportunities per day. Depending on the currency pair, it is possible to trade the opening range breakouts: The Asian open, the London open and the New York open. The indicator uses the New York open, as usually the volatility is highest after that open. But for EURUSD you can also trade breakouts from the European Open or for the Aussie a breakout from the Sydney Open would make sense as well.

There is no overlap between New York and Sydney/Tokio. So the FOREX market opens in Asia and closes at 5:00 PM Eastern Time in New York. These are the times used by the indicator.

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

Globex High and Low


This indicator will plot the high and low of the night session. When taken out the indicator continues to plot current day's high and low.

The indicator also has integrated Fibonacci bands for the current day.

Attached Thumbnails
Indicator to Plot the OHLC - user selected start/stop times-cl-09-10-5-min-03_08_2010.jpg  
Attached Files
Register to download File Type: zip AnaCurrentDayOHLV23.zip (6.3 KB, 159 views)
Reply With Quote
The following 6 users say Thank You to Fat Tails for this post:
 
  #24 (permalink)
Elite Member
temecula,ca
 
Futures Experience: Advanced
Platform: NT
Broker/Data: AMP/Zen
Favorite Futures: Euro
 
Posts: 46 since May 2010
Thanks: 32 given, 8 received


Fat Tails View Post
This indicator will plot the high and low of the night session. When taken out the indicator continues to plot current day's high and low.

The indicator also has integrated Fibonacci bands for the current day.

Many thanks!! - will install and see how it works after market close.

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

Also see indicator under #20. That was the main work, as it automatically plots the opening ranges for a number of futures contracts.

I will add another one, which allows you to plot the European session range. This will be simple, just based on start and end time and plot until the end of the session.



rfiske View Post
Many thanks!! - will install and see how it works after market close.


Reply With Quote
 
  #26 (permalink)
Elite Member
temecula,ca
 
Futures Experience: Advanced
Platform: NT
Broker/Data: AMP/Zen
Favorite Futures: Euro
 
Posts: 46 since May 2010
Thanks: 32 given, 8 received


Fat Tails View Post
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.

The 'Opening RangeV23 works great now that i worked through the explanation you sent.

I will try to go into the code and edit the labels and save w/ unique name for the other time periods i wanted - like London & Globex

Reply With Quote
 
  #27 (permalink)
Elite Member
temecula,ca
 
Futures Experience: Advanced
Platform: NT
Broker/Data: AMP/Zen
Favorite Futures: Euro
 
Posts: 46 since May 2010
Thanks: 32 given, 8 received

Fat Tails - Again thanks much for your assistance.

Open RangeV23 as you modified it works great.

I changed the code so I have 3 separate indicators for the 3 time periods I want to plot the High/Low/Mid-point for. Also plots Open with the First Hour Indicator. Globex (3:30PM - 8:30AM CST), London-special (2AM - 5 AM CST), and the First Hour[OR] (8:30AM - 9:30AM CST). I set the correct parameters and unique line attributes for each indicator. The modified Indicators all compiled correctly and plotted/function properly.

However, when I tried to Export the Indicators so I could upload them for anyone else that might be interested in them on futures.io (formerly BMT) forum, I received the Error on the attached.

Couldn't find a solution in the Ninja Help. Any solutions?

Attached Thumbnails
Indicator to Plot the OHLC - user selected start/stop times-ninjascript-export-error.jpg  
Reply With Quote
 
  #28 (permalink)
Site Administrator
Manta, Ecuador
 
Futures Experience: Advanced
Platform: My own custom solution
Favorite Futures: E-mini ES S&P 500
 
Big Mike's Avatar
 
Posts: 46,240 since Jun 2009
Thanks: 29,353 given, 83,234 received

@rfiske, the fix is simple most likely: check the Control Center - Log tab, it will tell you which indicator was missing -- then you just need to manually add that to your Export list because NT couldn't figure it out on its own.

Mike

Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.

Need help?
1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first.
2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses.
3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make.
4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance.
5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers.
6)
Help using the forum? Watch this video to learn general tips on using the site.

If you want
to support our community, become an Elite Member.

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


rfiske View Post

I changed the code so I have 3 separate indicators for the 3 time periods I want to plot the High/Low/Mid-point for. Also plots Open with the First Hour Indicator. Globex (3:30PM - 8:30AM CST), London-special (2AM - 5 AM CST), and the First Hour[OR] (8:30AM - 9:30AM CST). I set the correct parameters and unique line attributes for each indicator. The modified Indicators all compiled correctly and plotted/function properly.

However, when I tried to Export the Indicators so I could upload them for anyone else that might be interested in them on futures.io (formerly BMT) forum, I received the Error on the attached.

Couldn't find a solution in the Ninja Help. Any solutions?

(1) The problem is likely created by the enums. You need to rename the enums to something else and replace them in the whole file.

(2) Also may I ask you not to publish these indicators with the prefix "ana" to avoid confusion. Otherwise we may come to the point, where there are 2 similar indicators with identical names and prefixes. So if you load them up, just select any other prefix, for example name your indicators rfiopeningrange... and then make sure that the three indicators do not use the same names for the enumerations.

Reply With Quote
 
  #30 (permalink)
Elite Member
temecula,ca
 
Futures Experience: Advanced
Platform: NT
Broker/Data: AMP/Zen
Favorite Futures: Euro
 
Posts: 46 since May 2010
Thanks: 32 given, 8 received


I will certainly rename them as you suggested. That assumes I can figure out / learn what the enums are. I will read more about the code as I have never even open a file previously. I'm learning a lot - maybe more than I wanted. - LOL

Reply With Quote

Reply



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

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
Trading Times Indicator Doppio NinjaTrader 7 May 20th, 2016 02:11 PM
Bar Type with User controlled start times DavidHP NinjaTrader 0 May 30th, 2011 11:42 AM
NinjaTrader indicator to shade times on a chart tradersteph The Elite Circle 3 March 5th, 2010 07:05 PM
OHLC calculations indicator vast NinjaTrader Programming 3 January 16th, 2010 06:43 AM
OHLC with optional session times carlos NinjaTrader Programming 1 September 21st, 2009 08:37 AM


All times are GMT -4. The time now is 05:30 AM.

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-16 in 0.16 seconds with 20 queries on phoenix via your IP 54.160.245.121