- ago


Hello.

Today I experienced a potentially dangerous problem auto trading with my IBKR account.
As you can see in the image, first signals were not executed due to there was no position but then it bought some shares (it worked ok) and then generated a sell signal and didn't sold the position. Log says there "no position" but indeer there was the position opened before.

Could you please help me to prevent this problem or finding why it happened?

Best. Diego
0
465
7 Replies

Reply

Bookmark

Sort
- ago
#1
At the same time. the active strategy in the Strategy Monitor changes color from red to green and sometimes blue, from time to time. In the next message I will share the log. Is there a problem in my Streaming Data settings?
0
- ago
#2
28/04/2022 10:39:31: Status = LoadingData
28/04/2022 10:39:31: Start Streaming Thread
28/04/2022 10:39:31: Populating Data
28/04/2022 10:39:31: Calling GetHistories Pass 1
28/04/2022 10:39:33: GetHistories returned with 2 symbols
28/04/2022 10:39:33: Calling GetHistories Pass 2
28/04/2022 10:39:35: GetHistories returned with 2 symbols
28/04/2022 10:39:35: TQQQ has 500 bars from AlphaVantage
28/04/2022 10:39:35: SPXS has 500 bars from AlphaVantage
28/04/2022 10:39:35: NextRun set to 28/04/2022 10:40
28/04/2022 10:39:35: Status = Idle
28/04/2022 10:39:35: TQQQ failed to get Partial Bar
28/04/2022 10:39:35: SPXS failed to get Partial Bar
28/04/2022 10:40:00: Status = Processing
28/04/2022 10:40:03: Ran Strategy on TQQQ: 0 Signals, Run Time=1.79sec
28/04/2022 10:40:50: NextRun set to 28/04/2022 10:45
28/04/2022 10:40:50: Status = Incomplete
28/04/2022 10:40:50: 1 Symbol not Processed: SPXS
28/04/2022 10:45:00: Status = Processing
28/04/2022 10:45:02: Ran Strategy on TQQQ: 0 Signals, Run Time=1.75sec
28/04/2022 10:45:50: NextRun set to 28/04/2022 10:50
28/04/2022 10:45:50: Status = Incomplete
28/04/2022 10:45:50: 1 Symbol not Processed: SPXS
28/04/2022 10:50:00: Status = Processing
28/04/2022 10:50:01: Ran Strategy on TQQQ: 1 Signals, Run Time=778ms
28/04/2022 10:50:50: NextRun set to 28/04/2022 10:55
28/04/2022 10:50:50: Status = Incomplete
28/04/2022 10:50:50: 1 Symbol not Processed: SPXS
28/04/2022 10:55:00: Status = Processing
28/04/2022 10:55:01: Ran Strategy on TQQQ: 0 Signals, Run Time=773ms
28/04/2022 10:55:50: NextRun set to 28/04/2022 11:00
28/04/2022 10:55:50: Status = Incomplete
28/04/2022 10:55:50: 1 Symbol not Processed: SPXS
28/04/2022 11:00:00: Status = Processing
28/04/2022 11:00:02: Ran Strategy on TQQQ: 1 Signals, Run Time=796ms
28/04/2022 11:00:50: NextRun set to 28/04/2022 11:05
28/04/2022 11:00:50: Status = Incomplete
28/04/2022 11:00:50: 1 Symbol not Processed: SPXS
28/04/2022 11:05:00: Status = Processing
28/04/2022 11:05:02: Ran Strategy on TQQQ: 1 Signals, Run Time=738ms
28/04/2022 11:05:50: NextRun set to 28/04/2022 11:10
28/04/2022 11:05:50: Status = Incomplete
28/04/2022 11:05:50: 1 Symbol not Processed: SPXS
28/04/2022 11:10:00: Status = Processing
28/04/2022 11:10:01: Ran Strategy on TQQQ: 0 Signals, Run Time=705ms
28/04/2022 11:10:50: NextRun set to 28/04/2022 11:15
28/04/2022 11:10:50: Status = Incomplete
28/04/2022 11:10:50: 1 Symbol not Processed: SPXS
28/04/2022 11:15:00: Status = Processing
28/04/2022 11:15:01: Ran Strategy on TQQQ: 0 Signals, Run Time=783ms
28/04/2022 11:15:50: NextRun set to 28/04/2022 11:20
28/04/2022 11:15:50: Status = Incomplete
28/04/2022 11:15:50: 1 Symbol not Processed: SPXS
28/04/2022 11:20:00: Status = Processing
28/04/2022 11:20:01: Ran Strategy on TQQQ: 0 Signals, Run Time=768ms
28/04/2022 11:20:50: NextRun set to 28/04/2022 11:25
28/04/2022 11:20:50: Status = Incomplete
28/04/2022 11:20:50: 1 Symbol not Processed: SPXS
28/04/2022 11:25:00: Status = Processing
28/04/2022 11:25:01: Ran Strategy on TQQQ: 0 Signals, Run Time=716ms
28/04/2022 11:25:50: NextRun set to 28/04/2022 11:30
28/04/2022 11:25:50: Status = Incomplete
28/04/2022 11:25:50: 1 Symbol not Processed: SPXS
28/04/2022 11:30:00: Status = Processing
28/04/2022 11:30:01: Ran Strategy on TQQQ: 0 Signals, Run Time=703ms
28/04/2022 11:30:50: NextRun set to 28/04/2022 11:35
28/04/2022 11:30:50: Status = Incomplete
28/04/2022 11:30:50: 1 Symbol not Processed: SPXS
28/04/2022 11:35:00: Status = Processing
28/04/2022 11:35:01: Ran Strategy on TQQQ: 0 Signals, Run Time=706ms
28/04/2022 11:35:50: NextRun set to 28/04/2022 11:40
28/04/2022 11:35:50: Status = Incomplete
28/04/2022 11:35:50: 1 Symbol not Processed: SPXS
28/04/2022 11:40:00: Status = Processing
28/04/2022 11:40:02: Ran Strategy on TQQQ: 0 Signals, Run Time=736ms
28/04/2022 11:40:50: NextRun set to 28/04/2022 11:45
28/04/2022 11:40:50: Status = Incomplete
28/04/2022 11:40:50: 1 Symbol not Processed: SPXS
28/04/2022 11:45:00: Status = Processing
28/04/2022 11:45:01: Ran Strategy on TQQQ: 0 Signals, Run Time=707ms
28/04/2022 11:45:50: NextRun set to 28/04/2022 11:50
28/04/2022 11:45:50: Status = Incomplete
28/04/2022 11:45:50: 1 Symbol not Processed: SPXS
28/04/2022 11:50:00: Status = Processing
28/04/2022 11:50:02: Ran Strategy on TQQQ: 0 Signals, Run Time=739ms
28/04/2022 11:50:50: NextRun set to 28/04/2022 11:55
28/04/2022 11:50:50: Status = Incomplete
28/04/2022 11:50:50: 1 Symbol not Processed: SPXS
28/04/2022 11:55:00: Status = Processing
28/04/2022 11:55:02: Ran Strategy on TQQQ: 0 Signals, Run Time=1.09sec
28/04/2022 11:55:50: NextRun set to 28/04/2022 12:00
28/04/2022 11:55:50: Status = Incomplete
28/04/2022 11:55:50: 1 Symbol not Processed: SPXS
0
- ago
#3
28/04/2022 10:38:11:685
IBConnection
Market data farm connections OK: usfarm.nj, hfarm, jfarm, usfuture, cashfarm, usopt, usfarm, ushmds.nj, hkhmds, fundfarm, ushmds, secdefnj

--------
28/04/2022 10:38:15:975
InteractiveBrokers
1.0 seconds difference: Local - TWS time

--------
28/04/2022 10:38:16:365
Yahoo
Failure setting session cookie
InvalidOperationException
The given header was not found.
at System.Net.Http.Headers.HttpHeaders.GetValues(HeaderDescriptor descriptor)
at System.Net.Http.Headers.HttpHeaders.GetValues(String name)
at ObjectVal.SortDatabase(Object , String , ObjectVal )
at WealthLab.Core.WLWebClient.GetResponseHeader(String header)
at WealthLab.Resolver.MethodStubResolver.LoginService(Object , Object )
at WealthLab.Resolver.MethodStubResolver.SetupStruct()
at WealthLab.Resolver.MethodStubResolver.PatchService()
at WealthLab.Resolver.MethodStubResolver.RateStruct()
--------
28/04/2022 10:39:12:514
Interactive Brokers
Connected

--------
28/04/2022 10:39:35:264
InteractiveBrokers
322: Error processing request.-'bW' : cause - Duplicate ticker id

--------
28/04/2022 10:39:35:445
InteractiveBrokers
Requesting delayed data

--------
0
Cone8
 ( 4.25% )
- ago
#4
There's a server error 322 complaining about a duplicate ticker id. That could be a clue. We'll look into it.

Does the Position show up in the Accounts tool? (Ctrl+T)

1
- ago
#5
Indeed, the position is showed in the account tool
0
- ago
#6
I have the same problem / error message with IB auto-trading yesterday (the same day @espodumenus opened this post) and this morning.

I checked Accounts screen and the position is there.
0
- ago
#7
I just had a different problem where the Position Manager tried to sell 0 positions instead of the entire position.

Error Message:
CODE:
Error validating request.-'bN' : cause - The size value cannot be zero


About 15 minutes later it sold this position (after buying another position) but it didn't sell the most recent position, which is still active in the account.
0

Reply

Bookmark

Sort