Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Inexplicable syncing positions issue

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

    Inexplicable syncing positions issue

    Greetings NT support,

    I have an old strategy that works just fine with live data, opens and reverses positions without any issue. But when I try to start it, doing the sync process as Sync Positions = true and Submit immediately reconciliatory historical orders, then I get the following issue:
    if the historical strategy position is short, then it shows an issue in the log file:

    9/23/2019 6:47:49 PM|3|128|Strategy 'PRF/7c7683a3c65a442d99766c6cacb8a82e': submitted an order with an invalid 0 quantity. Please increase the quantity of the order. In the code it's just impossible to submit an order with 0 quantity.

    9/23/2019 6:47:49 PM|1|128|Syncing account position on starting strategy 'PRF/7c7683a3c65a442d99766c6cacb8a82e'. Account position='' Strategy position=''



    When the historical position is Long, there's no problem at all as you can see the log file below:

    9/9/2019 3:41:23 AM|1|128|Syncing account position on starting strategy 'PRF/b7ec52c758c440cfa05b085d512fd22c'. Account position='' Strategy position='XL MES 09-19'

    9/9/2019 3:41:23 AM|1|32|Order='7c43efba8de7447cbb826ac1668ac80d/UXXX' Name='Synchronize' New state=PendingSubmit Instrument='MES 09-19' Action=Buy Limit price=0 Stop price=0 Quantity=X Type=Market Filled=0 Fill price=0 Error=NoError Native error=''....................etc


    While I'm creating workarounds to solve the issue, still I do some trials to get behaviors about it and I've noticed that if I let run a strategy with a failed historical Short position sync, then eventually it submits a right reconciliatory order, really weird. It's important to me to overcome this issue cause often in my strategy, my Sunday begins with an open position in my broker's account from Fridays, so any ideas would be appreciated.



    Last edited by pstrusi; 09-29-2019, 03:14 PM.

Latest Posts

Collapse

Topics Statistics Last Post
Started by argusthome, 03-08-2026, 10:06 AM
0 responses
61 views
0 likes
Last Post argusthome  
Started by NabilKhattabi, 03-06-2026, 11:18 AM
0 responses
40 views
0 likes
Last Post NabilKhattabi  
Started by Deep42, 03-06-2026, 12:28 AM
0 responses
21 views
0 likes
Last Post Deep42
by Deep42
 
Started by TheRealMorford, 03-05-2026, 06:15 PM
0 responses
23 views
0 likes
Last Post TheRealMorford  
Started by Mindset, 02-28-2026, 06:16 AM
0 responses
51 views
0 likes
Last Post Mindset
by Mindset
 
Working...
X