Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Comparing strings
Collapse
X
-
Hi J2512, you can also use the DateTime.Compare method to check equality:
-
Hi All
finally I have solved this. Problem was that in some moment I changed the type of file from csv to UTF-8 CSV and the string is showed equal but internally no is the same.
I hope this help somebody in the future.
Regards.
Leave a comment:
-
Hi again
update the image because in the previous one string format has been changed from print to compring into if . Now both have dd/MM/yyyy format.
Regards.
Leave a comment:
-
Comparing strings
Hi all
I have a case so strange. In the image below you can see the output of strategy and the problem is that I get a date in string format from an array called fecha and get the date of a bar, hten print both and they are equals but when I try to compare by if statement no work (No print "BBBBB").
Somebody could help to me with this?
Even 4 or 5 hours ago I got that worked but now I do not know what change I did that no work....bad day !!
Regards.Tags: None
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Pabulon, Yesterday, 03:42 PM
|
3 responses
30 views
0 likes
|
Last Post
by Pabulon
Today, 04:30 AM
|
||
Started by giogio1, Yesterday, 03:18 AM
|
2 responses
14 views
0 likes
|
Last Post
by giogio1
Today, 04:21 AM
|
||
Started by MikM45, Today, 03:13 AM
|
0 responses
6 views
0 likes
|
Last Post
by MikM45
Today, 03:13 AM
|
||
Started by MikM45, Today, 03:10 AM
|
0 responses
4 views
0 likes
|
Last Post
by MikM45
Today, 03:10 AM
|
||
Started by cls71, Today, 12:29 AM
|
0 responses
5 views
0 likes
|
Last Post
by cls71
Today, 12:29 AM
|
Leave a comment: