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 QueeniCooper, Today, 06:05 AM
|
1 response
12 views
0 likes
|
Last Post
![]() |
||
Started by MaidenTaurus, Today, 05:09 AM
|
0 responses
9 views
0 likes
|
Last Post
![]()
by MaidenTaurus
Today, 05:09 AM
|
||
Started by futurenow, 12-06-2021, 05:49 PM
|
18 responses
888 views
0 likes
|
Last Post
![]()
by dj0ntz
05-22-2025, 05:14 PM
|
||
Started by nailz420, 05-14-2025, 09:14 AM
|
1 response
121 views
0 likes
|
Last Post
|
||
Started by NinjaTrader_Brett, 05-12-2025, 03:19 PM
|
0 responses
539 views
1 like
|
Last Post
|
Leave a comment: