Background Function

everything that doesn't belong elsewhere cometh here

Moderator: moderators

pedrohcarvalho
rank: <50 posts
rank: <50 posts
Posts: 1
Joined: Sun Mar 24, 2019 12:55 am
Reputation: 0
Gender: None specified

Background Function

Postby pedrohcarvalho » Sun Mar 24, 2019 1:17 am

Hi, Im looking for a 'Back ground color' code in easylanguage.

Thanks

Please add www.kreslik.com to your ad blocker white list.
Thank you for your support.

User avatar
dojirock
rank: 1000+ posts
rank: 1000+ posts
Posts: 1921
Joined: Tue Nov 17, 2009 10:11 pm
Reputation: 726
Gender: None specified
Contact:

Re: Background Function

Postby dojirock » Sun Mar 24, 2019 5:36 pm

vars: BGCol(white);

if close > Average (c,20) then BGCol= cyan else BGCol= magenta;

Plot1(GetAppInfo(aiHighestDispValue),"aHi");
Plot2(GetAppInfo(aiLowestDispValue),"aLo");

SetPlotColor(1, BGCol);
SetPlotColor(2, BGCol);

-doji
It always takes Momentum to break Momentum!
"A small loss is just as satisfying as a large gain" -MO
"Sometimes we need to stop learning and start thinking...."
"Once you stack, you'll never go back!"


Return to “general”