SetLevelValue( int level, double value) does not work in library

 

That pretty much says it all. But WHY? This isn't documented anywhere.

Basically, I wrote a function to traw 32 (maximum) levels in my indicator,

based on price range. It works fine, if the function is defined in the

indicator. It has no effect, however, when defined in a library.

I know the library function is actually executed with correct input

because a tested this by inserting a Print() statement.

But no levels are defined.

I want to be able to re-use my function. Is there any way I can make

it work from the library?

Thanks,

Robert

Files:
Reason: