some help about parabolic-sar

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #160177 quote
    gnellas77gnellas77
    Participant
    Average

    some help please,
    i m trying to proscreen stocks with the following formula with simplified creation to
    show me the stocks that turned from red to green dot on candlesticks:

    close(1)<SAR[0.02,0.02,0.2](1)(Daily)
    close>SAR[0.02,0.02,0.2](Daily)

    and the proscreen does not give me the correct list of stocks.
    what am i doing wrong?
    thank you.

    repropel thanked this post
    #160194 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Always use the ‘Insert PRT Code’ button when putting code in your posts to make it easier for others to read. Thank you 🙂

    There are several errors:

    • (1) after CLOSE and after SAR at line 1 need to be replaced by [1]
    • (Daily) at the end of both lines is incorrect and meaningless, why did you use it?

    of course the result of all the above conditions need to be assigned to a variable:

    c1 = close[1]<SAR[0.02,0.02,0.2][1]
    c2 = close>SAR[0.02,0.02,0.2]

    but if the previous candle CLOSE was below SAR and now it’s above, then there’s been a crossover, which can be written with just one line:

    c1 = close CROSSES OVER SAR[0.02,0.02,0.2]
    repropel thanked this post
    #160204 quote
    gnellas77gnellas77
    Participant
    Average

    thank you it worked

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

some help about parabolic-sar


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
gnellas77 @gnellas77 Participant
Summary

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

Topic Details
Forum: ProScreener: Market Scanners & Detection
Language: English
Started: 02/02/2021
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...