MODIFICA DA SCREENER PER BUILDER

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #103100 quote
    andrea trevisanandrea 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
    robertogozzirobertogozzi
    Moderator
    Legend

    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
    robertogozzirobertogozzi
    Moderator
    Legend

    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.
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

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 robertogozzirobertogozzi
7 years, 2 months ago.

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