Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

One symbol multiple entries Long and Short

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

    One symbol multiple entries Long and Short

    Trying to backtest 2 models on 1 symbol.
    EntriesPerDirection = 2.
    DefaultQuantity = 300.
    See attached chart.

    07/16/2013 9:42:00 AM Position: Flat.
    07/16/2013 10:06:00 AM Model 0 issues Buy Long 300 @ Market. Model 1 issues Buy Long 300 @ Market.
    07/16/2013 10:18:00 AM Position: Long Qty 600.
    07/16/2013 12:06:00 PM Model 1 issues SellShort Market Qty 300. NT closes Long position for Qty 600(see attached chart).
    07/16/2013 12:18:00 PM Position: Short Qty 300. Model 1 order is 'Filled'. By my reckoning Model 0 should be Long 300 and Model 1 should be short 300.
    07/16/2013 03:30:00 PM Model 0 issues Sell Long Qty 300. NT does ignores this order(returns null OrderID). Model 1 issues BuyToCover Market
    07/16/2013 03:42:00 PM Position: Flat Qty: 0. Model 1 order is 'Filled' for Qty 300.

    I'm looking for explanation on NT internal order handling for simultaneous Long/Short.

    Also, is StrateyPlot() suppose to work in backtesting?
    Attached Files

    #2
    Hello scjohn,

    Thank you for your post.

    Are Model 0 and Model 1 within the same strategy code, or are they two different strategies?

    I look forward to your response.

    Comment


      #3
      Model 0 and Model 1 are in the same Strategy code.

      Documentation on NT internal order handling, that I have read, has not explained how it handles multiple entries when direction(Long/Short) are not the same.

      Comment


        #4
        Hello scjohn,

        Thank you for your response.

        The Strategy is going to keep it's own position and if the Strategy is long but an order is submitted to open a new position short from within the strategy it will close the long position (if they were for the same quantity).

        If you wanted to have multiple positions then use multiple strategies to achieve this. Please let me know if I may be of further assistance.

        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