Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
What does this error mean?
Collapse
X
-
What does this error mean?
I am getting this error when calling an indicator from within another indicator. I am guessing the indicator is busy and is processing and has not finished before I call it again. If so, is there a sleep function I can use or a way to check to see if the call to the other indicator has finished before calling it again.
Error on calling 'SetState' method: The lock is being disposed while still being used. It either is being held by a thread and/or has active waiters waiting to acquire the lock.Last edited by cutzpr; 02-22-2016, 09:32 AM.Tags: None
-
Hello,
Thank you for the question.
Are these standard indicators being used?
There is no specific sleep function with NinjaTrader as this would not be wanted, what you are referring to would be making the thread sleep which is not advisable.
Could you provide the syntax being used that causes the error to be displayed or a sample that demonstrates this? Potentially it is just the logic or way the item is being called and I could recommend a better way.
I look forward to being of further assistance.
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CaptainJack, 05-29-2026, 05:09 AM
|
0 responses
45 views
0 likes
|
Last Post
by CaptainJack
05-29-2026, 05:09 AM
|
||
|
Started by CaptainJack, 05-29-2026, 12:02 AM
|
0 responses
30 views
0 likes
|
Last Post
by CaptainJack
05-29-2026, 12:02 AM
|
||
|
Started by charlesugo_1, 05-26-2026, 05:03 PM
|
0 responses
99 views
0 likes
|
Last Post
by charlesugo_1
05-26-2026, 05:03 PM
|
||
|
Started by DannyP96, 05-18-2026, 02:38 PM
|
1 response
177 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
170 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|

Comment