Welcome to the Traders Laboratory Forums.
Coding Forum Collaborate, receive help, or discuss coding related issues.

Reply
Old 05-16-2010, 06:11 AM   #1
aaa

aaa's Avatar

Join Date: Jun 2008
Location: Switzerland
Posts: 443
Ignore this user

Thanks: 240
Thanked 283 Times in 136 Posts

Set Background Color

Hi

Is there an other way than

PlotPaintBar

2 set ALL the backgroundcolor in a graph or in an indicator ?

Like

if condition1 then
SetBackGroundColor( blue);


*******************
I've found only these functions in the manual

GetBackgroundColor

Returns an RGB color number or a legacy color value that correspond to the background color of the chart.

*********************

SetPlotBGColor

Assigns a specified color to the cell bfor the indicated study plot for the duration of the current bar.
Use of SetBGPlotColor is effective only for the Scanner.
aaa is offline  
Reply With Quote
Old 05-29-2010, 07:38 AM   #2
aaa

aaa's Avatar

Join Date: Jun 2008
Location: Switzerland
Posts: 443
Ignore this user

Thanks: 240
Thanked 283 Times in 136 Posts

Re: Set Background Color

Found this trick from TAMS' code =

add a factor 2 the paintbar like c * 4
and set scaling type 2 no indicator

And It works fine

ThanX who ?
ThanX TAMS code !
aaa is offline  
Reply With Quote
The Following User Says Thank You to aaa For This Useful Post:
Tams (05-29-2010)
Old 05-29-2010, 09:56 AM   #3

Tams's Avatar

Join Date: Sep 2008
Location: Geelong
Posts: 3,779
Ignore this user

Thanks: 2,084
Thanked 1,474 Times in 912 Posts

Re: Set Background Color

yup... for now, this is the only trick to do background color.
I hope MultiCharts will come up with a new keyword soon.




see this post for detail instructions
http://www.traderslaboratory.com/for...-red-5721.html
96
Attached Thumbnails
Set Background Color-background-color.jpg  
__________________



Only an idiot would reply to a stupid post

Last edited by Tams; 05-29-2010 at 10:21 AM.
Tams is offline  
Reply With Quote
The Following User Says Thank You to Tams For This Useful Post:
aaa (05-29-2010)

Reply

Thread Tools
Display Modes Help Others By Rating This Thread
Help Others By Rating This Thread:


All times are GMT -4. The time now is 02:41 PM.
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
CS to VB integration by DeskLancer
©2006-2011 Traders Laboratory, All Rights Reserved.