Hi,
I have a function which draws trendlines (TLs). I have an indicator that calls it and it seems to work fine.
However, when I use the function inside of a strategy, I am not seeing the TLs appear on the chart. My log reports them as being successfully created, but the TL drawings do not appear on the chart.
Are TL drawings from functions disallowed/disabled from inside a strategy?
If not, what else could be causing the difference in behavior?
Trendlines from Function Inside a Strategy [SOLVED]
Re: Trendlines from Function Inside a Strategy [SOLVED]
A colleague of mine has found the solution for this. I'll mention it here in case it can help someone else to avoid the problem.
What was needed was the line:
[LegacyColorValue = true];
This line was present in the sub-function and the indicator in question, but not in the strategy. Putting it also in the strategy, the TL drawing is now behaving as expected.
Cheers!
What was needed was the line:
[LegacyColorValue = true];
This line was present in the sub-function and the indicator in question, but not in the strategy. Putting it also in the strategy, the TL drawing is now behaving as expected.
Cheers!