Colored Channel

All posts which do not fit into any other sections of the forum.

Moderator: admin

Colored Channel

Postby Mirkolinho » Tue Dec 13, 2011 6:23 am

Hi guys,

Uploaded with

i colored a channel like this with:
Code: Select all
    instance:createChannelGroup("MAGroup","MAHigh" , hStream, cStream, instance.parameters.UPClr, 100-instance.parameters.Transparency);

I changed the color like this way:
Code: Select all
    if mH[period]<= TriggerS then

These are the parameters:
Code: Select all
    indicator.parameters:addColor("UPClr", "UP Color", "UP Color", core.rgb(255, 0, 0));
    indicator.parameters:addColor("NEClr", "NE Color", "NE Color", core.rgb(255, 255, 255));
    indicator.parameters:addInteger("Transparency", "Transparency", "", 80,0,100);

But instead of color (255,255,255) in NEClr i would like to have NO color or get it full transparencied.

How can i get it?
Best regards Mirko
Posts: 4
Joined: Sat Nov 26, 2011 8:38 am

Re: Colored Channel

Postby sunshine » Wed Dec 14, 2011 12:53 am

It is not possible to change transparency of the channel. You can use the following workaround: create two channels (transparent and non transparent) and put down values in one of the outputs alternately.

Return to General Discussions

Who is online

Users browsing this forum: No registered users and 8 guests