Hello,
I wonder when it's required, or correct, to use the Call() method. What about this case?
protected override void CalcBar(){
function.prop=a.Value;
my.Value=function.Value;
plot1.Set(my.Value);
}
Should I have a function.Call() in there somewhere?
Regards,
Christer
When to use function.Call() [SOLVED]
Re: When to use function.Call()
Does it matter if function is FunctionSeries or FunctionSimple?
//Christer
//Christer
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2957 times
Re: When to use function.Call() [SOLVED]
Hello cms,
You need to use function.Call only when the body of the series function is not being called for calculation directly. For example:Otherwise if you do not use function.Call where you need it - MultiCharts will do that for you, but at the end of the script calculation on the current bar. Depending on the code it can affect the function calculation results.
You need to use function.Call only when the body of the series function is not being called for calculation directly. For example:
Code: Select all
if(MyCondition)
SomeValue = myfunction[0];
else
myfunction.Call();