trovare trend ribassista

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

    Buongiorno a tutti.

    qualcuno avrebbe un codice semplice per individuare un trend ribassista (magari che io possa poi attaccarlo ad un mio codice ad es. su un pattern di inversione)  Grazie

    #203003 quote
    robertogozzi
    Moderator
    Master

    Questo indicatore stampa una freccia, Verde o Rossa, quando rileva un trend rialzista o ribassista.

    Per rilevarlo osserva le candele degli ultimi PERIODI e quelle dei PERIODI precedenti. Il trend è considerato rialzista quanto vi sono sia MASSIMI che MINIMI crescenti, mentre è ribassista nel caso opposto (entrambi decrescenti):

    ONCE Periodi = 30
    Distanza     = average[Periodi,0](range)
    U1 = highest[Periodi](high)
    U2 = highest[Periodi](high[Periodi])
    L1 = lowest[Periodi](low)
    L2 = lowest[Periodi](low[Periodi])
    U  = (U1 > U2) AND (L1 > L2)
    L  = (U1 < U2) AND (L1 < L2)
    IF (U <> U[1]) OR (L <> L[1]) THEN
       IF U THEN
          DrawArrowUP(BarIndex,high + Distanza)  coloured(0,128,0,155)  //Verde
       ELSIF L THEN
          DrawArrowDOWN(BarIndex,low - Distanza) coloured(255,0,0,255)  //Rossa
       ENDIF
    ENDIF
    RETURN

    e questo è il relativo screener:

    ONCE Periodi = 30
    U1 = highest[Periodi](high)
    U2 = highest[Periodi](high[Periodi])
    L1 = lowest[Periodi](low)
    L2 = lowest[Periodi](low[Periodi])
    U  = (U1 > U2) AND (L1 > L2)
    L  = (U1 < U2) AND (L1 < L2)
    x  = 0
    IF (U <> U[1]) OR (L <> L[1]) THEN
       IF U THEN
          x = 1
       ELSIF L THEN
          x = 2
       ENDIF
    ENDIF
    SCREENER[x](x AS "1=↑,2=↓")
    #203130 quote
    SERGIOm43
    Participant
    New

    Grazie 1000 per il codice utilissimo. Ma dove posso studiare qualcosa di programmazione di prorealtime oltre alla piccola guida gia scaricata dal sito proreal?

    #203139 quote
    robertogozzi
    Moderator
    Master

    Qui puoi trovare la documentazione ufficiale online https://www.prorealcode.com/prorealtime-documentation/.

    Puoi cercare anche sul MarketPlace parole come “Training” o “Coding Training” o simili https://market.prorealcode.com/?prcmaf=9f7907cc&from=home.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.

trovare trend ribassista


ProScreener: Scansione Mercati & Screener

New Reply
Author
author-avatar
SERGIOm43 @sergiom43 Participant
Summary

This topic contains 3 replies,
has 2 voices, and was last updated by robertogozzi
3 years, 4 months ago.

Topic Details
Forum: ProScreener: Scansione Mercati & Screener
Language: Italian
Started: 10/22/2022
Status: Active
Attachments: No files
Logo Logo
Loading...