sessionLastBar and sessionLastBar[1] is egual  [SOLVED]

Questions about MultiCharts and user contributed studies.
shivax
Posts: 40
Joined: 02 Sep 2013
Has thanked: 17 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: 524
Joined: 16 Dec 2006
Has thanked: 111 times
Been thanked: 295 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
These users thanked the author ABC for the post:
Henry MultiСharts

User avatar
Henry MultiСharts
Posts: 8503
Joined: 25 Aug 2011
Has thanked: 1213 times
Been thanked: 2731 times

Re: sessionLastBar and sessionLastBar[1] is egual

Postby Henry MultiСharts » 19 Oct 2017

ABC wrote: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
These users thanked the author Henry MultiСharts for the post:
ABC


Return to “MultiCharts”