If I drag and drop a CompositeIndex (-Indicator) on a chart and go "Push dropped Indicators to new C# coded strategy" it generates code which does not compile:
Rename
It works for me in B50 and IL B8.
Hmm... the screenshot above is form Build 50.
What code is generated if you do this?
What code is generated if you do this?
Code is the same. Are you using IL B8?
Yup same here. I'm not sure why that doesn't work, but you can just substitute new CompositeWeightedIndex(bars,"DOW 30",2000,"") for now.
It works for me because I tried CompInd, not CompositeIndex 🤦♂️
To be fixed in B9. Thanks for the heads-up.
Similar problem with CompNHNLO():
Wilco.
Also: CompCrossovers2 aka CompPriceIndCross():
Cannot convert from string to bool
Cannot convert from string to bool
Can't duplicate yet. Which indicators are you crossing?
Should happen for any:
Got it.. you're talking about pushed code. We'll get that one too, thanks.
QUOTE:
you're talking about pushed code
In fact I am talking about the (internal) information about indicators and the IndicatorFactory singleton.
But these problems show up also in "pushed code" and are easily visible there.
Your Response
Post
Edit Post
Login is required