Ploting a green or red square on the buttom window

Questions about MultiCharts and user contributed studies.
arjfca
Posts: 1292
Joined: 23 Nov 2010
Has thanked: 725 times
Been thanked: 223 times

Ploting a green or red square on the buttom window

Postby arjfca » 01 Dec 2010

Hello again

Under certain condition, I would like to draw a green or a red square in the bottom window. Is it possible?

On bottom window, 1 line with green or red square for each bars

Any help appreciated

Martin

User avatar
Dave Masalov
Posts: 1712
Joined: 16 Apr 2010
Has thanked: 51 times
Been thanked: 489 times

Re: Ploting a green or red square on the buttom window

Postby Dave Masalov » 02 Dec 2010

Dear Martin,

Not sure what do you mean by "in the bottom window". On a separate subchart?

Square of what size do you need? Should it be colored or empty?

Here is what I can suggest. Using the following script:
plot1(1);
if close > open then setplotcolor(1, green) else setplotcolor(1, red);
you can play with the plot settings (indicator properties... -> Style).

You can also draw squares with the trendlines but it is more complicated.

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

Re: Ploting a green or red square on the buttom window

Postby arjfca » 02 Dec 2010

Dear Martin,

Not sure what do you mean by "in the bottom window". On a separate subchart?

Square of what size do you need? Should it be colored or empty?

Here is what I can suggest. Using the following script:
plot1(1);
if close > open then setplotcolor(1, green) else setplotcolor(1, red);
you can play with the plot settings (indicator properties... -> Style).

You can also draw squares with the trndlines but it is more complicated.

Hello Dave

Martin

I did resolved my problem by selecting "Point" in the style menu. Point or square... similar for me.
I did put my new indicator in the subcharts #2.

Configuration resolve.
Many thanks

User avatar
Dave Masalov
Posts: 1712
Joined: 16 Apr 2010
Has thanked: 51 times
Been thanked: 489 times

Re: Ploting a green or red square on the buttom window

Postby Dave Masalov » 03 Dec 2010

Dear Martin,

You are welcome. Glad to hear that the problem has been solved.


Return to “MultiCharts”