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 terofs, Today, 04:18 PM
      0 responses
      5 views
      0 likes
      Last Post terofs
      by terofs
       
      Started by nandhumca, Today, 03:41 PM
      0 responses
      5 views
      0 likes
      Last Post nandhumca  
      Started by The_Sec, Today, 03:37 PM
      0 responses
      3 views
      0 likes
      Last Post The_Sec
      by The_Sec
       
      Started by GwFutures1988, Today, 02:48 PM
      1 response
      9 views
      0 likes
      Last Post NinjaTrader_Clayton  
      Started by ScottWalsh, 04-16-2024, 04:29 PM
      6 responses
      33 views
      0 likes
      Last Post ScottWalsh  
      Working...
      X