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?
Close of previous day
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2957 times
Re: Close of previous day
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
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