Screener = Close lowest 10% of bar

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #153254 quote
    Mangeg69Mangeg69
    Participant
    New

    Hi, I need some help in creating a screener with the following criterias:

    Criteria1: Close in the lowest 10% of todays range (high-low)

    Criteria2: RSI < 10

    Then I would like to Back Test this strategi with:

    BUY: when Criteria 1 and Criteria2

    Criteria3: RSI >70

    SELL when Criteria3

    How do I do?

    Many thanks in advance!

    Magnus

    #153260 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    There you go:

    // Screener
    //
    c1 = close <= (Dlow(0) + ((Dhigh(0) - Dlow(0) * 0.1))  //close <= 10% of today's range
    c2 = rsi[14](close) < 10
    SCREENER[c1 AND c3]
    // Strategy
    //
    c1 = close <= (Dlow(0) + ((Dhigh(0) - Dlow(0) * 0.1))  //close <= 10% of today's range
    c2 = rsi[14](close) < 10
    c3 = rsi[14](close) > 70
    IF c1 AND c2 AND Not OnMarket THEN
       BUY 1 Contract at Market
    ENDIF
    IF c3 AND LongOnMarket THEN
       SELL AT Market
    ENDIF
    #153266 quote
    Mangeg69Mangeg69
    Participant
    New

    Thank you so much 🙂

    This has spared me a lot of gray hair and frustration.

    Rgds, Magnus

    #153268 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Sorry, my fault, line 5 of the screener should read (c2, not c3):

    SCREENER[c1 AND c2]
Viewing 4 posts - 1 through 4 (of 4 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

Screener = Close lowest 10% of bar


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
Mangeg69 @mangeg69 Participant
Summary

This topic contains 3 replies,
has 2 voices, and was last updated by robertogozzirobertogozzi
5 years, 9 months ago.

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