I tried to do
Code: Select all
NumToStr(sessionstarttime(1,1),0)
Code: Select all
NumToStr(sessionstarttime(1,1),0)
Format instrument->Setting->Chart Setting->Sessions?
I tried to do
but that give me the session time in quotemanagerCode: Select all
NumToStr(sessionstarttime(1,1),0)
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.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.
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.