Simple ADTR indicator - page 2

 

max range mtf indicator in mtf thread

https://www.mql5.com/en/forum/173574/page112

Files:
max_range.gif  12 kb
 

Pip Power Indicator

thanks for the assist fxbs,

but still not im looking for...

Went to Russian Metatrader site, place is like a gold mine.

Hopefully, one of the great programmers here can help code this indicator.

 

Blur...don't forget Uncle Electric

ES

BLUR71:
thanks for the assist fxbs,

but still not im looking for...

Went to Russian Metatrader site, place is like a gold mine.

Hopefully, one of the great programmers here can help code this indicator.

 
BLUR71:
Hi fxbs,

those indi are nice, but not exactly what I was hoping for..

Do you think its possible to measure the movement of the pips as stated above? In a numeric display like average daily range?

For example:

1st candle moved market price down 7 pips,

next candle down 12 pips,

next candle down 5 pips,

next candle up 20 pips

that would make total (Pip Power) movement be 44 pips over four candles.

So you would add all movement together, negative or positive , in a total movement index.

I hope that explanation is clear

Thanks for the indicator Maxvre.

Blurr and ES, I can program this indicator when I ll get home in few hours.

Now to make sure I ll do it right, my understanding of what you would like is:

- Pip Power for the day

- Pip Range for the day

- Pip Power for X day

- Pip Range for X day

X will be an external variable.

I have 2 questions:

Q1) For the calculation of the Pip Range, should I use the Max - Min Price of that day ? (As usual)

Q2) For the calculation of the Pip Power, should I use the Value at Close of a Bar?

Ex: Close previous Bar is 1.5000

Close of actual Bar is 1.5010

so PipPower= (1.5010 - 1.5000)/Point = +10

If not and you would like to use Min and Max value it will make it a bit difficult to calculate.

Sunwest,

 

Pip Power/Pip Range Indicator

Hey ES, just got back to the thread, haven't forgotten you. remember the "great minds thingy"

sunwest:
Thanks for the indicator Maxvre.

Blurr and ES, I can program this indicator when I ll get home in few hours.

Now to make sure I ll do it right, my understanding of what you would like is:

- Pip Power for the day

- Pip Range for the day

- Pip Power for X day

- Pip Range for X day

X will be an external variable.

I have 2 questions:

Q1) For the calculation of the Pip Range, should I use the Max - Min Price of that day ? (As usual)

Q2) For the calculation of the Pip Power, should I use the Value at Close of a Bar?

Ex: Close previous Bar is 1.5000

Close of actual Bar is 1.5010

so PipPower= (1.5010 - 1.5000)/Point = +10

If not and you would like to use Min and Max value it will make it a bit difficult to calculate.

Sunwest,

Thanks for your help, Sunwest.

I'll try to answer your questions.

Q1) For the calculation of the Pip Range, should I use the Max - Min Price of that day ? (As usual)

For Pip Range, I think you should calculate from highest/lowest of

candle wick of "x" days first candle to the highest/lowest of candle

wick of the last candle of same day. hope thats not confusing.

Q2) For the calculation of the Pip Power, should I use the Value at Close of a Bar?

Ex: Close previous Bar is 1.5000

Close of actual Bar is 1.5010

so PipPower= (1.5010 - 1.5000)/Point = +10

For Pip Power, I think you should measure from highest point to the

lowest point of "x" days first candle and calculate each sucessive

candle the same way all the way to the last candle of "x" day.

Continuosly adding to the total in positive number.

Could I also suggest you have a

1) previous day counter, this would gauge yesterday volatility.

2) 5/10 day avg of above

3) current day counter, this would gauge volatility currently, adding up as the day goes by.

4) GMT Shift, for us eastern coasters, to start day from what hour.

hope this wasn't confusing

 

Thanks to Maxvre for providing original Indicator that I just modified slightly

Blur71, I have tried to comply to the rule as below, :

1) Daily ATR

2) Yesterday ATR

3) X day ATR and X day Pip Power

I also added a Trend ratio % that is calculated as below:

(PipShift/PP_XTotal)*(ATR_XTotal/PP_XTotal)

PipShift is the difference of Price at close bar X day ago with Close today

PP_XTotal is the X day Pip Power average

ATR_XTotal is the X day ATR average

I could not do the GMT Shift option yet.

Also to calculate the PiPPower I had to follow your instruction from here and take the movement shift of a candle 5 minutes timeframe for more accuracy adding it positively to the total as you explaine here:

"For example:

1st candle moved market price down 7 pips,

next candle down 12 pips,

next candle down 5 pips,

next candle up 20 pips

that would make total (Pip Power) movement be 44 pips over four candles.

So you would add all movement together, negative or positive , in a total movement index."

Let me know what you think.

Sunwest

Files:
adtr-v2.mq4  6 kb
 

wow...slice out the dead time and give a more real picture of volatility...hmmmm...

So this chunk of code could be spliced into other indicators and TRO could have a party!

ES

 

Hi, Sunwest!

thank you 4 work you did

what do you think - would it be justified to have results by sessions (or times of the day - or be able to exclude certain time periods(for example - after US close till Asia starts) - how to achieve this;

how wold you do this - if not with ATR it can be useful with other inds.

thanks again 4 indi

p.s. don't know how to do it

what if we had diagram with dayly average (by sessions) from zero GMT to zero and second line - ATR of current day - kinda like this

Files:
amplitude_2.gif  13 kb
 

Hi Sunwest

Thanks, for the great looking indicator, I'll check it out over the next couple of days and give you some feedback.

I must say thanks to all that contributed to this project.

 
ElectricSavant:
wow...slice out the dead time and give a more real picture of volatility...hmmmm... ES

slice... like this :

https://www.mql5.com/en/forum/173304/page3

Files:
Reason: