need help - two different indicators crossing alert

 

hi

i want to ask for help - i want to write alert for two indicators crossing, look at pictue:


the problem for me is that this two indicators has different scale values. Red line indi has 1.36 value and blue line has 25.23 value. So indi that looks with higher value in fact has lower value. Does anyone has an idea how to resolve that?

I tried to search through forum but didnt find anything tha could help.

thanks

oromek

 
romek wrote >>

hi

i want to ask for help - i want to write alert for two indicators crossing, look at pictue:

the problem for me is that this two indicators has different scale values. Red line indi has 1.36 value and blue line has 25.23 value. So indi that looks with higher value in fact has lower value. Does anyone has an idea how to resolve that?

I tried to search through forum but didnt find anything tha could help.

thanks

oromek

The RSH is fine - it will range from 0 to 100. The MA needs to be normalised to the same range - if the price moves to 2.0000 then the MA will too. A crude form of normalisation is to simply divide by a smooth MA such as the (believe it or not) "Smoothed MA" that comes with MT4, eg (YourMA/SSMA(x)-0.5)*y. You will need to play around with x and y to get a reasonable looking chart.

Paul

http://paulsfxrandomwalk.blogspot.com/

 
phampton:

The RSH is fine - it will range from 0 to 100. The MA needs to be normalised to the same range - if the price moves to 2.0000 then the MA will too. A crude form of normalisation is to simply divide by a smooth MA such as the (believe it or not) "Smoothed MA" that comes with MT4, eg (YourMA/SSMA(x)-0.5)*y. You will need to play around with x and y to get a reasonable looking chart.

Paul

http://paulsfxrandomwalk.blogspot.com/

thanks a lot man

i now where to follow now.

regards

oromek

Reason: