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
Indicator look-back influences new session
Collapse
X
-
Indicator look-back influences new session
My NinjaScript strategy requires a look-back period prior to the beginning of a new session. However, I only wish the buys, sells, and profit targets to apply to the NEW session. As it is currently, I get carryovers from the previous session which messes up my strategy. Any suggestions?Tags: None
-
On your prior session close out any position, cancel any working order when that session is over. You can check sessions through Bars.SessionBreak. Note that anything you do with this will result in cleaning up your strategy at the first few bars of the new session. If you need it cleaned up before then you will need to come up with another way to know the old session is over.Josh P.NinjaTrader Customer Service
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by memonic, Yesterday, 01:23 PM
|
2 responses
11 views
0 likes
|
Last Post
by memonic
Today, 04:26 AM
|
||
Started by merc410, Today, 03:41 AM
|
2 responses
10 views
0 likes
|
Last Post
by merc410
Today, 04:16 AM
|
||
Started by sugalt, 04-30-2024, 04:02 AM
|
2 responses
13 views
0 likes
|
Last Post
by sugalt
Today, 03:42 AM
|
||
Started by Ndakotan1313, 03-14-2024, 05:02 PM
|
2 responses
63 views
0 likes
|
Last Post
by blaise_code
Today, 03:16 AM
|
||
Started by claxxical, 05-30-2017, 12:30 PM
|
37 responses
4,462 views
0 likes
|
Last Post
by Padan
Today, 02:23 AM
|
Comment