da420078
 ( 52.26% )
- ago
Hello WL7 team,
Could you please tell me the WL7 equivalent of

CODE:
if (p.EntrySignal.Contains("Entry_Name"))



Thank you.

0
1,040
Solved
8 Replies

Reply

Bookmark

Sort
Glitch8
 ( 11.29% )
- ago
#1
CODE:
if (p.EntrySignalName.Contains("Entry_Name"))
1
Best Answer
da420078
 ( 52.26% )
- ago
#2
I had to look twice. ;)

Thank you Glitch.
1
- ago
#3
Look, these equivalents are already collected in the updated WL6 QuickRef by @Cone:

https://www.wealth-lab.com/Discussion/Quick-WL6-9-to-WL7-Translation-Guide-5548
0
da420078
 ( 52.26% )
- ago
#4
Thank you Eugene, but having spent significant time searching for it, I couldn't find this specific example.
I could be completely wrong, but I suspect many users, especially Fidelity's base, who originally experimented and built strategies using the Visual Programming Interface of 6.9 and then switched to code to enhance and tweak those strategies over time, probably find the 6.9 >> 7 conversion documentation quite underwhelming. I have requested more comprehensive documentation, but accept the resource constraints. It would be great to have some way of searching for specific V6 terms and seeing their V7 equivalents. I appreciate that some work has been done on this and there are priorities. But what a power-coder like yourself finds easy and obvious is not necessarily so for everyone. Having said that, you are also the experts on your user-base profile.
I would prefer not to bog down the discussion board with such questions, but there is no other support mechanism available.
0
Glitch8
 ( 11.29% )
- ago
#5
That's what the forum is here for! We do need to remember that the vast majority of users don't have the whole framework on the tip of their brains like we do, and you're right that this example was not called out in the topic Eugene pointed you to.
0
da420078
 ( 52.26% )
- ago
#6
Thank you Glitch, Eugene, and Cone for your support.

My approach to conversion is to first try modifying the code, then, because I'm a big advocate for VPLs and NCDPs, try to recreate the strategies in Building Blocks.
The collapsible blocks coming in build 39 will be a big help, but I'm looking forward to a full browser-based solution at some point down the road. Not only do I think that interface is superior, but it would mean I don't have to have a PC with the desktop version loaded with me at all times, I can simply use any device with a browser that happens to be handy.
1
da420078
 ( 52.26% )
- ago
#7
Does EntrySignalName.Contains work in the same way as V6?

In version 6, you could have an entry signal of the form "Name_9" and you could reference this with EntrySignal.Contains "Name" and any EntrySignal containing "Name" would be recognized.
Should V7 work in the same way, i.e. is it valid to provide only part of the name?
0
- ago
#8
Sure, it's still C# and its string.Contains method acts the same.
0

Reply

Bookmark

Sort