Last value or Valuewhen

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #75409 quote
    Real ProReal 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 ProReal Pro
    Participant
    Average

    sorry, figured it out.

    #75411 quote
    NicolasNicolas
    Keymaster
    Legend

    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.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

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 NicolasNicolas
8 years, 2 months ago.

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