Page 3 of 6

Re: Trading Session Hours Highlight

PostPosted: Mon Jun 21, 2010 3:20 pm
by Nikolay.Gekht
You're going so far, guys. :-)

What can I say:

1) There is difference b/w the tooltip shown when the user clocks on the chart (this damned "yellow" box) and tooltip we show over the indicator's label. BTW, here is two moments:
a) You can easily turn the yellow box off via options.
b) The timeout to show the tooltip can be changed. By default, the Windows shows tooltip in 0,5 second, but you can tune this value via registry or one of thousands "tweak" and "trick" applications.
How to change the tooltip timeout:
http://khsw.blogspot.com/2005/03/changi ... ps-or.html

- It don't like pets!
- You just don't know how to cook them right!
:-P


2) Precision was a question until the last beta release. Now the indicators and oscillators can define their own precision on the streams.

Ok, anyway I'll prepare another version today, following to your ideas, so we can go forward step-by-step.

Re: Trading Session Hours Highlight

PostPosted: Mon Jun 21, 2010 4:40 pm
by Nikolay.Gekht
Ok. The next version:

a) You can choose the individually sessions for which the data will be shown
b) You can choose which data will be shown:
- name
- high
- low
- open->to->high distance in pips
- open->to->low distance in pips
- high-to-low distance in pips
c) You can show on how to show the data
- show all as labels
- show only the name, all other data is shown in tooltip which appears when you move
cursor to the label
d) Sydney spelling is fixed
e) The default font size is reduced from 8 to 6.
ss.png


download:
TRADESESSIONS.lua
(14.94 KiB) Downloaded 3188 times


Note: Beta!!! When the indicator is finished I'll update the topmost post!

Re: Trading Session Hours Highlight

PostPosted: Tue Jun 22, 2010 1:53 pm
by a135711
Nikolay,
well done so far

a user selected option for a session grid

when the user selects the grid as true, then the following is visible:
1. one midline of the price from session start to session end
2. one midline of the session time from high to low
the color of the lines is determined by the color of the session

user selected option for triangulation

3 a line drawn from session open to session high
4. a line drawn from session open to session low
5. a line drawn from session high to session low

all lines are the same color and the user selects the color

user selected option for session trend
6 a diagonal line from session start to session end

i do appreciate your time and effort

Re: Trading Session Hours Highlight

PostPosted: Tue Jun 22, 2010 11:35 pm
by patick
Just a small correction... I noticed in the Properties tab:


Line 14 should read: indicator.parameters:addColor("LO_C", "London session color", "", core.rgb(0, 255, 0));

(was: ...."New York session....",)

Re: Trading Session Hours Highlight

PostPosted: Wed Jun 23, 2010 9:50 am
by LordTwig
b) You can choose which data will be shown:
- name
- high
- low
- open->to->high distance in pips
- open->to->low distance in pips
- high-to-low distance in pips


Can you please show these stacked under each other as Labels so as to less interfere with the other sessions data-labels. ie Just how you placed high under the session name stack the rest (except for Low keep that at the bottom of session. I had a go at it but can't seem to work it out. :(

I also abbreviated session names so they wouldn't run into each other as well NY, SYD,TYO,LON.

How can I make the session high/low line thinner (looked but cannot find it) as this will help as well?

I turned the transparency up to 96% and it is way better to view now also.
LordTwig

Re: Trading Session Hours Highlight

PostPosted: Wed Jun 23, 2010 7:17 pm
by Nikolay.Gekht
Another beta:

1) Problem with the london parameter name fixed
2) The short names of the session are shown
3) The parameters are split into three groups: sessions, data and style
4) Data is stacked
5) Default transparency is increased to the 95%

The next planned step (Friday or Monday, tomorrow I'm discussing the next Marketscope release, so, will be out of the office):
1) triangulation and diagonal lines.

I'm also ready to create grid lines, but cannot image how should it look. Could you please give me a sample.

Another beta:
TRADESESSIONS.lua
(15.91 KiB) Downloaded 2551 times

Re: Trading Session Hours Highlight

PostPosted: Wed Jun 23, 2010 8:54 pm
by a135711
Nikolay

an example of the proposed reference grid
the horizontal line is = (High+low)/2
the vertical line is midpoint of the session

thank you


Image

Re: Trading Session Hours Highlight

PostPosted: Fri Jun 25, 2010 3:12 pm
by Nikolay.Gekht
Hm... since a vertical line is always drawn at left side of the bar (at least in the current version) the grid, especially while the session has odd number of candles looks extremely ugly. So I removed it.

The triangulation and open to close line is added. How do you think, should user be able to choose the sessions to show lines at? For example to show them at NY session only.

Beta with triangulation and open-to-close lines:
TRADESESSIONS.lua
(17.4 KiB) Downloaded 2474 times

Re: Trading Session Hours Highlight

PostPosted: Sat Jun 26, 2010 2:29 am
by a135711
Nikolay,

we need to revise the triangulation variables to the following:

A = session open at candle open to session high at session high candle
B = session open at candle open to session low at session low candle
C= session low at candle low candle to session high at candle high

an example should look like:

Image

a mid line drawn from session start to session end that has the value of (session.high +session.low)/2
this should have the same color as the session color
thank you

Re: Trading Session Hours Highlight

PostPosted: Sat Jun 26, 2010 9:21 am
by Nikolay.Gekht
Midline is not a problem, the triangles as you described will require a bit modification of the code, but are possible as well. Will do it in the next beta.