Converting Reversal point indicator to Screener

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #136877 quote
    BITE1437BITE1437
    Participant
    Average

    I found this reversal point indicator is extremely useful. May I seek your help on converting it to screener?

    Much appreciate.

    Reversal point indicator

    #136918 quote
    NicolasNicolas
    Keymaster
    Legend

    Not tested but should be correct with:

    //PRC_Reversal point indicator | indicator
    //09.04.2017
    //Nicolas @ www.prorealcode.com
    //Sharing ProRealTime knowledge
    //https://www.prorealcode.com/topic/need-help-coding-the-following-reversal-indicator/
    
    // LONG
    //Red/Green candle (reversal)
    //Bullish candle close above the open of the previous red candle
    //Space to the left (the low of the last 3 candles lower than the low of the last 50 candles)
    //default stochastic (8,3,3) was in the oversold area within the last 3 candles
    
    sto = stochastic[8,3]
    
    c1 = close[1]<open[1] and close>open
    c2 = close>open[1]
    c3 = lowest[3](low)<lowest[50](low)[1] or lowest[3](low)<lowest[50](low)[2] or lowest[3](low)<lowest[50](low)[3]
    c4 = summation[3](sto<20)>0
    long = c1 and c2 and c3 and c4
    
    
    
    // SHORT
    //Green/Red candle (reversal)
    //Bearish candle close below the close of the previous green candle
    //Space to the left (the high of the last 3 candles higher than the high of the last 50 candles)
    //default stochastic (8,3,3) was in the overbought area within the last 3 candles.
    
    c5 = close[1]>open[1] and close<open
    c6 = close<open[1]
    c7 = highest[3](high)>highest[50](high)[1] or highest[3](high)>highest[50](high)[2] or highest[3](high)>highest[50](high)[3]
    c8 = summation[3](sto>80)>0
    short = c5 and c6 and c7 and c8
    
    
    screener[long or short]

    The signals are plotted in the past, so the alerts will also come later after the reversal point, FYI.

Viewing 2 posts - 1 through 2 (of 2 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

Converting Reversal point indicator to Screener


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
BITE1437 @bite1437 Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by NicolasNicolas
6 years, 3 months ago.

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