This Building Block Strategy

Should open a new position on my birthday.
It does not....
... because it produces this C# Code
I think instead of
... but even if I change the C# code as depicted above it does not work as intended...
This code does the job.
(Same problem in WL8)
Should open a new position on my birthday.
It does not....
... because it produces this C# Code
CODE:
dt = bars.DateTimes[index]; dtStart = new DateTime(1900,2,4); dtEnd = new DateTime(2026,11,13); coStart = CompareOperand.NotEqualTo; // WRONG!! coEnd = CompareOperand.LessThanEqualTo; if (coStart.CompareDates(dt, dtStart, true)) { condition0 = true; }
I think instead of
CODE:it should read
coStart = CompareOperand.NotEqualTo;
CODE:
coStart = CompareOperand.EqualTo;
... but even if I change the C# code as depicted above it does not work as intended...
This code does the job.
CODE:
if (dt.Day == dtStart.Day && dt.Month == dtStart.Month) { condition0 = true; }
(Same problem in WL8)
Rename
Thanks for the report. We'll work that out right away.
I'm amazed that that bug (and another one in CompareDates) went undetected so long.
I'm amazed that that bug (and another one in CompareDates) went undetected so long.
Your Response
Post
Edit Post
Login is required