- ago
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:
CODE:
ind1 = new IndOnInd(bars, new RSI(bars.Close,20), 20), new SMA(bars.Close, 20));
which does not compile. It should produce this code:
CODE:
ind1 = new IndOnInd(bars, new RSI(bars.Close,20), new SMA(bars.Close,20));

0
266
Solved
1 Replies

Reply

Bookmark

Sort
Glitch8
 ( 12.08% )
- ago
#1
Thanks, I've logged the issue to get fixed in a future build.
0
Best Answer

Reply

Bookmark

Sort