looping problem

Viewing 4 posts - 1 through 4 (of 4 total)
  • #90571

    I am a newbie, and can’t get the attached code to work.

    It just yield zero line.

    It is my attempt to translate code from amibroker.

    Please help.

     

    #90584

    I didn’t check the calculations, yet.

    Still I can see you are using very time consuming loops.

    BARINDEX will soon exceed a value of several thousands units… slowing (if not freezing at all) your system quite much. I can’t figure out why you weren’t reported an error message by the system!

    #90606

    The result is always ZERO because the initial value of XTDF is 0 and you ALWAYS end up there because your loop backwards will always end up catching the value tied to variable i which will always go back i times to when the code started.

    1 user thanked author for this post.
    #90807

    Thank you for your help

Viewing 4 posts - 1 through 4 (of 4 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login