chiusura candele

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #167961 quote
    lowbatlowbat
    Participant
    Senior

    buongiorno a tutti,

    si riuscirebbe a creare uno screener che indichi quando la chiusura di una candela avviene nel quarto superiore della sua estensione di giornata ( prezzo sopra media mobile semplice 50 periodi) in caso di buy, o in caso di short la chiusura avviene nel quarto inferiore se il prezzo è sotto la sua media mobile semplice a 50 periodi?

    allego screenshot per maggiore chiarezza

     

    grazie

    1-4.png 1-4.png 2-1.png 2-1.png 3.png 3.png
    #167965 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Eccolo:

    Media = average[50,0](close)
    Sopra = close > Media
    Sotto = close < Media
    Alto  = (close >= (high - (range * 0.25)))
    Basso = (close <= (low +  (range * 0.25)))
    Cond  = 0
    If Sopra and Alto then
       Cond = 1
    Elsif Sotto and Basso then
       Cond = 2
    Endif
    Screener[Cond]("1=↑, 2=↓")
    #167966 quote
    lowbatlowbat
    Participant
    Senior

    scusa Roberto ma, da errore di sintassi alla riga 13

    #167967 quote
    lowbatlowbat
    Participant
    Senior

    scusa riga 12

    #167971 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Scusa, una mia dimenticanza, eccola corretta:

    Screener[Cond](Cond AS "1=↑, 2=↓")
    #167984 quote
    lowbatlowbat
    Participant
    Senior

    grazie Roberto

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

chiusura candele


ProScreener: Scansione Mercati & Screener

New Reply
Author
author-avatar
lowbat @lowbat Participant
Summary

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

Topic Details
Forum: ProScreener: Scansione Mercati & Screener
Language: Italian
Started: 04/25/2021
Status: Active
Attachments: 3 files
ProRealCode ProRealCode
Loading...