Thanks!!
Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
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.JesseNinjaTrader Customer Service
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by geddyisodin, Today, 05:20 AM
|
0 responses
1 view
0 likes
|
Last Post
by geddyisodin
Today, 05:20 AM
|
||
Started by JonesJoker, 04-22-2024, 12:23 PM
|
6 responses
32 views
0 likes
|
Last Post
by JonesJoker
Today, 05:14 AM
|
||
Started by GussJ, 03-04-2020, 03:11 PM
|
12 responses
3,239 views
0 likes
|
Last Post
by Leafcutter
Today, 05:08 AM
|
||
Hi
by AveryFlynn
Started by AveryFlynn, Today, 04:57 AM
|
0 responses
5 views
0 likes
|
Last Post
by AveryFlynn
Today, 04:57 AM
|
||
Started by RubenCazorla, 08-30-2022, 06:36 AM
|
3 responses
79 views
0 likes
|
Last Post
by PaulMohn
Today, 04:44 AM
|
Comment