Last value or Valuewhen

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #75409 quote
    Real Pro
    Participant
    Average

    Hello!

    How do I reference the value of psar the last time it was crossed please?

    Current cross would be like this.

    mysar = SAR[0.2,0.02,0.2]
    if close crosses under mysar then
    psar = mysar
    endif

    I’d like the value of psar the last time it was crossed.  Many thanks.

    #75410 quote
    Real Pro
    Participant
    Average

    sorry, figured it out.

    #75411 quote
    Nicolas
    Keymaster
    Master

    There are no instructions like in Amibroker don’t exist in the ProBuilder language. You can save the value and barindex when the event occurs in real time or make a loop in the past to find when it has occurred from the current bar. That’s how I proceed when converting programs from Amibroker.

    Real Pro thanked this post
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

Last value or Valuewhen


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
Real Pro @real-pro Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by Nicolas
7 years, 7 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 07/06/2018
Status: Active
Attachments: No files
Logo Logo
Loading...