there is a big problem... and i dont know what to do... ok i call my formulas and when the trend is upwards then the var is set to 1 and if its downwards then to -1 so now i have thre formulas...
and i dont know how to get a result out of them because i tested it with
the following way:
so with this way it counts the returned vars (defined throug calling...)
and i want to reach that every 2nd signal (down or upward) defines the trend.
but there is a big problem if one of the vars is -1 and the other 2 are 1 then in my mind it should go up but the bgcolor is set to withe because 0 + 1 + 1 -1 = 1
so it doesnt work.
please help
regards erilein
and i dont know how to get a result out of them because i tested it with
the following way:
PHP Code:
var u = 0;
var u = new Number(u+VAR1);
var u = new Number(u+VAR2);
var u = new Number(u+VAR3);
if (u >= 2)setBarBgColor(Color.lime);
if (u <= -2)setBarBgColor(Color.red);
and i want to reach that every 2nd signal (down or upward) defines the trend.
but there is a big problem if one of the vars is -1 and the other 2 are 1 then in my mind it should go up but the bgcolor is set to withe because 0 + 1 + 1 -1 = 1
so it doesnt work.
please help
regards erilein
Comment