Try creating 2 signals (2 TI icons) with the same calculation (it may not work if you use advanced options live avg) Use MathMax in one TI and MathMin in the second TI. Lets say your calculation is A+B. Re write it as MathMax(A+B,0) and MathMin(A+B,0). MathMax and MathMin act as filters to show values >0 and <0 respectively.
Here MT4 documentation about it:
double MathMax( double value1, double value2) Returns the maximum value of two numeric values. Parameters: value1 - The first numeric value. value2 - The second numeric value.
Sample: double result=MathMax(1.08,Bid);
double MathMin( double value1, double value2) Returns the minimum value of two numeric values. Parameters: value1 - The first numeric value. value2 - The second numeric value.
Sample: double result=MathMin(1.08,Ask);
If you need the signals to be used with the strategy builder you don't need to use 2 TI and MathMax/MathMin, just comparing the indicator to zero (>0 or <0). You need 2 TI if you want to see the 2 signals. There may be a work around, create on
|