Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
CalculateOnBarClose
Collapse
X
-
CalculateOnBarClose
In my strategy, there are things I need to calculate every tick and also things I need to do only on bar close. If I set CalculateOnBarClose = false so that OnBarUpdate( ) will be called every tick then how can I determine the bar close condition?Tags: None
-
Originally posted by kojava View PostIn my strategy, there are things I need to calculate every tick and also things I need to do only on bar close. If I set CalculateOnBarClose = false so that OnBarUpdate( ) will be called every tick then how can I determine the bar close condition?Code:if (FirstTickOfBar) { // handle stuff on the last bar, ie, Close[1], High[1], or whatever, but on bar index 1 }
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by TraderG23, 12-08-2023, 07:56 AM
|
9 responses
382 views
1 like
|
Last Post
by Gavini
Today, 12:29 AM
|
||
Started by oviejo, Today, 12:28 AM
|
0 responses
1 view
0 likes
|
Last Post
by oviejo
Today, 12:28 AM
|
||
Started by pechtri, 06-22-2023, 02:31 AM
|
10 responses
125 views
0 likes
|
Last Post Today, 12:03 AM | ||
Started by judysamnt7, 03-13-2023, 09:11 AM
|
4 responses
59 views
0 likes
|
Last Post
by DynamicTest
Yesterday, 08:25 PM
|
||
Started by ScottWalsh, Yesterday, 06:52 PM
|
4 responses
36 views
0 likes
|
Last Post
by ScottWalsh
Yesterday, 07:40 PM
|
Comment