Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Spread Orders (for Calendar Spreads)

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

    Spread Orders (for Calendar Spreads)

    I've noticed there are a few Ninjascript "Sample" codes for Stop Orders and Limit Orders in the Support forum that have been very helpful for my backtesting. I am wondering if the Support Forum has a Sample Code for Spread orders?
    By Spread orders I mean orders for calendar spreads of future contracts, i.e. Long on CL 01-15 and Short on CL 03-15, and with a simple StopLoss logic.
    I know there are no spread charts in NT7 but I could use @kdoren spread indicator.
    I would like to know if there is a code take-off instead of coming up with something from scratch.

    Thanks!

    #2
    Hello Carlosavellan,

    Thank you for your note.

    You would want to take a look at the Entering on one timeframe and exting on another.

    This will give you an idea of how to add additional data series to the Strategy and then use the different BarsInProgress for the orders -

    http://www.ninjatrader.com/support/f...ead.php?t=5787

    Let me know if I can be of further assistance.
    Cal H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    69 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    42 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    24 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    27 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    54 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X