Crossing two oscillators
-
Hi there ! I am currently struggling with the way to achieve a strategy. What I want to do is basically get two oscillators on the same window in order to use the cross above / below function. How can i do that?
The other problem I have is that the first oscillator gets a value in the range 0 to 100 and the other one gets a value between -100 to 0.
The formula to get the second one in a 0 to 100 range is :
New value = (x-(-100))/(0-(-100))*100 where x is the "old value" betweek -100 and 0.Does someone has a clue? Thanks a lot guys
-
What are your 2 oscillators? Normally this would require a special indicator, or a coder. But it might be possible to turn the value 0 to100 into 0 to -100, show what you use and I'll have a look.
-
Hey thank you ! Do you see my .mql4 file I attached to the post?
Indicqtors are Money Flow Index (0 to 100) and Williams Percent Range (-100 to 0) -
You can't, even if you convert, the values are different:

-
I found out how you can do it: https://fxdreema.com/shared/LkhGA5Icd
-
@jstap Thank you ! In your first answer you managed to put the two indicators in the same window, how did you make this happen? On the shared project, your first condition is "if candle_close", I get a "undeclared identifier" error but not sure how to solve this?
Thanks again for your help !
-
If I click the above shared project, then EX4 it downloads? It only looks like I have put them together, I just dragged one on top of the other, the values in top left are what it's working from. I just turned the + number, into a - number, then divided by 2, (which is x2 before changing to -).
-
@jstap Great thanks a lot for your help
-
Hello Guys, i would like to work with wpr.Sell signal is: wpr is cross below -20 (that part is ok) but before that needs to above -15 ( means before cross below needs to be in extreme range.Is there anyone who can help me?Many Thanks!
-
2 condition blocks, first buffer > -15, second for your cross