SessionFirstBarTime

Questions about MultiCharts and user contributed studies.
Chillie
Posts: 7
Joined: 01 Oct 2010

SessionFirstBarTime

Postby Chillie » 29 Nov 2010

Hi

I am in Australia and trade FX (24 Hour market).

I am trying to detect when the session changes to calculate pivots. To do this I use SessionFirstBarTime which works well during normal trading. However when I backtest I need to take into account changes in Day Light Saving against the exchange time. Is there a way to detect what session a particular bar is in?

Thanks,

Daniel

User avatar
Dave Masalov
Posts: 1712
Joined: 16 Apr 2010
Has thanked: 51 times
Been thanked: 489 times

Re: SessionFirstBarTime

Postby Dave Masalov » 08 Dec 2010

Dear Daniel,

Please use sessionstartday, sessionstarttime, sessionendday and sessionendtime keywords. You may find the description in the help.

Chillie
Posts: 7
Joined: 01 Oct 2010

Re: SessionFirstBarTime

Postby Chillie » 13 Dec 2010

Thanks.

How do I find what my session number is during back testing?

User avatar
Dave Masalov
Posts: 1712
Joined: 16 Apr 2010
Has thanked: 51 times
Been thanked: 489 times

Re: SessionFirstBarTime

Postby Dave Masalov » 16 Dec 2010

Dear Daniel,

Please use CurrentSession keyword.


Return to “MultiCharts”