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?
How to obtain market opening time
- Andrew MultiCharts
- Posts: 1587
- Joined: 11 Oct 2011
- Has thanked: 931 times
- Been thanked: 559 times
Re: How to obtain market opening time
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.
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.
Re: How to obtain market opening time
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.
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.
- Andrew MultiCharts
- Posts: 1587
- Joined: 11 Oct 2011
- Has thanked: 931 times
- Been thanked: 559 times
Re: How to obtain market opening time
rkhan,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.
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.
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.How does it know which timezone i want the open for, I want it for UK stock market?