Because there are multiple old attributes and they map to one new attribute, doing multiple regex passes is a little more complex. If your attributes aren't listed in the same order each time then there's no choice. If this is the case, I can come up with a simple solution for you if you're using RegexBuddy.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Ninjascript conversion
Collapse
X
-
Can you post a sample property with the attributes? I suspect you have them in a different order or have one or more missing (don't remember if the regex accounts for missing attributes). If it's just in the wrong order, I can easily change the regex to match.
Because there are multiple old attributes and they map to one new attribute, doing multiple regex passes is a little more complex. If your attributes aren't listed in the same order each time then there's no choice. If this is the case, I can come up with a simple solution for you if you're using RegexBuddy.
-
This is what I am trying to change using Regex.Originally posted by wbennettjr View PostCan you post a sample property with the attributes? I suspect you have them in a different order or have one or more missing (don't remember if the regex accounts for missing attributes). If it's just in the wrong order, I can easily change the regex to match.
Because there are multiple old attributes and they map to one new attribute, doing multiple regex passes is a little more complex. If your attributes aren't listed in the same order each time then there's no choice. If this is the case, I can come up with a simple solution for you if you're using RegexBuddy.Attached Files
Comment
-
Sorry for getting back to you so late - had to step out for a while.
You just had the attributes in a different order. Also, you have spaces between the attribute name and the opening parenthesis. I've updated the regex to account for these. You have mixed spaces and tabs so the result will compile but won't look pretty.
Code:(?<pre>\s*)\[Description\s*\((?<description>"[^"]+")\)\].*?\[(?:Grid)?Category\s*\((?<category>"[^"]+")\)\].*?\[Gui\.Design\.DisplayName\s*\((?<displayname>"[^"]+")\)\]
Comment
-
I've just posted a script that automates converting most indicators and strategies. See http://ninjatrader.com/support/forum...ad.php?t=79551.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by kinfxhk, 07-13-2026, 10:18 AM
|
0 responses
28 views
0 likes
|
Last Post
by kinfxhk
07-13-2026, 10:18 AM
|
||
|
Started by kinfxhk, 07-13-2026, 09:50 AM
|
0 responses
17 views
0 likes
|
Last Post
by kinfxhk
07-13-2026, 09:50 AM
|
||
|
Started by kinfxhk, 07-13-2026, 07:21 AM
|
0 responses
25 views
0 likes
|
Last Post
by kinfxhk
07-13-2026, 07:21 AM
|
||
|
Started by kinfxhk, 07-11-2026, 02:11 AM
|
0 responses
23 views
0 likes
|
Last Post
by kinfxhk
07-11-2026, 02:11 AM
|
||
|
Started by SalmaTrader, 07-07-2026, 10:26 PM
|
0 responses
138 views
0 likes
|
Last Post
by SalmaTrader
07-07-2026, 10:26 PM
|

Comment