NexusFi: Find Your Edge


Home Menu

 





OnMarketData Problem


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one Quick Summary with 1 posts (0 thanks)
    2. looks_two humy65 with 1 posts (0 thanks)
    3. looks_3 bukkan with 1 posts (0 thanks)
    4. looks_4 tulanch with 1 posts (0 thanks)
    1. trending_up 3,209 views
    2. thumb_up 0 thanks given
    3. group 2 followers
    1. forum 3 posts
    2. attach_file 0 attachments




 
Search this Thread

OnMarketData Problem

  #1 (permalink)
 humy65 
Haifa/Israel
 
Experience: Beginner
Platform: NinjaTrader
Trading: Stocks
Posts: 15 since Mar 2012
Thanks Given: 3
Thanks Received: 2

NT7:

I have a multi-timeframe indicator which is loading 1Tick series and 60Min series for the default instrument.
Apparently, the OnMarketData event is being called 3 times, once per each time series loaded.
BarsInProgress is being reported 0 for each of the calls.
This behaviour is different within a strategy, where this event is being called once.

Is there a way to find out which time series is in charge for the OnMarketData call withing the indicator ?

Thanks

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
REcommedations for programming help
Sierra Chart
Cheap historycal L1 data for stocks
Stocks and ETFs
Better Renko Gaps
The Elite Circle
MC PL editor upgrade
MultiCharts
Trade idea based off three indicators.
Traders Hideout
 
  #3 (permalink)
 tulanch 
Salt Lake City, UT
 
Experience: Intermediate
Platform: SC, NT, MT
Broker: AMP
Trading: NQ ES YM Bonds
Posts: 265 since Mar 2010
Thanks Given: 50
Thanks Received: 387


I'd try printing out the price and see which it aligns too...

Reply With Quote
  #4 (permalink)
 bukkan 
Calcutta, India
 
Experience: Intermediate
Platform: ArthaChitra
Posts: 278 since Jun 2009
Thanks Given: 161
Thanks Received: 271

What codes are you using? Can you post some codes replicating the behavior.

Also for the same instrument NinjaTrader will return the first bars in progress series in the OnMarketData event.

From help files:
With multi-time frame and instrument strategies, OnMarketData() will be called for all unique instruments in your strategy. Use the BarsInProgress to filter the OnMarketData() method for a specific instrument. (BarsInProgress will return the first BarsInProgress series that matches the instrument for the event)
NinjaTrader Version 7

Reply With Quote




Last Updated on October 16, 2012


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
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.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts