Strategy Multi-Timeframe OnBarUpdate() Sequence - NinjaTrader | futures trading

Go Back

> Futures Trading, News, Charts and Platforms > Platforms and Indicators > NinjaTrader

Strategy Multi-Timeframe OnBarUpdate() Sequence
Started:June 18th, 2013 (10:08 PM) by NJAMC Views / Replies:487 / 0
Last Reply:June 18th, 2013 (10:08 PM) Attachments:1

Welcome to

Welcome, Guest!

This forum was established to help traders (especially futures traders) by openly sharing indicators, strategies, methods, trading journals and discussing the psychology of trading.

We are fundamentally different than most other trading forums:
  • We work extremely hard to keep things positive on our forums.
  • We do not tolerate rude behavior, trolling, or vendor advertising in posts.
  • We firmly believe in openness and encourage sharing. The holy grail is within you, it is not something tangible you can download.
  • 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, and we will never resell your private information.

-- Big Mike

Thread Tools Search this Thread

Strategy Multi-Timeframe OnBarUpdate() Sequence

Old June 18th, 2013, 10:08 PM   #1 (permalink)
Elite Member
Atkinson, NH USA
Futures Experience: Intermediate
Platform: NinjaTrader 7/8
Broker/Data: NinjaTrader Brokerage
Favorite Futures: Futures, CL
NJAMC's Avatar
Posts: 1,864 since Dec 2010
Thanks: 2,920 given, 2,219 received

Strategy Multi-Timeframe OnBarUpdate() Sequence

I have seen this problem before, but have no idea what causes it. I think I scared it away on another project (some work around I simply don't remember).

The problem I am having is in a MTF strategy (may happen in a single timeframe but not tested). The issue is the sequence in which the OnBarUpdate() seems to fire. Hummm... Think I figured it out....

The issue was with my "GHPGenericPlot()" indicator. I used this to create dynamic plots on my strategies so I am only pushing data to an exposed method. Come to find out, NT7 might not Fire the Init() and OnBarUpdate() functions until the Plot value is requested. I seem to have fixed this by accessing PLOT[0] of this indicator from the strategy.

I have attached the CS file for those interested. If there is a better way to force this indicator to Init please let me know.

Nil per os
-NJAMC [Generic Programmer]

LOM WIKI: NT-Local-Order-Manager-LOM-Guide
Artificial Bee Colony Optimization
Attached Files
Register to download File Type: cs GHPGenericPlot.cs (8.8 KB, 18 views)
Reply With Quote

Reply > Futures Trading, News, Charts and Platforms > Platforms and Indicators > NinjaTrader > Strategy Multi-Timeframe OnBarUpdate() Sequence

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

NinjaTrader 8: Programming Profitable Trading Edges w/Scott Hodson

Elite only

Anthony Drager: Executing on Intermarket Correlations & Order Flow, Part 2

Elite only

Adam Grimes: Five critically important keys to professional trading

Elite only

Machine Learning Concepts w/FIO member NJAMC

Elite only

MarketDelta Cloud Platform: Announcing new mobile features

Dec 1

NinjaTrader 8: Features and Enhancements

Dec 6

Similar Threads
Thread Thread Starter Forum Replies Last Post
Multi Timeframe MA cross Strategy ryangillespie The Elite Circle 1 December 8th, 2011 05:31 PM
NT Multi Timeframe and multi indicator review eurostoxx NinjaTrader 3 August 29th, 2011 12:07 PM
Multi-Timeframe in a strategy max-td NinjaTrader Programming 30 July 22nd, 2010 12:35 PM
sensitivity multi-timeframe trick (small timeframe on bigger one) SARdynamite NinjaTrader Programming 4 July 15th, 2010 02:57 PM
Ninja Strategy multi-timeframe issue/Strategy to indicator nw123 NinjaTrader Programming 2 December 20th, 2009 06:24 PM

All times are GMT -4. The time now is 07:20 AM.

Copyright © 2016 by 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 2016-10-27 in 0.07 seconds with 20 queries on phoenix via your IP