Convertire prc perfect trend line indicator in Screener

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #142005 quote
    cashbtctradecashbtctrade
    Participant
    New

    Hi, can you help  me

    I want convert this indicator

    to proscreener

    thanks

    Salve, potete aiutarmi

    Voglio convertire questo indicatore

    a proscreener

    grazie

     

    //PRC_PerfectTrendLine ptl | indicator
    
    //16.10.2017
    
    //Nicolas @ http://www.prorealcode.com http://www.prorealcode.com
    
    //Sharing ProRealTime knowledge
    
    //converted from MT4 version (original author mladen)
    
    //enhanced version by Nicolas
    
    // — settings
    
    //SlowLength         = 7 // Slow length
    
    //SlowPipDisplace    = 0 // Slow pip displace
    
    //FastLength         = 3 // Fast length
    
    //FastPipDisplace    = 0 // Fast pip displace
    
    // — end of settings
    
    thigh1 = Highest[SlowLength](high)+ SlowPipDisplace*pointsize
    
    tlow1  = Lowest[SlowLength](low)- SlowPipDisplace*pointsize
    
    thigh2 = Highest[FastLength](high)+ FastPipDisplace*pointsize
    
    tlow2  = Lowest[FastLength](low)- FastPipDisplace*pointsize
    
    if barindex>2 then
    
    if Close>line1[1] then
    
    line1 = tlow1
    
    else
    
    line1 = thigh1
    
    endif
    
    if Close>line2[1] then
    
    line2 = tlow2
    
    else
    
    line2 = thigh2
    
    endif
    
    endif
    
    if (Close[0]<line1[0] and Close[0]<line2[0]) then
    
    trend =  1
    
    endif
    
    if (Close[0]>line1[0] and Close[0]>line2[0]) then
    
    trend = -1
    
    endif
    
    if (line1[0]>line2[0] or trend[0] =  1) then
    
    trena =  1
    
    endif
    
    if (line1[0]<line2[0] or trend[0] = -1) then
    
    trena = -1
    
    endif
    
    if trena<>trena[1] then
    
    if trena=1 then
    
    x = max(line1,line2)
    
    r=200
    
    g=20
    
    b=60
    
    else
    
    x = min(line1,line2)
    
    r=30
    
    g=144
    
    b=255
    
    endif
    
    drawtext(“●”,barindex,x,Dialog,Bold,10) coloured(r,g,b)
    
    endif
    
    drawbarchart(line1,line2,line1,line2) coloured(r,g,b,50)
    
    return line1 coloured(r,g,b,100) style(line,1),line2 coloured(r,g,b,100) style(line,1)
    #142020 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Qui sotto sono ben evidenziate in giallo delle regole basilari da osservare, regole di cui ti è stata richiesta la conferma di lettura.

    Ne hai infrante ben 3:

    • usa sempre il pulsante “Insert PRT code” quando inserisci il codice nei tuoi post per facilitare la lettura degli altri
    • Non duplicare it tuoi post. Poni la tua domanda solo una volta e solo in un forum. Tutti i doppi post verranno comunque eliminati, quindi pubblicare più volte la stessa domanda ti farà perdere tempo e non ti farà avere una risposta più velocemente. Il doppio post crea solo confusione nei forum
    • Pubblica solo nella lingua del forum in cui stai postando. Ad esempio solo l’inglese nei forum di lingua inglese e il francese solo nei forum di lingua francese

    Non è che si paga una sanzione per questo, però sarebbe bene che chi sta in una comunità ne osservasse le regole. Grazie 🙂

    #142021 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Uno screener restituisce dei titoli/valute che corrispondono a condizioni desiderate, tu vuoi che ti vengano selezionati i titoli/valute che soddisfano quale condizione?

    #142030 quote
    NicolasNicolas
    Keymaster
    Legend

    esiste già uno screener per questo indicatore, lo puoi trovare qui: https://www.prorealcode.com/topic/ayuda-screener-indicador-perfect-trend-line/

    robertogozzi thanked this post
    #142049 quote
    cashbtctradecashbtctrade
    Participant
    New

    Ciao Nicolas , ho visto lo screener che mi hai consigliato , vorrei uno screener che mi indichi l’inizio del trend al rialzo e l’inizio di un trend al ribasso in base all’indicatore prc perfectrendline.Valore trena 1 e torna -1.

    Grazie

    #142073 quote
    cashbtctradecashbtctrade
    Participant
    New

    Le condizioni per lo screener sono quando l’indicatore prc perfect trendline disegna un drawtext rosso per un segnale al ribasso è un drawtext blu per un segnale al rialzo .

    Non so codificare  queste condizioni con screener .

    Grazie

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

Convertire prc perfect trend line indicator in Screener


ProScreener: Scansione Mercati & Screener

New Reply
Author
Summary

This topic contains 5 replies,
has 3 voices, and was last updated by cashbtctradecashbtctrade
6 years, 1 month ago.

Topic Details
Forum: ProScreener: Scansione Mercati & Screener
Language: Italian
Started: 08/19/2020
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...