How to obtain market opening time

Questions about MultiCharts and user contributed studies.
rkhan
Posts: 65
Joined: 16 Mar 2014
Has thanked: 1 time
Been thanked: 2 times

How to obtain market opening time

Postby rkhan » 18 Mar 2014

I would like to to open a trade exactly 1hr after UK markets opens

So how would i do this?

See, i can easily lookup what time it opens, but then day light savings come into the picture and all sorts of issues with that.

So does easylanguage have a simple function which says something like

marketopentime + 1?

User avatar
Andrew MultiCharts
Posts: 1587
Joined: 11 Oct 2011
Has thanked: 931 times
Been thanked: 559 times

Re: How to obtain market opening time

Postby Andrew MultiCharts » 18 Mar 2014

Hello rkhan,

You can select exchange time zone on chart and use sess1firstbartime. Unfortunately there is no way to get market opening time other then from chart.

rkhan
Posts: 65
Joined: 16 Mar 2014
Has thanked: 1 time
Been thanked: 2 times

Re: How to obtain market opening time

Postby rkhan » 18 Mar 2014

Dear Sir,

I don't completely understand you.
I want to buy the market exactly 1hr after the market opens.
And i would like to do this via easyLanguage code.

So if i bring up a 1 hrly chart or EURUSD, and i apply exchange time zone on chart.
Then i type sess1firstbartime.

What will it return?
How does it know which timezone i want the open for, I want it for UK stock market?

Then i want to add 1hr to that, and take the trade at the very next bar.

User avatar
Andrew MultiCharts
Posts: 1587
Joined: 11 Oct 2011
Has thanked: 931 times
Been thanked: 559 times

Re: How to obtain market opening time

Postby Andrew MultiCharts » 19 Mar 2014

I don't completely understand you.
I want to buy the market exactly 1hr after the market opens.
And i would like to do this via easyLanguage code.

So if i bring up a 1 hrly chart or EURUSD, and i apply exchange time zone on chart.
Then i type sess1firstbartime.

What will it return?

Then i want to add 1hr to that, and take the trade at the very next bar.
rkhan,

If you select exchange time zone on chart, then the sess1firstbartime will return the first bar's closing time. Using this time you can compare it to current time (chart time). When the difference = 1 hour, then enter a trade.
How does it know which timezone i want the open for, I want it for UK stock market?
The article i gave you the link to in my previous message explains what MC understands as "exchange" time zone on chart and how it can be configured.


Return to “MultiCharts”