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,
Image

Uploaded with ImageShack.us

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
        hStream:setColor(period,instance.parameters.DNClr);
    else
        hStream:setColor(period,instance.parameters.NEClr);
    end

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
Mirkolinho
 
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.
sunshine
 


Return to General Discussions

Who is online

Users browsing this forum: No registered users and 3 guests