Results 1 to 5 of 5

Thread: [RESOLVED] Metastock

  1. #1

    Thread Starter
    PowerPoster lintz's Avatar
    Join Date
    Mar 2003
    Location
    The 19th Hole
    Posts
    2,697

    Resolved [RESOLVED] Metastock

    Are there any Metastock users in here?

    I've got a formula in Metastock that I want to use in Excel but Metastock uses a function called PREV which I can't replicate in Excel so looking for some help.

    Thanks.

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Metastock

    Moved to Gen PC.

  3. #3
    coder. Lord Orwell's Avatar
    Join Date
    Feb 2001
    Location
    Elberfeld, IN
    Posts
    7,628

    Re: Metastock

    as far as i can tell by the function description, it keeps the current cell value if a certain condition is met.
    You could probably simply refer to a 2nd hidden cell that is assigned the same value of that cell.
    let's say cell a1 has your formula
    b1 = a1
    the formula in a1 is something along these lines:
    iif (c2 > 5, b1 - 1, b1 + 1)
    note that my excel is really rusty but that's pretty close to accurate
    the formula will be ran in a1 first, and it will reference the value in b1 (your PREV equivalent). Then after a1 updates, b1 will update to the new value of a1. Therefore next time you run a1, b1 is ready to be used as your new PREV again.

    I hope that makes sense.
    My light show youtube page (it's made the news) www.youtube.com/@lightsofelberfeld
    Contact me on the socials www.facebook.com/lordorwell

  4. #4

    Thread Starter
    PowerPoster lintz's Avatar
    Join Date
    Mar 2003
    Location
    The 19th Hole
    Posts
    2,697

    Resolved Re: Metastock

    Thanks Lord, I managed to work it out.

  5. #5
    coder. Lord Orwell's Avatar
    Join Date
    Feb 2001
    Location
    Elberfeld, IN
    Posts
    7,628

    Re: [RESOLVED] Metastock

    you're welcome (hint)
    My light show youtube page (it's made the news) www.youtube.com/@lightsofelberfeld
    Contact me on the socials www.facebook.com/lordorwell

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width