Script to calculate Average Daily Range? - page 5

 

Interface for multi-currency statistics separate window

pj9100:
It shows blank screen. No error message and nothing appears on the screen.

Yes it is working with DLL. It's nice. The graphs remain for some time only and then disappear.

Now you have to work on the interface. I know it is not yet done.

If output of symbols can be changed then please reduce the symbol to 4 digit. Example: USD/JPY = US/JY , USD/CAD: US/CA.

If not you can also use label definition so that if the mouse is touched at the point then the label shows the symbol and comments.

Picture shows the interface. It will be better like this. Please try.

Three bar appear together in histogram for Month, Week, Quarter, Year in one window or three separate windows is also OK.

thank you.

PJ

Files:
 
pj9100:
Yes it is working with DLL. It's nice. The graphs remain for some time only and then disappear.

Now you have to work on the interface. I know it is not yet done.

If output of symbols can be changed then please reduce the symbol to 4 digit. Example: USD/JPY = US/JY , USD/CAD: US/CA.

If not you can also use label definition so that if the mouse is touched at the point then the label shows the symbol and comments.

Picture shows the interface. It will be better like this. Please try.

Three bar appear together in histogram for Month, Week, Quarter, Year in one window or three separate windows is also OK.

thank you.

PJ

Hhmhmh, I can try

Are you need all text data on right side of screen, or can i replace eg. D. H4. H1, .. data with data for Monath, W.., Q.., Y... or add new set of data?

ADR = Avarge daily range for selected period?

Files:
 

Improvements

okfar:
Hhmhmh, I can try

Are you need all text data on right side of screen, or can i replace eg. D. H4. H1, .. data with data for Monath, W.., Q.., Y... or add new set of data?

ADR = Avarge daily range for selected period?

Okfar,

I must say you don't give up easily. You have really done a very good job.

1. ADR: yes choice of selected period will be good.

2. I think better reduce the symbol to two letter and without slash: EU for EuroUsd, EN for EuroNzd.

But two currency pair have same letter so use three letters for those currency paids: Example ECH (for EUR/CHF) and ECA (for EUR/CAD).

3. The switch for text and text point should be inserted. The text for small text point not working properly.

4. Monthly and yearly: I use this for analysis. -Your format is good. So I will keep this under my analysis profile. So it is not necessary to have it open all the time on the chart. If you can make a separate indicator or switch for it it is OK. I don't need to keep it displayed all the time.

6. Please clarify:

you are using two color shades: I like the concept but I don't understand it because when I put cursor on the bars it shows 4 hours but shows different dates. So I am confused. looks like these two candle represent the 4 hour bars on the single currency chart in this example GBPUSD.

What is needed is daily candle in this format for all charts open to close and high to low for each currency. 4 hour bar fixed is OK. if can give switch for selecting other period like M30 (24 bars inside the daily candle today starting at 00:00) it will be good.

On the whole, so far so good.

thank you.

Files:
 

Thanks for you screenshot. (you have a very diferent picture than me)

For now, i just added option for change font size. (default: fontSize =10)

Maybe is problem for this different screen a screen resolution.

For now you can try with smaller fontsize.

You must see one dark rectangle per currency pair (high - low). If not try close old indicator window and placed indicator again (metatrader remember same data from indicators, and if indicator was changed, result is not OK) .

This is not (yet) what you want. This bars is all for daily changes.

i will try to make:

- replaced D,H4,H1 with Year, Monath, ... (or make selectable)

- try to change picture (histogram)

The Time i can not change. Time and Value2 show position object on chart and not information about object. Varibile Time is dependent of chart timeframe (it is wrong ). Value2 is OK.

Files:
 
okfar:
Thanks for you screenshot. (you have a very diferent picture than me)

For now, i just added option for change font size. (default: fontSize =10)

Maybe is problem for this different screen a screen resolution.

For now you can try with smaller fontsize.

You must see one dark rectangle per currency pair (high - low). If not try close old indicator window and placed indicator again (metatrader remember same data from indicators, and if indicator was changed, result is not OK) .

This is not (yet) what you want. This bars is all for daily changes.

i will try to make:

- replaced D,H4,H1 with Year, Monath, ... (or make selectable)

- try to change picture (histogram)

The Time i can not change. Time and Value2 show position object on chart and not information about object. Varibile Time is dependent of chart timeframe (it is wrong ). Value2 is OK.

Okfar,

1. So what you are telling is that I should ignore the time value as it is not for that currency pair object. Value2 is the movement of daily candle for each pair and has no relation with the Main Chart values.

2. Some of switches do not work properly. If one switch is changed it's ok.

It two to three switches are changed then some switches don't work.

Files:
 

Error message file

pj9100:
Okfar,

1. So what you are telling is that I should ignore the time value as it is not for that currency pair object. Value2 is the movement of daily candle for each pair and has no relation with the Main Chart values.

2. Some of switches do not work properly. If one switch is changed it's ok.

It two to three switches are changed then some switches don't work.

Okfar,

I just found an error file which I am attaching it now.

 
pj9100:
Okfar, I just found an error file which I am attaching it now.

Also No bars appearing. Pic attached.

My screen resolution is 1024 x 768.

 
pj9100:
Also No bars appearing. Pic attached. My screen resolution is 1024 x 768.

If you change the switch to daily stats true bars appear.

 
pj9100:
Okfar,

1. So what you are telling is that I should ignore the time value as it is not for that currency pair object. Value2 is the movement of daily candle for each pair and has no relation with the Main Chart values.

2. Some of switches do not work properly. If one switch is changed it's ok.

It two to three switches are changed then some switches don't work.

Sorry, i can not disable Time output (or i don't know how ).

I make a "long term" (W,M,3M, Y) version of this indicator (MP MTF pj9100).

The settings are similar except:

- revised switch impact (showMTStat)

- added version historam (histoType)

In this ind. is removed influence of "showDailyStat" to histogram bars.

You need dll from previous version!

Edit:

On screen you can see something like Mo(2009.7.31 23:59)

This mean, Open to close is calculated from candle with this close time (+1s).

For this part of calculaton (W, Mo, Q, Y) are used Daily candle.

 
okfar:
Sorry, i can not disable Time output (or i don't know how ).

I make a "long term" (W,M,3M, Y) version of this indicator (MP MTF pj9100).

The settings are similar except:

- revised switch impact (showMTStat)

- added version historam (histoType)

In this ind. is removed influence of "showDailyStat" to histogram bars.

You need dll from previous version!

Edit:

On screen you can see something like Mo(2009.7.31 23:59)

This mean, Open to close is calculated from candle with this close time (+1s).

For this part of calculaton (W, Mo, Q, Y) are used Daily candle.

Thank you. It has come out very well.

Reason: