Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

order

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

    order

    Hi:
    some limit order automatically canceled in 1 second ,why ? here is the log
    2024/2/5 8:17:23 2024/2/6 8:17 Order='7fc8c3bcb5b14098bfa02507be55f5d6/Sim101' Name='L2' New state='Cancelled' Instrument='CHEA' Action='Buy' Limit price=15.98 Stop price=0 Quantity=63 Type='Limit' Time in force=GTC Oco='' Filled=0 Fill price=0 Error='No error' Native error=''
    2024/2/5 8:17:23 Order Order='7fc8c3bcb5b14098bfa02507be55f5d6/Sim101' Name='L2' New state='Cancel submitted' Instrument='CHEA' Action='Buy' Limit price=15.98 Stop price=0 Quantity=63 Type='Limit' Time in force=GTC Oco='' Filled=0 Fill price=0 Error='No error' Native error=''
    2024/2/5 8:17:23 Order Order='7fc8c3bcb5b14098bfa02507be55f5d6/Sim101' Name='L2' New state='Working' Instrument='CHEA' Action='Buy' Limit price=15.98 Stop price=0 Quantity=63 Type='Limit' Time in force=GTC Oco='' Filled=0 Fill price=0 Error='No error' Native error=''
    2024/2/5 8:17:23 Order Order='7fc8c3bcb5b14098bfa02507be55f5d6/Sim101' Name='L2' New state='Accepted' Instrument='CHEA' Action='Buy' Limit price=15.98 Stop price=0 Quantity=63 Type='Limit' Time in force=GTC Oco='' Filled=0 Fill price=0 Error='No error' Native error=''
    2024/2/5 8:17:23 Order Order='7fc8c3bcb5b14098bfa02507be55f5d6/Sim101' Name='L2' New state='Submitted' Instrument='CHEA' Action='Buy' Limit price=15.98 Stop price=0 Quantity=63 Type='Limit' Time in force=GTC Oco='' Filled=0 Fill price=0 Error='No error' Native error=''
    2024/2/5 8:17:23 NinjaScript NinjaScript strategy 'M1K001/318594248' submitting order
    Attached Files
    Last edited by bill2023; 02-05-2024, 07:51 AM.

    #2
    Hello bill2023,

    If that is an order that was submitted as non liveuntilcancelled and you are using a series with that granularity like 1 second or tick then that would be expected, orders expire after 1 bar update. You can see if that is happening by using TraceOrders.

    Comment


      #3
      i use this strategy on 1 minute chart

      Comment


        #4
        Hello bill2023,

        Did you try using TraceOrders to check if the order was expired? The order could still be expired after 1 second on a minute chart if you are using OnEachTick or OnPriceChange calculation mode.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        88 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        134 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        68 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        119 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        69 views
        0 likes
        Last Post PaulMohn  
        Working...
        X