Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Function key F5
Collapse
X
-
Automating the Refresh Key F5
Hello,
I want automate the refresh key, F5, in an indicator.
What would be the code to activate the function key, F5 in the OnUpdate() section?
Thanks
Comment
-
Originally posted by rcsingleton View PostHello,
I want automate the refresh key, F5, in an indicator.
What would be the code to activate the function key, F5 in the OnUpdate() section?
ThanksAs NinjaTrader_Bertrand says, you cannot expect any support/help to make it work. It is standard C#, but there is plenty of standard C# that is not supported NinjaScript.Code:System.Windows.Forms.SendKeys.Send("{F5}");
You have to be very careful to make sure that you have suitable escape conditions, or you will find yourself in an endless loop if you use it in OnBarUpdate().Last edited by koganam; 02-17-2011, 04:02 AM.
Comment
-
Thank you for your response.Originally posted by koganam View PostAs NinjaTrader_Bertrand says, you cannot expect any support/help to make it work. It is standard C#, but there is plenty of standard C# that is not supported NinjaScript.Code:System.Windows.Forms.SendKeys.Send("{F5}");
You have to be very careful to make sure that you have suitable escape conditions, or you will find yourself in an endless loop if you use it in OnBarUpdate().
The refresh key is something I could use. I will give it a try.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
101 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
144 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
71 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|
||
|
Started by cmoran13, 04-16-2026, 01:02 PM
|
0 responses
125 views
0 likes
|
Last Post
by cmoran13
04-16-2026, 01:02 PM
|
||
|
Started by PaulMohn, 04-10-2026, 11:11 AM
|
0 responses
79 views
0 likes
|
Last Post
by PaulMohn
04-10-2026, 11:11 AM
|

Comment