• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

EnterShort() returns null

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

    #16
    Thanks, Chris, this helped me.
    But! What if i need few data series in my strategy?
    Attached Files

    Comment


      #17
      Hello schattencheg,

      Thanks for the reply.

      The message means that you will need to add a 1 tick series to your strategy, then fill your orders on that series. You can add the data series with AddDataSeries.

      To submit orders to that series, use the special Entry/Exit methods that take a BarsInProgress parameter:

      For instance, EnterLong has this method overload that you would use:

      Code:
      EnterLong(int barsInProgressIndex, int quantity, string signalName)
      https://ninjatrader.com/support/help...?enterlong.htm

      If your 1 tick series is the second additional series added, you would use 2 for the BarsInProgressIndex.

      Please let me know if I can assist further.
      Last edited by NinjaTrader_ChrisL; 08-28-2018, 08:30 AM.
      Chris L.NinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by mreanuzlazx, Today, 01:30 AM
      0 responses
      1 view
      0 likes
      Last Post mreanuzlazx  
      Started by xinepev, Today, 12:33 AM
      0 responses
      4 views
      0 likes
      Last Post xinepev
      by xinepev
       
      Started by sun0781, Yesterday, 05:02 PM
      0 responses
      9 views
      0 likes
      Last Post sun0781
      by sun0781
       
      Started by ronhb107, 09-12-2019, 10:09 AM
      4 responses
      44 views
      0 likes
      Last Post Mr.Trader  
      Started by rwilliam, Yesterday, 03:55 PM
      0 responses
      4 views
      0 likes
      Last Post rwilliam  
      Working...
      X