• 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

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 Bionian, Today, 10:10 AM
    2 responses
    14 views
    0 likes
    Last Post NinjaTrader_ShawnB  
    Started by D Trader, Today, 01:41 PM
    0 responses
    7 views
    0 likes
    Last Post D Trader  
    Started by rexmie888, Today, 04:00 AM
    1 response
    9 views
    0 likes
    Last Post NinjaTrader_ShawnB  
    Started by terminatorT1000, Today, 01:23 AM
    1 response
    11 views
    0 likes
    Last Post NinjaTrader_ShawnB  
    Started by Tradarr, Today, 12:25 PM
    0 responses
    7 views
    0 likes
    Last Post Tradarr
    by Tradarr
     
    Working...
    X