Lastbar close

Questions about MultiCharts and user contributed studies.
waldem
Posts: 115
Joined: 18 Nov 2013
Has thanked: 3 times
Been thanked: 4 times

Lastbar close

Postby waldem » 06 Apr 2021

Hallo team, why sometime the last bar close is not get?
i did very simple commentary:

Code: Select all

If AtCommentaryBar then begin Vars:Str(""); str=Str+" ****************************************"+NewLine; str=Str+" commentary relativo a PROVA"+NewLine; str=Str+" Close = "+NumToStr(close ,3)+NewLine; str=Str+" barstatus = "+NumToStr(barstatus ,3)+NewLine; Commentary(str); end;
I applied this to weekly metastock chart.

i see the close of last but one bar, but i see no signal applied on last bar.
last but one.jpg
(157.98 KiB) Not downloaded yet
last.jpg
(146.01 KiB) Not downloaded yet
strange thing is that if i wait 10 minutes after i will see also the last bar.
last2.jpg
(156.51 KiB) Not downloaded yet
if i reload data, again i don't see last bar close..

User avatar
Tammy MultiCharts
Posts: 200
Joined: 06 Aug 2020
Has thanked: 6 times
Been thanked: 65 times

Re: Lastbar close

Postby Tammy MultiCharts » 16 Apr 2021

Hello waldem,

The weekly bars from MetaStock are closed after a 10-minute timeout after the session is closed.
While the last bar is open, it is expected that the signal is not calculated on it.

To have the study calculated on the last weekly bar you can try to create an Indicator with the same logic, apply it to the chart, in Format Indicators > Properties tab enable Update on Every Tick.


Return to “MultiCharts”