is this a valid statement?
return sma(2,open()) - sma(2,close(-2))
i mean, it is returning values, but about 50 bars before the most recent bar, it starts returning the close value of each bar, not the calculation its supposed to.. leading me to believe that something is wrong.. my only guess is that it is incorrect to say sma(2,close(-2)), and you are supposed to use sma(2,close(),-2) instead.. but i dont know, could someone please help me out here?
return sma(2,open()) - sma(2,close(-2))
i mean, it is returning values, but about 50 bars before the most recent bar, it starts returning the close value of each bar, not the calculation its supposed to.. leading me to believe that something is wrong.. my only guess is that it is incorrect to say sma(2,close(-2)), and you are supposed to use sma(2,close(),-2) instead.. but i dont know, could someone please help me out here?
Comment