Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
IsFirstTickOfBar in strategy builder
Collapse
X
-
IsFirstTickOfBar in strategy builder
I have a strategy where I’m using on price Change however my 3 indicator need to use on bar close. From reading the forums I understand I must use IsFirstTickOfBar to make this possible. I am not familiar with coding with this software however, I am familiar with the strategy builder and I’m trying to understand how I useIsFirstTickOfBar so that way my indicators update on bar close. I cannot find a post that states how to make this possible using the default strategy builder. A good example would be I use the parabolic sars and a hull moving average how would i use the strategy builder to make those move onIsFirstTickOfBar. Thank you for the helpTags: None
-
Hello Psmithbb,
Thank you for your post.
The strategy will dictate the indicator calculate setting, so if you want to have the indicators simulate Calculate.OnBarClose this would require calling the indicator directly when IsFirstTickOfBar is true. To achieve this in the Strategy Builder, you could create a double variable and when IsFirstTickOfBar is true assign the variable the value of the indicator. Then the variable's value is only updated once per bar.
Please let us know if you have any further questions.
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CarlTrading, 03-31-2026, 09:41 PM
|
1 response
80 views
1 like
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
40 views
0 likes
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
63 views
2 likes
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
63 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
54 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment