Other MarketData - futures io
futures io futures trading

Other MarketData

Discussion in NinjaTrader

    1. trending_up 1,145 views
    2. thumb_up 0 thanks given
    3. group 2 followers
    1. forum 4 posts
    2. attach_file 0 attachments

Welcome to futures io: the largest futures trading community on the planet, with well over 125,000 members
  • 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 and simple.

-- Big Mike, Site Administrator

(If you already have an account, login at the top of the page)

Search this Thread

Other MarketData

(login for full post details)
  #1 (permalink)
Posts: 4 since Sep 2011
Thanks: 1 given, 0 received

Hi guys,
i don't like this OnMarketData from NT.
There is an other one, runs perfectly in an OnBarUpdate() and there is no need for an OnMarketData method.
But i don't know where it come from.

cur_Ask = MarketData.Ask.Price;
cur_Bid = MarketData.Bid.Price;
cur_Last = MarketData.Last.Price;
close_Pr_Day = MarketData.LastClose.Price;
cur_.... are personal variables and i use close_Pr_Day as the close of the previous day.

if ( BarsInProgress == 0 && FirstTickOfBar)
                close_Pr_Day = MarketData.LastClose.Price;        //call it only once and store it in close_Pr_Day
However this don't work:
day_Open = MarketData.Opening.Price;
Any idea ??

Reply With Quote

Can you help answer these questions
from other members on futures io?
NT8 indicator to simulate a Funding Evaluation where to …
COTbase for quant trading?
Elite Algorithmic NinjaTrader Trading
Indicators for pair trading MES and M2K
Platforms and Indicators
ZigZag with Depth and Backstep
EasyLanguage Programming
Where can I find Cost to Trade and Book Depth info?
Emini and Emicro Index
Best Threads (Most Thanked)
in the last 7 days on futures io
Battlestations: Show us your trading desks!
137 thanks
Big Mike in Ecuador
34 thanks
Want your NinjaTrader indicator created, free?
32 thanks
Saturday Morning Market Replay!
20 thanks
Selling Options on Futures?
19 thanks
(login for full post details)
  #3 (permalink)
Posts: 4 since Sep 2011
Thanks: 1 given, 0 received

Seriously nobody has heard of it ??

Reply With Quote
(login for full post details)
  #4 (permalink)
Site Sponsor

Web: NinjaTrader
AMA: Ask Me Anything
Webinars: NinjaTrader Webinars
Elite offer: Click here
NinjaTrader's Avatar
Posts: 1,576 since May 2010
Thanks: 185 given, 2,451 received

The MarketData property is not supported NinjaScript so there is no expected behaviour. It is also possible that this property could be null so you should check for null object before accessing it. The opening price property may or may not be set depednant on what information we receive via the market data/broker provider API.

Follow me on Twitter Reply With Quote
(login for full post details)
  #5 (permalink)
Posts: 4 since Sep 2011
Thanks: 1 given, 0 received

I know it's not supported. It works for me as it has to do except the OPEN price.
My question was if anyone knows anything about where it come from.

Reply With Quote

futures io Trading Community Platforms and Indicators NinjaTrader > Other MarketData

Last Updated on December 20, 2011

Upcoming Webinars and Events

NinjaTrader Indicator Challenge!


Battlestations! Show us your trading desk - $1,500 in prizes!


Importance of Finding Your Own Way w/Adam Grimes

Elite only

Journal Challenge w/Jigsaw


Copyright © 2021 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