In your code, you're trying to find _Calendar_Events.name ("Nonfarm Payrolls" or whatever) inside _EventSearch ("Nonfarm"), that is, you're reversing the order of the parameters. Just call in the reverse order and you should be good:
if(StringFind(_Calendar_Events.name,_EventSearch) >=0) // searches for _EventSearch in _Calendar_Events.name
Emanuel Cavalcante Amorim Filho #:
In your code, you're trying to find _Calendar_Events.name ("Nonfarm Payrolls" or whatever) inside _EventSearch ("Nonfarm"), that is, you're reversing the order of the parameters. Just call in the reverse order and you should be good:
Gah! You are my hero!! Spend so much time on this :)
Its in the details !
Thanks alot
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi,
Been struggle with StringFind for some hours now and Googled with no luck so...
Problem is that the string variable I use (_EventSearch) for search in StringFind does not work?
It works if the StringFind have an EXACT match (ex: "Nonfarm Payrolls") but not a subset ("Nonfarm") as described in reference.
Please copy all code and compile and see if you get what I am doing wrong ??
Thanks in Advance!