Market Hours

Moderator: admin

Market Hours

Postby Apprentice » Sat May 01, 2010 4:10 pm

Market Hours.png
Market Hours

I need your help to finish this indicator.

Indicator that shows when the markets opens.
When and if completed, can be used for various applications.

Test whether is working in your time zone, according to my local time is working fine.
Market Hours.lua
Market Hours
(3.01 KiB) Downloaded 1064 times
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36437
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Market Hours

Postby a135711 » Mon May 03, 2010 12:21 am

the market session indicator set vertical lines at 1:00 am only . current time zone pacific and market scope time settings to server. changing the time settings to local sets the vertical bars to 22:00. setting the time settings to UTC puts vertical bars at 5:00 pm. changing server time to financial time sets vertical bars to 8:00 am. only one set of vertical lines are visible, they are default green and occur at intervals as specified above. i will check this forum with greater regularity to respond. i appreciate the effort


thank you
a135711
 
Posts: 39
Joined: Fri Apr 30, 2010 12:01 pm

Re: Market Hours

Postby a135711 » Mon May 03, 2010 12:33 am

the market session indicator functions on 1 hour chart and less but not on two hour chart or more.
a135711
 
Posts: 39
Joined: Fri Apr 30, 2010 12:01 pm

Re: Market Hours

Postby Nikolay.Gekht » Mon May 03, 2010 7:44 am

a135711 wrote:the market session indicator functions on 1 hour chart and less but not on two hour chart or more.

Hm... I'm not sure how it should work on two hours chart. Two hour chart is always aligned against server's begin of the trading session. So, another trading session can begin in the middle of the N-hour candle.
Nikolay.Gekht
FXCodeBase: Site Admin
 
Posts: 1235
Joined: Wed Dec 16, 2009 6:39 pm
Location: Cary, NC

Re: Market Hours

Postby Nikolay.Gekht » Mon May 03, 2010 7:51 am

About the indicator:

The date and time of the price streams and the time as it is used in the drawLine call is always EST/EDT (New York time).

The date and time displayed on the time axis is the date time converted into the User's chosen time zone (variant: EST/EDT, GMT, Server's TimeZone, "Financial" time (0:00 is the server's trading day start). You do not need to care about the date and time translation into the chosen time time zone, Marketscope does it automatically.

If you need to convert the time between (for example to show the date and time in the label text properly) EST, GMT, User's Local TZ and TZ chosen in the user settings use host:execte("convertTime") call. See http://www.fxcodebase.com/documents/ind ... tTime.html
Nikolay.Gekht
FXCodeBase: Site Admin
 
Posts: 1235
Joined: Wed Dec 16, 2009 6:39 pm
Location: Cary, NC

Re: Market Hours

Postby Nikolay.Gekht » Mon May 03, 2010 5:38 pm

I rebuild the indicator. Now it loads the hour data to calculate the trading session high/lows, so:

1) finding the hi/lo works much faster
2) it works even if whole trading session is out of the currently opened chart range.

viewtopic.php?f=17&t=940

I didn't include the sidney session because I didn't found the proper settings for the trading session begin and the trading session length.
Nikolay.Gekht
FXCodeBase: Site Admin
 
Posts: 1235
Joined: Wed Dec 16, 2009 6:39 pm
Location: Cary, NC

Re: Market Hours

Postby Nikolay.Gekht » Mon May 03, 2010 6:05 pm

Added sidney. Sorry, I didn't read the original request :-)
Nikolay.Gekht
FXCodeBase: Site Admin
 
Posts: 1235
Joined: Wed Dec 16, 2009 6:39 pm
Location: Cary, NC

TRADE SESSION HIGHLIGHTER adaptation

Postby a135711 » Wed May 05, 2010 5:41 pm

the trade-session highlighter and the auto fibo/gann indicator should be merged in the following way. the complete functionality of the auto-fibo-levels indicator should be wrapped in the trade-session-highlight indicator. it probably should be optional. thank you
a135711
 
Posts: 39
Joined: Fri Apr 30, 2010 12:01 pm

Re: Market Hours

Postby Nikolay.Gekht » Wed May 05, 2010 6:18 pm

A good idea. Why not?
Nikolay.Gekht
FXCodeBase: Site Admin
 
Posts: 1235
Joined: Wed Dec 16, 2009 6:39 pm
Location: Cary, NC


Return to Indicator Development

Who is online

Users browsing this forum: No registered users and 17 guests