Announcement

Collapse
No announcement yet.

Prev High / Low

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

  • Prev High / Low

    How would i get a formula to compare the close of this bar to the Prev Days high or low.

    I am trying to write something like

    if(close() > Prev High.efs)
    if(!Strategy.isLong()) {

    However i can't get the formula to recognize the Prev High.efs

  • #2
    Try this...

    if(close() > high(-1)) {
    if(!Strategy.isLong()) {
    doLong....
    }
    }

    if(close() < low(-1)) {
    if(!Strategy.isShort()) {
    doShort....
    }
    }

    Brad
    Brad Matheny
    eSignal Solution Provider since 2000

    Comment

    Working...
    X