MODIFICA DA SCREENER PER BUILDER

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #103100 quote
    andrea trevisan
    Participant
    Average

    Ho creato uno screener (poco ortodosso) ma efficace, per trovare i “cluster”, ovvero congestioni molto strette ha livello orario, molto utili per strategie nel Forex.

    Dovrei trasformarlo per un indicatore probuilder.

    Codice proscreener:

    timeframe (1hour)
    variabile = 1.7
    filtro = AverageTrueRange[20](close)
    c1 = abs (open[9] – close) < 0.5 * (highest[10](high) – lowest[10](low))
    c2 = abs (highest[10](high) – lowest[10](low) <= (filtro*variabile))
    screener[c1 and c2]

    Per avere in builder il risultato sia della variabile “c1” che “c2” ho pensato sommare in un unica variabile “c1” e “c2” e richiamare la nuova variabile con “return”.

    variabile = 1.7
    filtro = AverageTrueRange[20](close)
    c1 = abs (open[9] - close) < 0.5 * (highest[10](high) - lowest[10](low))
    c2 = abs (highest[10](high) - lowest[10](low) <= (filtro*variabile))
    c3 = c1 and c2
    return c3

    Spero sia corretto,aspetto suggerimenti..

    Grazie e buona giornata

    #103101 quote
    robertogozzi
    Moderator
    Master

    Per chiarezza dei messaggi sul Forum di Prorealcode, separare le parti del vostro codice usando il pulsante insert PRT code per l’inserimento del codice.
    Grazie.

    #103103 quote
    robertogozzi
    Moderator
    Master

    Si, è corretto.

    Con RETURN puoi anche usare la stessa forma usata per lo screener:

    return c1 AND c2

    come puoi usare una vriabile c3 anche con lo screener.

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

MODIFICA DA SCREENER PER BUILDER


ProBuilder: Indicatori & Strumenti Personalizzati

New Reply
Author
Summary

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

Topic Details
Forum: ProBuilder: Indicatori & Strumenti Personalizzati
Language: Italian
Started: 07/22/2019
Status: Active
Attachments: No files
Logo Logo
Loading...