Announcement

Collapse
No announcement yet.

intra day tick

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

  • intra day tick

    Please forgive my ingnorance. I am having great trouble working my way through both the coding I need to do and finding help to answer my questions - which are all very elementary at this time.

    How do I find the value of the current tick in the current bar ? I understand how to use close(), open(), low() etc to find values in previous bars, but I am clueless and very confused about how to find the value of the current tick in the current active bar. Does $TICK mean anything ? I have seen that in a handful of examples.

    What I am trying to do is determine if the current tick value is above, below or equal to the previous tick value. Maybe I am making this waaaaayyy to hard.

    Please advise. ALL HELP WILL BE GREATLY appreciated...
    Jennifer

  • #2
    Re: Reply to post 'intra day tick'

    Jennifer

    Sounds like you have a few of the basics down, so see if this helps

    close(0) is the same as last

    you might want to consider saving the value of close(0)

    closePrior=close(0)

    and then on the next pass of the efs compare close(0) to closePrior
    var closePrior=0;

    function main(){
    if(close()<closePrior)debugPrintln("downTick")
    if(close()>closePrior)debugPrintln("upTick")
    closePrior=close()
    return;
    }

    >

    Comment

    Working...
    X