OHLC calculations indicator - NinjaTrader Programming | futures io social day trading
futures io futures trading

OHLC calculations indicator
Updated: Views / Replies:3,113 / 3
Created: by vast Attachments:0

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 100,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

Thread Tools Search this Thread

OHLC calculations indicator

  #1 (permalink)
Trading Experience: Intermediate
Platform: Ninja
vast's Avatar
Posts: 167 since Jun 2009
Thanks: 154 given, 62 received

OHLC calculations indicator

I realise that there are several pivot indicators out there, especially the one designed by Harry over at the Ninja Forum.
But I still cannot get them to load the official OHLC (or close to it) that the exchange issues. ie CME, ICE ...
I realise that some people use Pit session OHLC, but I prefer to use the official values.
I believe the problem lies with the time frames used to calculate the close (settlement price) and the open and close.
This link outlines the time frames used. CSI® Support Blog: LIGHT SWEET CRUDE OIL (SYMBOL CL)
The indicators that I am aware of have a session time. This works for Open, High, Low but not the close. The close(settlement) price is usually calculated at the close of the pit. Which in the case of CL is at 14:30. The Open, High and Low is usually calculated from 18:00 the day before to 17:15 current day. Well this is for CL. But the same approach is often used for other instruments.
I was wondering if anyone has developed an indicator that allows for specific time slots to calculate the OHLC?
I have looked at the code and it is a bit beyond me at present. I guess all I need is a way of entering a specific time to calculate the close. The rest of the values can be picked up by the current methods.
If you feel that your indicator is calculating correctly, I would suggest checking the values at the following:
CL: Light Sweet Crude Oil (WTI)
These values always match the ones that are used here as well:
Daily Notes - Numbers for Day Traders
I stand to be corrected and hope that we can solve a problem that I believe exists.

Reply With Quote
  #2 (permalink)
Sydney, NS
Trading Experience: Intermediate
Platform: Ninja
Broker/Data: Zen-Fire
Favorite Futures: TF,S,GC
cclsys's Avatar
Posts: 607 since Nov 2009
Thanks: 248 given, 387 received

Vast, I don't think I can help but I heartily agree with your concern. Since moving over to Ninja I find I pay less and less attention to previous H,L,C mainly because it seems to difficult to figure out what they were. (Well, H and L are fairly easy, but close I have given up on basically since I have no idea what it is most of the time.) That said, since I am getting into VolumeProfile type stuff I am now emphasising the last PVP price in the afternoon versus the Close and finding it more helpful generally.

Perhaps with more 24-hr like markets in so many instruments the fact that it is so hard to keep track of the close is indicative that perhaps it is not so important as it used to be. That said, many markets really are active only during the day-sessions so in those cases the Closes are a) easier to determine and b) more significant referents.

Reply With Quote
  #3 (permalink)
Newfields, NH
Trading Experience: Advanced
Platform: Tradestation
Posts: 18 since Aug 2009
Thanks: 0 given, 3 received

I agree I still use tradestation because of the Pivots and OHLC, not the only reason but one of the major ones. It would be great to have something more accurate. I have been using the custom lines to enter my own. Its ok for the current day trading but useless for past data.

Reply With Quote
  #4 (permalink)
Trading Experience: Intermediate
Platform: Ninja
vast's Avatar
Posts: 167 since Jun 2009
Thanks: 154 given, 62 received

The close is the Settlement price at the close of the pit. The Open is at 18:00 and the High and Low is for the the next 24hrs.
All the indicators I am aware of only allow for start and finish times. This will give you a Open, High and Low but the close will be at the incorrect time.
So all we need is the ability to manually enter the close time and leave the rest.
Now the close and settlement is slightly different as the Settlement price is a calculated value. This is the value I believe the standard Pivot Points are calculated on.
Hopefully someone may be able to add some code to an existing indicator that allows for the close value to be calculated independently. ie the CMI pivot indicator

Reply With Quote


futures io > > > > > OHLC calculations indicator

Upcoming Webinars and Events (4:30PM ET unless noted)

futures io is celebrating 10-years w/ over $18,000 in prizes!

Right now

Thanks for everything -- $250 in Amazon Gift Cards ready to give away

Right now

Journal in July -- over $2,500 in prizes w/NinjaTrader


Similar Threads
Thread Thread Starter Forum Replies Last Post
Indicator to Plot the OHLC - user selected start/stop times rfiske NinjaTrader Programming 105 October 14th, 2015 10:14 AM
Multiple dataseries intrabarpersist ohlc Big Mike EasyLanguage Programming 17 December 27th, 2011 12:14 AM
Pivot Point calculations trendisyourfriend Investor/RT 11 May 2nd, 2011 06:50 PM
Slippage Calculations for Optimization benharrell Traders Hideout 7 December 20th, 2010 03:53 AM
OHLC with optional session times carlos NinjaTrader Programming 1 September 21st, 2009 07:37 AM

cme, cmi, code, crude, crude oil, data, day trading, el, ema, es, futures, indicator, indicators, ma, ninja, ninjascript, ninjatrader, ohlc, people, pivot points, pivots, quotes, time frames, tradestation, tradethemarkets, trading, type, values, volumeprofile

All times are GMT -4. The time now is 05:04 PM. (this page content is cached, log in for real-time version)

Copyright © 2019 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432 WhatsApp Business, 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