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
Starting a Strategy
Collapse
X
-
Starting a Strategy
If I want to manually turn on and off a strategy while watching the screen for certain market conditions, what is the lag time to start it once I check the enabled box? Right now I see it waits for a few bars to start. Is there a way it can do so immediately on the next bar or tick?Tags: None
-
Hello Trader17,
Thank you for the post.
This, in general, is going to depend on your script, but it will at the least take a short time to enable and process OnBarUpdate if you are enabling and disabling. I would likely suggest using a button for this to enable its logic but leave the script enabled.
One simple example is the UserControlCollection: https://ninjatrader.com/support/help...ub=usercontrol
You could add a button to the chart to toggle a boolean value to turn logic on and off.
I look forward to being of further assistance.
JesseNinjaTrader Customer Service
- Likes 1
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by jaybedreamin, Today, 05:56 PM
|
0 responses
3 views
0 likes
|
Last Post
by jaybedreamin
Today, 05:56 PM
|
||
Started by DJ888, 04-16-2024, 06:09 PM
|
6 responses
18 views
0 likes
|
Last Post
by DJ888
Today, 05:12 PM
|
||
Started by Jon17, Today, 04:33 PM
|
0 responses
1 view
0 likes
|
Last Post
by Jon17
Today, 04:33 PM
|
||
Started by Javierw.ok, Today, 04:12 PM
|
0 responses
6 views
0 likes
|
Last Post
by Javierw.ok
Today, 04:12 PM
|
||
Started by timmbbo, Today, 08:59 AM
|
2 responses
10 views
0 likes
|
Last Post
by bltdavid
Today, 04:10 PM
|
Comment