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

user defined Instrument

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

    user defined Instrument

    Is it possible (NT7 or NT8) to define an Instrument that accepts data (ticks) from an NT Indicator, Strategy or ??
    It would be nice to be able to "push" ticks from within the program (an NT indicator) and let NT's functionality take care of OHLCV, Time, &etc

    #2
    Hello,
    This would not be supported in NinjaTrader 7 or NinjaTrader 8. You might be able to get the data historically by creating an indicator that writes the data from your indicator to a historical data file into the specific format needed for historical data. Please see the following link on the historical data format for NinjaTrader 7: http://ninjatrader.com/support/helpG.../importing.htm
    and the following link for the data format in NinjaTrader 8: http://ninjatrader.com/support/helpG...AndDataFormats

    I would also recommend to review the following reference sample for StreamWriter: http://ninjatrader.com/support/forum...ead.php?t=3475
    Cody B.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_CodyB View Post
      Hello,
      This would not be supported in NinjaTrader 7 or NinjaTrader 8. You might be able to get the data historically by creating an indicator that writes the data from your indicator to a historical data file into the specific format needed for historical data. Please see the following link on the historical data format for NinjaTrader 7: http://ninjatrader.com/support/helpG.../importing.htm
      and the following link for the data format in NinjaTrader 8: http://ninjatrader.com/support/helpG...AndDataFormats

      I would also recommend to review the following reference sample for StreamWriter: http://ninjatrader.com/support/forum...ead.php?t=3475
      Cody, thanks for your quick response. Your answer was what I expected; I just thought I'd take a shot and ask;
      I've already written "proof of concept" code for most of the functionality I need, including saving and recalling data from disk. In reviewing the design, I realized that almost all the functionality I require is already built in to NT; hate re-inventing yet another wheel.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by funk10101, Today, 12:02 AM
      1 response
      10 views
      0 likes
      Last Post NinjaTrader_LuisH  
      Started by GLFX005, Today, 03:23 AM
      1 response
      6 views
      0 likes
      Last Post NinjaTrader_Erick  
      Started by nandhumca, Yesterday, 03:41 PM
      1 response
      12 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Started by The_Sec, Yesterday, 03:37 PM
      1 response
      11 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Started by vecnopus, Today, 06:15 AM
      0 responses
      1 view
      0 likes
      Last Post vecnopus  
      Working...
      X