Someone wanted to compare 2 indicators before. The first of them have values between 0 and 100. The second has values between -1 and +1. And I found a way to compare those two indicators - the idea is to modify the values of one of them to match the values of the other.
What you have is this (first indicator vs second indicator):
0 => -1
50 => 0
100 => 1
You want to modify the values on the left to look like the values on the right. So 0 will be turned to -1, 50 will be turned to 0, 100 will be turned to 1 and every value in between will be turned to something between -1 and 1.
Let's say the first indicator has value X, then this is the formula:
(X-50)/50
If X is 0, the result of this will be (0-50)/50, which is -1
If X is 5, the result will be (5-50)/50, which is -0.9
If X is 10, the result will be (10-50)/50, which is -0.8
If X is 25, the result will be (25-50)/50, which is -0.5
If X is 50, the result will be (50-50)/50, which is 0
If X is 75, the result will be (25-50)/50, which is 0.5
If X is 100, the result will be (100-50)/50, which is 1
What is 50 in this formula? The middle of values of the first indicator, whose values must be modified.
And I used this simple formula in Adjust
-
- / 50
In this case X will be the indicator as it is selected in Condition. In other words - 50) / 50 will be appended to something that is like (X, but not exactly.
- / 50
Here is something to play with:
https://fxdreema.com/shared/PEkKiXpde
I haven't seen the indicator, but in general you probably need only one crossover and multiple < or >