Linux Build 137: MQL[45] Code: StringFind always returns true

In MQL[45] source code generated by "Strategies merged into one [trading in parellel]":

1. In MQ4 strategy code, function orderFits: The following always returns true if two strategies without Magic Numbers but with comments: Comment1, Abc.Comment1.Xyz

if(comment != "") { if(StringFind(OrderComment(), comment) == -1) return false; }


2. In MQ5 strategy code, function dealFits: The following always returns true if two strategies without Magic Numbers but with comments: Comment1, Abc.Comment1.Xyz

if(comment != "") { if(StringFind(dealComment, comment) == -1) return(false); }



Attachments
No attachments
  • Votes +2
  • Project StrategyQuant X
  • Type Bug
  • Status New
  • Priority Normal

History

m
#1

murty

23.10.2023 17:29

Task created

E
#2

Emmanuel

23.10.2023 21:50
Voted for this task.
m
#3

murty

29.10.2023 18:15
Voted for this task.

Votes: +2

Drop files to upload

or

choose files

Max size: 5MB

Not allowed: exe, msi, application, reg, php, js, htaccess, htpasswd, gitignore

...
Wait please