If I drag the indicator "IndOnInd" on a Chart it produces bad code if I go "Push dropped Indicators to C# code"
Details:
I leave the parameters at their defaults:
Indicator: RSI(Close,20)
applied to: SMA(Close,20)
This produces a Chart with an Indicator: RSI(SMA(close,20),20)
If I go "Push indicator to code", it generates this code:
Details:
I leave the parameters at their defaults:
Indicator: RSI(Close,20)
applied to: SMA(Close,20)
This produces a Chart with an Indicator: RSI(SMA(close,20),20)
If I go "Push indicator to code", it generates this code:
CODE:which does not compile. It should produce this code:
ind1 = new IndOnInd(bars, new RSI(bars.Close,20), 20), new SMA(bars.Close, 20));
CODE:
ind1 = new IndOnInd(bars, new RSI(bars.Close,20), new SMA(bars.Close,20));
Rename
Thanks, I've logged the issue to get fixed in a future build.
Your Response
Post
Edit Post
Login is required