await Task.Delay don't seem to work with NinjaTrader?
Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
Program Execution Delay
Collapse
X
-
Program Execution Delay
I have a need to delay execution of the c# code of Plot for about 100 millisecond. How can I implement this delay in Ninja?
await Task.Delay don't seem to work with NinjaTrader?Last edited by afshinmoshrefi; 03-15-2015, 01:00 PM.Tags: None
-
Hello afshinmoshrefi,
Thank you for your post.
You could use a timer in the Plot override.
For an example on overriding the plot please go to Tools > Edit NinjaScript > Indicator > CustomPlotSample.
For information on the Timer Class in C# please visit the following link: https://msdn.microsoft.com/en-us/lib...vs.110%29.aspx
-
Is there any example of an inline Delay that would work with Ninja? I just need to delay the execution and then continue?
Comment
-
Originally posted by afshinmoshrefi View PostIs there any example of an inline Delay that would work with Ninja? I just need to delay the execution and then continue?
You might want to read the entire thread.Last edited by koganam; 03-15-2015, 09:42 PM.
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by proptrade13, Today, 11:06 AM
|
0 responses
1 view
0 likes
|
Last Post
by proptrade13
Today, 11:06 AM
|
||
Started by kulwinder73, Today, 10:31 AM
|
1 response
10 views
0 likes
|
Last Post Today, 11:01 AM | ||
Started by RookieTrader, Today, 09:37 AM
|
3 responses
15 views
0 likes
|
Last Post Today, 10:32 AM | ||
Started by terofs, Yesterday, 04:18 PM
|
1 response
24 views
0 likes
|
Last Post
by terofs
Today, 10:14 AM
|
||
Started by CommonWhale, Today, 09:55 AM
|
1 response
6 views
0 likes
|
Last Post Today, 10:11 AM |
Comment