SetIndexLabel does not update
Posted: Tue Oct 26, 2010 4:46 pm
Using the following code:
Has no effect on the IndexLabel text even when the period is changed to another value with the options menu.
Same using the SetIndexLabel inside the Calculate also seems not to have the ability to change the text.
It looks like if it is set once it is unchangeable after that.
Is this a bug or a misinterpretation of me how to use the function.
How can I change the IndexLabel's when the Pramas changed ?
Wessel
Code: Select all
procedure OnParamsChange; stdcall;
begin
SetIndexLabel(0, 'EMA'+IntToStr(period) );
end;
Has no effect on the IndexLabel text even when the period is changed to another value with the options menu.
Same using the SetIndexLabel inside the Calculate also seems not to have the ability to change the text.
It looks like if it is set once it is unchangeable after that.
Is this a bug or a misinterpretation of me how to use the function.
How can I change the IndexLabel's when the Pramas changed ?
Wessel