How to make an indicator that can change bar Color?  [SOLVED]

Questions about MultiCharts and user contributed studies.
dingmanhoe123
Posts: 61
Joined: 25 Jul 2013
Has thanked: 18 times

How to make an indicator that can change bar Color?

Postby dingmanhoe123 » 09 Sep 2015

I want to make an indicator

If the condition H[2]<H[1]<H is fulfilled then

Change the three included bar to orange?

is it possible?

arjfca
Posts: 1292
Joined: 23 Nov 2010
Has thanked: 725 times
Been thanked: 223 times

Re: How to make an indicator that can change bar Color?

Postby arjfca » 10 Sep 2015

To change a single bar color:
If I recall, this feature is only available using MC.net

You may put a request on the Project Manager
https://www.multicharts.com/pm/

Martin

User avatar
TJ
Posts: 7740
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2221 times

Re: How to make an indicator that can change bar Color?  [SOLVED]

Postby TJ » 10 Sep 2015

I want to make an indicator
If the condition H[2]<H[1]<H is fulfilled then
Change the three included bar to orange?
is it possible?
Yes it is possible. You just have to use PLOT to paint over the bars with whatever color you want.
Or, if you are already using PLOT, you can use SETPLOTCOLOR to modify the colors.

arjfca
Posts: 1292
Joined: 23 Nov 2010
Has thanked: 725 times
Been thanked: 223 times

Re: How to make an indicator that can change bar Color?

Postby arjfca » 11 Sep 2015

I want to make an indicator
If the condition H[2]<H[1]<H is fulfilled then
Change the three included bar to orange?
is it possible?
Yes it is possible. You just have to use PLOT to paint over the bars with whatever color you want.
Or, if you are already using PLOT, you can use SETPLOTCOLOR to modify the colors.
TJ,
Thanks for the clarification.
I had tried before and never succeed.

Martin

User avatar
TJ
Posts: 7740
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2221 times

Re: How to make an indicator that can change bar Color?

Postby TJ » 11 Sep 2015

Yes it is possible. You just have to use PLOT to paint over the bars with whatever color you want.
Or, if you are already using PLOT, you can use SETPLOTCOLOR to modify the colors.
TJ,
Thanks for the clarification.
I had tried before and never succeed.

Martin
Martin: For the mere price of a pastrami sandwich, I can make any bar change to any color for you.

:-)>

maxmax68
Posts: 163
Joined: 20 Nov 2012
Has thanked: 55 times
Been thanked: 48 times

Re: How to make an indicator that can change bar Color?

Postby maxmax68 » 11 Sep 2015

Hi,
sometimes reading forum posts, and the answers I get this thought:
Probably a few lines of code would be most helpful as a response,
to teach something to all users of the forum.
Regards
Massimo

User avatar
TJ
Posts: 7740
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2221 times

Re: How to make an indicator that can change bar Color?

Postby TJ » 11 Sep 2015

Hi,
sometimes reading forum posts, and the answers I get this thought:
Probably a few lines of code would be most helpful as a response,
to teach something to all users of the forum.
Regards
Massimo
I usually gear my response to the question asked.
I don't guess, assume, or extrapolate.

If it were a general question, I would give a general answer.

If it were a specific question, I would give a specific answer.

If it were a coding question (ie with a snippet), I would give a coding answer.


If it were a discussion question, I'd usually stay away.

maxmax68
Posts: 163
Joined: 20 Nov 2012
Has thanked: 55 times
Been thanked: 48 times

Re: How to make an indicator that can change bar Color?

Postby maxmax68 » 11 Sep 2015

Probably the right thing is to use the PlotPaintBar keyword.

Try this code:

Code: Select all

if time>1000 and time<1100 then begin
PlotPaintBar(High,Low,Open,Close,"",Red);
end;
Massimo



Return to “MultiCharts”