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 exit trades at set day of week and time
Collapse
X
-
How to exit trades at set day of week and time
Just trying to use the Strategy Builder to say exit all open trades on Friday's at 9:45Tags: None
-
Hello demo166130
Thanks for your post.
You could create a time filter and then exit your positions when the time is reached. There is a sample of how to create a time filter inside the Strategy Builder located in our help guide.
https://ninjatrader.com/support/help...ateTimeFilters
Even though you are creating this strategy in the Strategy Builder, it may be of help to look at the following code sample. This sample demonstrates how to limit trading hours with a time filter.
https://ninjatrader.com/support/help...to_limit_t.htm
Let me know if you have any questions.
Josh G.NinjaTrader Customer Service
-
-
Comment
-
I watched a trade which entered on a Friday and carried over the weekend meaning the logic hasn't had the intended effect
Comment
-
demo166130,
I looked at your screenshots again and I see that your condition that tests for Friday is never going to be true. It looks like you may be comparing Friday to a Time Series instead of a Date Series.
It should look something like my screenshot to create a condition for Friday.
1 PhotoJosh G.NinjaTrader Customer Service
Comment
-
I changed this and it still made no difference. I decided to try and exit trades during lots of times of day and it also made zero difference. The chances that I'm doing something wrong here are far far more likely than there's some weird error in the system. I've attached another image, curious to see what you think.
Comment
-
-
-
-
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by selu72, Today, 02:01 PM
|
1 response
9 views
0 likes
|
Last Post Today, 02:17 PM | ||
Started by WHICKED, Today, 02:02 PM
|
2 responses
12 views
0 likes
|
Last Post
by WHICKED
Today, 02:15 PM
|
||
Started by f.saeidi, Today, 12:14 PM
|
8 responses
21 views
0 likes
|
Last Post
by f.saeidi
Today, 01:55 PM
|
||
Started by Mikey_, 03-23-2024, 05:59 PM
|
3 responses
51 views
0 likes
|
Last Post
by Sam2515
Today, 01:47 PM
|
||
Started by Russ Moreland, Today, 12:54 PM
|
1 response
8 views
0 likes
|
Last Post Today, 01:01 PM |
Comment