Thanks!!
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Strategy Builder
Collapse
X
-
Strategy Builder
How do I add a condition where a variable is = to a string value? I found the numeric value, but not the string value.
Thanks!!Last edited by RiversideDude; 03-18-2017, 02:12 PM.Tags: None
-
Hello,
Thank you for the post.
It looks like you would need to create two string variables, and then compare the two variables against each other. You can set a string variable using a condition as well, this would be where you could enter any value. Here is an example:
Create two string variables named MyString and MyString2
Set a default for MyString2 as Test
Now for a condition, check that User Variable MyString is equal to UserVaraible MyString2
In another sets action, choose Misc-> Set MyString and type in "Test"
Once the sets condition is true, the first strings blank value gets set to Test which is compared against the second variable which has a default value of Test.
I will submit a feature request for a more simple means of string entry like numeric value.
I look forward to being of further assistance.Last edited by NinjaTrader_Jesse; 03-18-2017, 07:15 PM.
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by NullPointStrategies, Yesterday, 05:17 AM
|
0 responses
55 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
132 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
73 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
45 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
49 views
0 likes
|
Last Post
|

Comment