In Easylanguage, how do I get the session timing that is in  [SOLVED]

Questions about MultiCharts and user contributed studies.
maisatomai
Posts: 83
Joined: 18 Mar 2013
Has thanked: 11 times

In Easylanguage, how do I get the session timing that is in

Postby maisatomai » 04 Apr 2016

Format instrument->Setting->Chart Setting->Sessions?

I tried to do

Code: Select all

NumToStr(sessionstarttime(1,1),0)
but that give me the session time in quotemanager

User avatar
TJ
Posts: 7743
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2222 times

Re: In Easylanguage, how do I get the session timing that is

Postby TJ » 04 Apr 2016

Format instrument->Setting->Chart Setting->Sessions?

I tried to do

Code: Select all

NumToStr(sessionstarttime(1,1),0)
but that give me the session time in quotemanager

What is "session timing"?

What do you mean by "session timing that is in"?

Please give an example.

maisatomai
Posts: 83
Joined: 18 Mar 2013
Has thanked: 11 times

Re: In Easylanguage, how do I get the session timing that is

Postby maisatomai » 05 Apr 2016

Capture.JPG
(21.58 KiB) Downloaded 592 times
For example in here, the session timing is set from 0800-2200

I wanted to place a signal in this instrument and find out the session time of the instrument.

I tried using print(NumToStr(sessionstarttime(1,1),0)) and it will give me 0005-2355 which is the session time in quotemanager.

User avatar
JoshM
Posts: 2195
Joined: 20 May 2011
Location: The Netherlands
Has thanked: 1544 times
Been thanked: 1565 times
Contact:

Re: In Easylanguage, how do I get the session timing that is  [SOLVED]

Postby JoshM » 05 Apr 2016

For example in here, the session timing is set from 0800-2200

I wanted to place a signal in this instrument and find out the session time of the instrument.

I tried using print(NumToStr(sessionstarttime(1,1),0)) and it will give me 0005-2355 which is the session time in quotemanager.
It's not possible to retrieve the session template that's added to the current chart; `SessionStartTime()` and keywords like it return the time that's used in the QuoteManager.

Here is a related thread in which Henry offered the following solution:
You need to select the same time zone both in Quote manager->Edit symbol->Sessions tab and Format->Instrument->Settings tab.
In this case you will have the same timestamps in the symbol sessions tab, on the chart and in PLE.


Return to “MultiCharts”