Coloring Chart Background

Questions about MultiCharts and user contributed studies.
miltonc4
Posts: 150
Joined: 14 Apr 2006
Has thanked: 1 time
Been thanked: 4 times

Coloring Chart Background

Postby miltonc4 » 28 Apr 2008

Hi All
I note it is now possible to color chart background……is this correct?
Could someone give a simple example of how to:-

If close > MovAvge then
Color Backgrount Light Blue

If close < MovAvge then
Color Backgrount Light Red

Are there any sites/forums that might have other examples of coloring Chart Backgrounds that can be studied

Thanks
Milton

User avatar
Marina Pashkova
Posts: 2758
Joined: 27 Jul 2007

Postby Marina Pashkova » 28 Apr 2008

Hi Milton,

The background colour cannot be changed from a code.

User avatar
TJ
Posts: 7232
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 991 times
Been thanked: 2058 times

Postby TJ » 28 Apr 2008

however, you can underlay a thick paintbar under the price bar.
This will highlight the bar with different background color.

miltonc4
Posts: 150
Joined: 14 Apr 2006
Has thanked: 1 time
Been thanked: 4 times

Postby miltonc4 » 04 May 2008

Hi TJ
Would you mind showing me how this could be done,that is:-
.........however, you can underlay a thick paintbar under the price bar.
.........This will highlight the bar with different background color.

Ultimately the aim is to do two things:
1. Plot a verticle line (Blue)when price > Mov avge and Plot a verticle line (Red)when price < Mov avge
2. When verticle line is plotted,then continue color background same color as the verticle line

I know MC plots verticle lines but I dont know how to get started
Regards
Milton

User avatar
TJ
Posts: 7232
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 991 times
Been thanked: 2058 times

Postby TJ » 04 May 2008

Hi TJ
Would you mind showing me how this could be done,that is:-
.........however, you can underlay a thick paintbar under the price bar.
.........This will highlight the bar with different background color.

Ultimately the aim is to do two things:
1. Plot a verticle line (Blue)when price > Mov avge and Plot a verticle line (Red)when price < Mov avge
2. When verticle line is plotted,then continue color background same color as the verticle line

I know MC plots verticle lines but I dont know how to get started
Regards
Milton
The easiest way to start is to use a study included in the MultiCharts program.

You can add "Moving Average with Envelop" to your chart.

then go to format study,
change the Plots:
-- UpperBand to Bar High and LowerBand to Bar Low.
-- Weight to the thickest line

You will see the plot covering your price bar. Don't worry... right click on the study... choose "Visual Order", select "Send to back".

if you don't like the color, you can change it on the Format Study window:
try this on the Upcol and Dncol option in the Input section of the Format Study window:
for pink color, type in the following code: rgb(225,175,160)
for apple green color, type in the following code: rgb(170,225,125)

you can see the attached for a visual effect.

hope the above helps.

If you need more customization, you can open the script using the PowerEditor and try some modifications right in the code. It is not that difficult. Give it a try, a whole new world is waiting for you to discover.
Attachments
MA.jpg
(130.91 KiB) Downloaded 664 times

miltonc4
Posts: 150
Joined: 14 Apr 2006
Has thanked: 1 time
Been thanked: 4 times

Postby miltonc4 » 05 May 2008

Hi TJ
Thanks for your explanation
Have made a start,and Yes,it is a new world when trying to create studies,signals etc. Its happening but slowly slowly
I am probably old school eyeball the chart stuff and trade
I love it too,but more interesting is making money trading
Best regards
Milton

User avatar
TJ
Posts: 7232
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 991 times
Been thanked: 2058 times

Postby TJ » 05 May 2008

There are 2 indicators that might be of interest to you.

Price < Avg
Price > Avg

after you have added them to your chart, you can:

1. bring the price bar to the front,
2. format the indicator bars to thickest line

I have attached a screen shot for your reference.
Attachments
pa.jpg
(114 KiB) Downloaded 659 times

miltonc4
Posts: 150
Joined: 14 Apr 2006
Has thanked: 1 time
Been thanked: 4 times

Postby miltonc4 » 07 May 2008

Thanks TJ
Milton


Return to “MultiCharts”