Close of previous day

Questions about MultiCharts .NET and user contributed studies.
snuff
Posts: 6
Joined: 21 Jul 2013
Been thanked: 1 time

Close of previous day

Postby snuff » 21 Jul 2013

Hello,
I´ve got some problem with Close of a previous day value. For instance my signal is running on 15min. chart, but I need to use for some calculations Close of previous day.. Is is possible to use some simple function or not? Now I used only code, which I found in OHLC indicator, but I'm looking for something more simple..I know that EasyLanguage has function CloseD[1], but I'm looking for some similar function in Multicharts.NET... Thanks for answer..

And second thing please - The code in CalcBar() {} is counted on every new tick?

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

Re: Close of previous day

Postby Henry MultiСharts » 25 Jul 2013

Hello snuff,

MultiCharts .NET as well has CloseD function. This function returns the daily close price at midnight.
If you want to get the close of the daily bar - you can add additional data series with 1 day resolution and reference it in your code or use IDataLoader to load this data.

If Intra bar order generation is enabled - CalcBar is called on every tick. Please also see How Signals are Calculated


Return to “MultiCharts .NET”