Do we have a function or reserved word for the start of bar?

Questions about MultiCharts and user contributed studies.
2haerim
Posts: 502
Joined: 01 Sep 2006
Been thanked: 2 times

Do we have a function or reserved word for the start of bar?

Postby 2haerim » 07 Sep 2007

Do we have it?

For example, for intrabar and daily bar the start date and end date of bar are equal, but for weekly, monthly, ... they are different.

So it would be natural to have a function or reserved word for both the start date and end date of a bar.

And we need also start time and end time of a bar too.


HaeRim
InvestWare, Inc.
http://www.investware.net

User avatar
ABC
Posts: 718
Joined: 16 Dec 2006
Location: www.abctradinggroup.com
Has thanked: 125 times
Been thanked: 408 times
Contact:

Postby ABC » 07 Sep 2007

2haerim,

what you want should be doable with BarStatus already:

This reserved word will return one of four possible values:

2 = the closing tick of a bar
1 = a tick within a bar
0 = the opening tick of a bar (relevant only for strategies using Open Next Bar order actions)
-1 = an error occurred while executing the reserved word

Now you only need to store the values in variables.

At least it gets you going, until TS Support has established something else.

Best regards,

ABC


Return to “MultiCharts”