In summary, I don't want the live market indicator plots. I want the indicator plots as if I just populated a new chart (without tick-replay) or if a "Reload NinjaScript" was performed on a live chart. Is it possible to code a separate indicator or code into the actual indicator so that it could send F5 "Reload NinjaScript" at the close of every new bar to produce the different plots? If so, it's possible to send the F5 at the close of every new bar without a delay or a pause on the chart which happens when an F5 is performed which updates the entire NinjaScript history.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Reload NinjaScript
Collapse
X
-
Reload NinjaScript
I have an indicator that plots differently based on if the chart is populated using tick-replay or if it does not. I understand that this is because the indicator requires calculate "On each tick." I also did a test with a live chart running with a session's worth of real-time tick data and doing a Reload NinjaScript." I noticed the indicator plots are identical to opening a new chart without tick-replay enabled. When I compared the indicator plots (live market vs. Reload NinjaScript,) I realized that I want the results of the indicator plots after performing a "Reload NinjaScript."
In summary, I don't want the live market indicator plots. I want the indicator plots as if I just populated a new chart (without tick-replay) or if a "Reload NinjaScript" was performed on a live chart. Is it possible to code a separate indicator or code into the actual indicator so that it could send F5 "Reload NinjaScript" at the close of every new bar to produce the different plots? If so, it's possible to send the F5 at the close of every new bar without a delay or a pause on the chart which happens when an F5 is performed which updates the entire NinjaScript history.Last edited by Tavor; 01-05-2022, 04:21 PM.Tags: None
-
Hello Tavor,
Thanks for your post.
You could modify a custom NinjaScript indicator to send the F5 key to the operating system using the C# method SendKeys(). Note that this would go beyond the support we could provide as it is not documented or supported.
See this forum thread which you may find helpful: https://ninjatrader.com/support/foru...inja-script-f5
Also note, Indicators that run OnEachTick without Tick Replay enabled will populate historically as OnBarClose. To simulate the OnEachTick behavior in historical mode you need Tick Replay enabled.
Let us know if we may assist further.Brandon H.NinjaTrader Customer Service
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by lightsun47, Today, 03:51 PM
|
0 responses
5 views
0 likes
|
Last Post
by lightsun47
Today, 03:51 PM
|
||
Started by 00nevest, Today, 02:27 PM
|
1 response
10 views
0 likes
|
Last Post
by 00nevest
Today, 03:48 PM
|
||
Started by futtrader, 04-21-2024, 01:50 AM
|
4 responses
46 views
0 likes
|
Last Post
by futtrader
Today, 03:01 PM
|
||
Can someone turn this thinkscript into a ninjascript. 5PM CST OHL and Previous Day
by Option Whisperer
Started by Option Whisperer, Today, 09:55 AM
|
1 response
14 views
0 likes
|
Last Post
by bltdavid
Today, 02:44 PM
|
||
Started by port119, Today, 02:43 PM
|
0 responses
10 views
0 likes
|
Last Post
by port119
Today, 02:43 PM
|
Comment