Indicator performance bottleneck - NinjaTrader Programming | futures io social day trading
futures io futures trading


Indicator performance bottleneck
Updated: Views / Replies:2,099 / 24
Created: by Adamus Attachments:1

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

Indicator performance bottleneck

  #21 (permalink)
Elite Member
Cedar Rapids, iowa
 
Futures Experience: Intermediate
Platform: Ninjatrader
Broker/Data: Ninjatrader - Continuum
Favorite Futures: 6E, TF, 6J
 
Tasker_182's Avatar
 
Posts: 626 since Aug 2009
Thanks: 426 given, 1,126 received


cory View Post
use FirstTickOfBar so you don't have to set CalcOnbarclose=true.

I understand that but my point is that your example code had CalculateOnBarClose = true, in the initialize section. Seems like a conflict.

"Money is better than poverty, if only for financial reasons." - Woody Allen
Reply With Quote
 
  #22 (permalink)
Market Wizard
virginia
 
Futures Experience: Intermediate
Platform: ninja
Favorite Futures: ES
 
cory's Avatar
 
Posts: 5,216 since Jun 2009
Thanks: 628 given, 6,314 received
Forum Reputation: Legendary


Tasker_182 View Post
I understand that but my point is that your example code had CalculateOnBarClose = true, in the initialize section. Seems like a conflict.

the best practice is having CalculateOnBarClose = true first, see how long it takes before turn it off.

Reply With Quote
 
  #23 (permalink)
Elite Member
Birmingham UK
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: IG/eSignal
Favorite Futures: Dax
 
ratfink's Avatar
 
Posts: 3,336 since Dec 2012
Thanks: 11,276 given, 7,090 received



Tasker_182 View Post
I understand that but my point is that your example code had CalculateOnBarClose = true, in the initialize section. Seems like a conflict.

No conflict, when Ninja says 'of no value' they just mean if CalculateOnBarClose is true then it is redundant. As a general performance tip, simple conditional tests are ultra fast operations, to be used in advance of anything else.

Travel Well
Reply With Quote
 
  #24 (permalink)
Elite Member
London, UK
 
Futures Experience: Beginner
Platform: NinjaTrader, home-grown Java
Broker/Data: IB/IQFeed
Favorite Futures: EUR/USD
 
Adamus's Avatar
 
Posts: 1,085 since Dec 2010
Thanks: 470 given, 778 received


Koepisch View Post
Nice coding so far. You can test that you don't call the Get.. functions every time. If you call it 2 times for 2 consecutive IDXs then you can interpolate the other values.

Awesome tip! Unless I screwed up somewhere with the timings I recorded, my inner loop dropped from average 75 microsecs to 15 microsecs.

You can discover what your enemy fears most by observing the means he uses to frighten you.
Reply With Quote
 
  #25 (permalink)
Elite Member
Portland Oregon, United States
 
Futures Experience: Beginner
Platform: Ninjatrader®
Broker/Data: CQG, Kinetick
Favorite Futures: Gameplay Klownbine® Trading of Globex
 
Zondor's Avatar
 
Posts: 1,327 since Jul 2009
Thanks: 1,246 given, 2,635 received

easy way to boost performance of most any indicator

If running on COBC false you can reduce the number of executions of OnBarUpdate by at least 70% by rejecting those price ticks that have the same price as the preceding tick and are not FirstTickOfBar.

if close[0]=previous close and NOT FirstTickOfBar return....

"If we don't loosen up some money, this sucker is going down." -GW Bush, 2008
“Lack of proof that something is true does not prove that it is not true - when you want to believe.” -Humpty Dumpty, 2014
“The greatest shortcoming of the human race is our inability to understand the exponential function.”
Prof. Albert Bartlett
Reply With Quote
The following user says Thank You to Zondor for this post:

Reply



futures io > > > > > Indicator performance bottleneck

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

Linda Bradford Raschke: Reading The Tape

Elite only

Adam Grimes: TBA

Elite only

NinjaTrader: TBA

January

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Performance impact of calling multiple instances of an external indicator Big Mike NinjaTrader Programming 12 June 27th, 2015 04:47 AM
Strategy Performance JamesCBO NinjaTrader 11 October 20th, 2013 05:48 AM
How do you see the overnight performance? arnie Traders Hideout 3 January 28th, 2013 11:26 PM
Relative Performance Indicator soulartist NinjaTrader 4 November 22nd, 2010 10:21 PM
Performance Indicator MXASJ NinjaTrader Programming 2 April 16th, 2010 01:13 AM


All times are GMT -4. The time now is 09:55 PM.

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-12 in 0.09 seconds with 20 queries on phoenix via your IP 54.221.93.187