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?
Change chart background color AND seconds to bar close
Re: Change chart background color AND seconds to bar close
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.
double secondsToBarClose = Bars.BarUpdateTime.Subtract(DateTime.Now).TotalSeconds;
Please help me on how to change chart background color from an indicator.
- 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
jagui, that is possible to use IChartCustomDrawer Method to do that.