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
Ploting a green or red square on the buttom window
- 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
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:
You can also draw squares with the trendlines but it is more complicated.
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:
you can play with the plot settings (indicator properties... -> Style).plot1(1);
if close > open then setplotcolor(1, green) else setplotcolor(1, red);
You can also draw squares with the trendlines but it is more complicated.
Re: Ploting a green or red square on the buttom window
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:
you can play with the plot settings (indicator properties... -> Style).plot1(1);
if close > open then setplotcolor(1, green) else setplotcolor(1, red);
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
- 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
Dear Martin,
You are welcome. Glad to hear that the problem has been solved.
You are welcome. Glad to hear that the problem has been solved.