Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Getting MarketDataType.DailyHigh MarketDataType.DailyLow

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Getting MarketDataType.DailyHigh MarketDataType.DailyLow

    Hi all !

    I'm working with Kinetick Data feed on a strategy that need Dailyhigh ,DailyLow and the Opening price.

    I try to get them such as it is descibe in the help

    So i never received this kind of data. But It's work fine for Ask, Bid and Last.

    Do you know when these datas are sent ? on connexion ? every X second ?
    ( if it is on connexion, how launch the strategy before ? )

    Thanks in advance !

    #2
    Hello,

    Thank you for the question.

    The OnMarketData method is fired off every time one of the data events is received, being that these values are not updated very often you probably will not see this event very often.

    This will also produce the values when you connect or when the script is started.

    Please try to reconnect and see if you are getting values passed initially when the connection starts.

    Please let me know if I may be of additional assistance.
    Last edited by NinjaTrader_Jesse; 10-15-2014, 03:32 PM.
    JesseNinjaTrader Customer Service

    Comment


      #3
      Thanks.

      But, i can enable my strategy only when the data feed is already connected. So, it is to late.
      how do go listen the connection market data event ?

      Comment


        #4
        Hello,

        Thank you for the reply.

        You are correct for a strategy the connection would not fire this event because it is disabled but upon enabling the strategy the event would be triggered. The connetion portion would apply to indicators.

        I wanted to check if you are using the correct syntax in this method.

        I am able to get the values while using kinetick by using the following:

        protected override void OnMarketData(MarketDataEventArgs e) {
        Print(e.MarketData.DailyHigh.Price);
        Print(e.MarketData.DailyLow.Price);
        Print(e.MarketData.Opening.Price);
        }

        Please let me know if I may be of additional assistance.
        JesseNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Jon17, Today, 04:33 PM
        0 responses
        1 view
        0 likes
        Last Post Jon17
        by Jon17
         
        Started by Javierw.ok, Today, 04:12 PM
        0 responses
        6 views
        0 likes
        Last Post Javierw.ok  
        Started by timmbbo, Today, 08:59 AM
        2 responses
        10 views
        0 likes
        Last Post bltdavid  
        Started by alifarahani, Today, 09:40 AM
        6 responses
        41 views
        0 likes
        Last Post alifarahani  
        Started by Waxavi, Today, 02:10 AM
        1 response
        21 views
        0 likes
        Last Post NinjaTrader_LuisH  
        Working...
        X