Ex: If Close - Open < @userVariable, then in the "Do the following" section, set a variable? Ex: IsBigRed = True
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Doing simple arithmetic conditionals in Strategy Builder
Collapse
X
-
Doing simple arithmetic conditionals in Strategy Builder
Is it possible to create calculations to test against in the "If" portion of the Strategy Builder?
Ex: If Close - Open < @userVariable, then in the "Do the following" section, set a variable? Ex: IsBigRed = TrueTags: None
-
Thanks, Playdc. That's pretty much what I did. Would've been nice to see Strategy Builder be able to do this. They have Offset, but it's very limited.
Comment
-
Hello Trader4Life,
Thank you for your post.
This is possible in the Strategy Builder but you would have to use a custom series. In one set, you would need to set the value of the custom series to Close-Open. Then in another set, you could create a condition to compare the value of the custom series to your user variable.
https://ninjatrader.com/support/helpGuides/nt8/index.html?builder_screens.htm#UnderstandingTheAdd itrionalDataScreen
As Playdc suggested, this is simpler to implement using manual coding in the Editor and would not require you to create a series to store any values.
Please let us know if you have any further questions.
Comment
-
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
53 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|
||
|
Started by CarlTrading, 05-10-2026, 08:12 PM
|
0 responses
32 views
0 likes
|
Last Post
by CarlTrading
05-10-2026, 08:12 PM
|
||
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
195 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|
||
|
Started by CaptainJack, 04-24-2026, 11:07 PM
|
0 responses
358 views
0 likes
|
Last Post
by CaptainJack
04-24-2026, 11:07 PM
|
||
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
277 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|

Comment