- ago
hi guys, it seems some issue in indonind function. if you add optimize , the result will be wrong.

if no optimize


and the result seems like normal


but if add optimize, even do not run optimize, just add a range.


it result will be strange


i guess some function conflict.

hope can get this fixed.

thanks .
0
419
Solved
5 Replies

Reply

Bookmark

Sort
- ago
#1
and the same issue happens when add other scaleind indicator, no matter select optimze or not, it will cause a wrong calculation of indonind function.

just FYI
0
- ago
#2
Yes, as can be seen on your screenshot the IndOnInd takes the wrong parameter's value. It's a bug. Workaround: open the strategy as C# code and adjust as shown below:

CODE:
public override void Initialize(BarHistory bars) {          //indicator = new IndOnInd(bars,new ExpDevBandUpper(bars.Close,Parameters[0].AsInt,Parameters[0].AsDouble,false),new TR(bars));          indicator = new IndOnInd(bars,new ExpDevBandUpper(bars.Close,Parameters[0].AsInt,Parameters[1].AsDouble,false),new TR(bars));
0
Best Answer
- ago
#3
it works, but after adding another indonind indicator (which is EMA in different timeframe)in stratergy, the bug happens again.


here is some code:



0
- ago
#4
Verified a fix for this in upcoming B94.
1
- ago
#5
thanks Eugene. it is great.
0

Reply

Bookmark

Sort