Please help to make this mt4 indicator

 

Please help,

I need a indicator with 3 lines : High - Low - Center, with the following calculations.

High = Prev.day high - ( Prev.day high * 0.0024 )

Low = Pref.day low + ( Prev.day low * 0.0024 )

Center = ( High + Low )/2

I hope someone can help me , Thank's

Files:
 

Here U go!

I changed the mid formula, I thought that u wanted to have high, low and mid line, so for the mid line we need that kind of calculation:

Mid = H-((H-L)/2);

Can u post here how U plan to use this indicator?

Regards

Kale

Files:
hilo_kale.mq4  3 kb
 

after i see the line i have to change the value 0.0024 to 0.0008

so this is the calculation for my High Low Mid lines, for example :

Prev.High : 1.1995 and Prev.Low : 1.1946

HIGH : 1.1995 - ( 1.1995 * 0.0008 ) = 1.1985

LOW : 1.1946 + ( 1.1946 * 0.0008 ) = 1.1956

MID : ( 1.1985 + 1.1956 )/2 = 1.1971

i hope this might help, to develope my HIGH LOW MID lines.

Thank's Kalenzo

 
jacoba:
after i see the line i have to change the value 0.0024 to 0.0008

so this is the calculation for my High Low Mid lines, for example :

Prev.High : 1.1995 and Prev.Low : 1.1946

HIGH : 1.1995 - ( 1.1995 * 0.0008 ) = 1.1985

LOW : 1.1946 + ( 1.1946 * 0.0008 ) = 1.1956

MID : ( 1.1985 + 1.1956 )/2 = 1.1971

i hope this might help, to develope my HIGH LOW MID lines.

Thank's Kalenzo

Hi!

I added the ratio param. U can adjust it as u want

Regards

Kale

Files:
 

Thank's a lot Kalenzo,

The indicator works GREAT in my chart, the best param setting is 13.

best regards,

jacoba

Reason: