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 NullPointStrategies, Today, 05:17 AM
|
0 responses
50 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
126 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
69 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
42 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
46 views
0 likes
|
Last Post
|

Comment