sessionLastBar and sessionLastBar[1] is egual  [SOLVED]

Questions about MultiCharts and user contributed studies.
shivax
Posts: 90
Joined: 02 Sep 2013
Has thanked: 37 times

sessionLastBar and sessionLastBar[1] is egual

Postby shivax » 13 Oct 2017

sessiobarlast[1] is the bar before sessionlastbar?

if true, why f i print sessionlastbar and sessionlastbar[1] i get s the same value?

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

Re: sessionLastBar and sessionLastBar[1] is egual  [SOLVED]

Postby ABC » 18 Oct 2017

shivax,

not all reserved words can be back referenced (maybe the Multicharts support can provide a list of the reserved words that you can back reference), in that case the references provide the same value as the current bar does. You can overcome this by storing the reserved word in a variable and back reference the variable.

Regards,

ABC

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

Re: sessionLastBar and sessionLastBar[1] is egual

Postby Henry MultiСharts » 19 Oct 2017

maybe the Multicharts support can provide a list of the reserved words that you can back reference
Hello ABC,

Here you go:

Code: Select all

open
high
low
close
volume
openint
date
time
ticks
upticks
downticks
time_s
datetime
tickid

symbol_open
symbol_high
symbol_low
symbol_close
symbol_volume
symbol_openint
symbol_date
symbol_time
symbol_ticks
symbol_upticks
symbol_downticks
symbol_time_s
symbol_datetime
symbol_tickid


Return to “MultiCharts”