Announcement

Collapse
No announcement yet.

is this a valid statement?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • is this a valid statement?

    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?

  • #2
    never mind, i figured it out, logic error on my part..

    Comment

    Working...
    X