Change chart background color AND seconds to bar close

Questions about MultiCharts .NET and user contributed studies.
jagui
Posts: 5
Joined: 14 Dec 2014

Change chart background color AND seconds to bar close

Postby jagui » 14 Dec 2014

Hi,

I just switched from NT to Multicharts.NET and I am currently porting all my indicators to MC.NET.
I've been able to port every indicator but probably the simplest one, and indicator that "flash" the charts by changing its background color at n seconds to bar close.
I cannot find a way to determine how many seconds to bar close and how to change the background color of the chart.

Can you help me?

jagui
Posts: 5
Joined: 14 Dec 2014

Re: Change chart background color AND seconds to bar close

Postby jagui » 15 Dec 2014

I've figured out how to calculate seconds to bar close:

double secondsToBarClose = Bars.BarUpdateTime.Subtract(DateTime.Now).TotalSeconds;

Please help me on how to change chart background color from an indicator.

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: Change chart background color AND seconds to bar close

Postby Henry MultiСharts » 15 Dec 2014

jagui, that is possible to use IChartCustomDrawer Method to do that.


Return to “MultiCharts .NET”