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 pmachiraju, 11-01-2023, 04:46 AM
        8 responses
        148 views
        0 likes
        Last Post rehmans
        by rehmans
         
        Started by mattbsea, Today, 05:44 PM
        0 responses
        5 views
        0 likes
        Last Post mattbsea  
        Started by RideMe, 04-07-2024, 04:54 PM
        6 responses
        33 views
        0 likes
        Last Post RideMe
        by RideMe
         
        Started by tkaboris, Today, 05:13 PM
        0 responses
        5 views
        0 likes
        Last Post tkaboris  
        Started by GussJ, 03-04-2020, 03:11 PM
        16 responses
        3,283 views
        0 likes
        Last Post Leafcutter  
        Working...
        X