custom timeframe - NinjaTrader Programming | futures io social day trading
futures io futures trading


custom timeframe
Updated: Views / Replies:1,280 / 3
Created: by toulouse-lautrec 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 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
 
Thread Tools Search this Thread
 

custom timeframe

  #1 (permalink)
Elite Member
Europe
 
Futures Experience: Beginner
Platform: NinjaTrader
 
Posts: 73 since Jun 2009
Thanks: 11 given, 52 received

custom timeframe

Hello,
i was wondering if it might be possible to have an indicator perform on another individually adjustable timeframe, independent of the timeframe the current chart is set to? e.g. chart is set to 1000 ticks however indicator is based on 5 min.

if so, does anyone have an example they might share or code snippets?

greetings

Reply With Quote
 
  #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.

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



toulouse-lautrec View Post
Hello,
i was wondering if it might be possible to have an indicator perform on another individually adjustable timeframe, independent of the timeframe the current chart is set to? e.g. chart is set to 1000 ticks however indicator is based on 5 min.

if so, does anyone have an example they might share or code snippets?

greetings

This is possible. You can code an indicator that performs calculations on another adjustable timeframe. There are a few different solutions:


(1) You can simply add a second bar series to your chart and add an indicator to that bar series. If you do not wish to see it, you can set the second bar series to transparent. The inconvenient of this method is that your chart may suffer from non-equidistant bar spacing.

(2) You can code an indicator that loades secondary bars, which are used for calculations. I have coded a lot of these, and most versions are obfuscated, because it is pretty difficult to do and get a good result.

Examples are:

2a) VisualSMA and VisualEMA: They allow you to calculate the SMA and EMA from minute, tick, volume or Range bars irrespective of your main bar series on the chart. The non-equidistant bar spacing is gone, but you pay a price as the method introduces a little lag. Assume a 500 tick bar which closes at 2:35:42 PM (primary bar) and a 5 min bar which is used for calculating indicator values which closes at 2:35:00 PM. In that case the indicator value calculated from the 2:35:00 PM bar can only be displayed 42 seconds later, when the tick bar closes. You indicator now has a lag, which was not the case for solution (1). You cannot have it all, you will either get non-equidistant bar spacing or a lag. For backtesting this can be avoided, if you primary bar series is a 1-tick series. In that case you are in the best of all worlds, but the result - a 1 tick series on your chart - is not exactly visually appealing.

The indicators can be found here:

https://futures.io/download/ninjatrader-7/indicators/942-download.html
https://futures.io/download/ninjatrader-7/indicators/939-download.html

2b) Here is an open code indicator, which I have published, which allows to calculate the exact opening range of a minute based period on a tick, range or volume chart. The indicators works, but I have recently developed a better approach to the problem. Nevertheless, you could have a look at the code, as it is a genuine multi-timeframe indicator.

https://futures.io/download/ninjatrader-7/indicators/937-download.html?view

3) It is also possible to calculate composite bars. For example, if you have a 5 min bar series, you can easily calculate indicators using an integer multiple of the 5 min bar period. You could produce a 10 min Stochastics, or a 35 min MACD.

Reply With Quote
The following user says Thank You to Fat Tails for this post:
 
  #4 (permalink)
Elite Member
Europe
 
Futures Experience: Beginner
Platform: NinjaTrader
 
Posts: 73 since Jun 2009
Thanks: 11 given, 52 received

FT,

thanks for your very detailed reply.

Shortly after posting i found your thread where you discuss your two indicators. These are really a great help, thanks again for sharing your work here.

I will keep experimenting using your VisualSMA with a period of 1 and the desired period as input for indicators, which should hopefully have the desired effect.

Reply With Quote
The following user says Thank You to toulouse-lautrec for this post:

Reply



futures io > > > > > custom timeframe

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
Trendlines not matching from Higher Timeframe to lower Timeframe? bluemele NinjaTrader 26 October 8th, 2012 03:35 PM
Accuracy of indicators by timeframe RM99 Psychology and Money Management 1 August 23rd, 2012 01:49 PM
Timeframe makes all the difference frostengine Traders Hideout 2 March 28th, 2012 01:41 AM
sensitivity multi-timeframe trick (small timeframe on bigger one) SARdynamite NinjaTrader Programming 4 July 15th, 2010 03:57 PM
Basic TimeFrame Pattern wh The Elite Circle 0 October 8th, 2009 05:39 AM


All times are GMT -4. The time now is 02:35 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-14 in 0.09 seconds with 19 queries on phoenix via your IP 54.221.76.68