Using strategy builder, How do I go about running strategy between start and end time provided as input ? I tried using Time variable Runstart/Runend comparing with start and end input but seems not working. An example would be appreciated. Thanks
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
How to trade a strategy between start and end time provided as input paramters
Collapse
X
-
How to trade a strategy between start and end time provided as input paramters
Hello:
Using strategy builder, How do I go about running strategy between start and end time provided as input ? I tried using Time variable Runstart/Runend comparing with start and end input but seems not working. An example would be appreciated. ThanksTags: None
-
Hello mtamaku,
Thank you for your post.
You'd need to compare the current bar time to your start and end times. Here's a link to our help guide that goes over setting up time conditions:
https://ninjatrader.com/support/help...ateTimeFilters
I've also attached a simple example Strategy Builder strategy that illustrates this - it will only enter trades between the user input start and end time.
Please let us know if we may be of further assistance to you.Attached FilesKate W.NinjaTrader Customer Service
- Likes 1
Comment
-
Hello mtamaku,
Thank you for your reply.
You'd set it up somewhat similarly but you'd want to use If Any instead of if all in the time condition. I'm attaching a simple sample strategy that will take orders from 6pm to the following 5pm and when it hits 5 pm will exit any open position and not take any more trades until 6 pm.
Please let us know if we may be of further assistance to you.Attached FilesKate W.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Rapine Heihei, Today, 08:19 PM
|
1 response
8 views
0 likes
|
Last Post Today, 08:30 PM | ||
Started by Rapine Heihei, Today, 08:25 PM
|
0 responses
6 views
0 likes
|
Last Post Today, 08:25 PM | ||
Started by f.saeidi, Today, 08:01 PM
|
1 response
9 views
0 likes
|
Last Post Today, 08:17 PM | ||
Change colour of Stop market and limit orders to red and green via indicator script
by Rapine Heihei
Started by Rapine Heihei, Today, 07:51 PM
|
0 responses
8 views
0 likes
|
Last Post Today, 07:51 PM | ||
Started by frslvr, 04-11-2024, 07:26 AM
|
5 responses
98 views
1 like
|
Last Post
by caryc123
Today, 07:47 PM
|
Comment