Dark Theme
Light Theme
Trading Articles
Article Categories
Article Tools
Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to
register in order to view the content of the threads and start contributing to our community.
It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
Quick COBC NinjaTrader Question
Updated December 6, 2010
Top Posters
looks_one
Fat Tails
with 3 posts (0 thanks)
looks_two
Big Mike
with 2 posts (0 thanks)
looks_3
max-td
with 1 posts (0 thanks)
looks_4
Quick Summary
with 1 posts (0 thanks)
trending_up
3,760 views
thumb_up
0 thanks given
group
1 followers
forum
6 posts
attach_file
0 attachments
Quick COBC NinjaTrader Question
December 6th, 2010, 12:19 PM
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,103
Some indicators should be exclusively used in CalculateOnBarClose = true setting, as
- the algorithm used may not be compatible with CalculateOnBarClose = false
- or the CPU load would be too high
A very brute way to achieve this would be to start OnBarUpDate() with the code snippet
Code
if (!CalculateOnBarClose) return;
and the indicator will display nothing with the false settings.
But is there anything more elegant, such as eliminating CalculateOnBarClose from the indicator dialogue settings?
Can you help answer these questions from other members on NexusFi?
Best Threads (Most Thanked) in the last 7 days on NexusFi
December 6th, 2010, 12:21 PM
Manta, Ecuador
Site Administrator Developer Swing Trader
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,463 since Jun 2009
Thanks Given: 33,236
Thanks Received: 101,661
Fat Tails
Some indicators should be exclusively used in CalculateOnBarClose = true setting, as
- the algorithm used may not be compatible with CalculateOnBarClose = false
- or the CPU load would be too high
A very brute way to achieve this would be to start OnBarUpDate() with the code snippet
Code
if (!CalculateOnBarClose) return;
and the indicator will display nothing.
But is there anything more elegant, such as eliminating CalculateOnBarClose from the indicator dialogue settings?
You could force the issue in OnBarUpdate, thereby ignoring what the user selects.
Code
if (! CalculateOnBarClose ) CalculateOnBarClose = true ;
Mike
December 6th, 2010, 12:22 PM
Frankfurt
Experience: Intermediate
Platform: NinjaTrader
Trading: FGBL 6E B4
Posts: 1,752 since Jun 2009
Thanks Given: 2,309
Thanks Received: 927
comment it out ( // CalculateOnBarClose) - this should work.
i saw this in indicators yet.
if it is faster then, i dont know.
December 6th, 2010, 12:25 PM
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,103
max-td
comment it out ( // CalculateOnBarClose) - this should work.
i saw this in indicators yet.
if it is faster then, i dont know.
If I comment it out it will just be ignored but not compensate a false user setting.
Honestly, I don't undertstand this answer.
December 6th, 2010, 12:27 PM
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,103
Big Mike
You could force the issue in OnBarUpdate, thereby ignoring what the user selects.
Code
if (! CalculateOnBarClose ) CalculateOnBarClose = true ;
Mike
Will try that, if it works, it is a good solution.
NT users are by now already used that is not up to them to select the features, so nobody will complain about it.
December 6th, 2010, 12:29 PM
Manta, Ecuador
Site Administrator Developer Swing Trader
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,463 since Jun 2009
Thanks Given: 33,236
Thanks Received: 101,661
Fat Tails
Will try that, if it works, it is a good solution.
NT users are by now already used that is not up to them to select the features, so nobody will complain about it.
Sure. If you are really kind, you could throw an Alert letting the user know you changed it and why.
Mike
Last Updated on December 6, 2010