chiusura candele

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #167961 quote
    lowbat
    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
    robertogozzi
    Moderator
    Master

    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
    lowbat
    Participant
    Senior

    scusa Roberto ma, da errore di sintassi alla riga 13

    #167967 quote
    lowbat
    Participant
    Senior

    scusa riga 12

    #167971 quote
    robertogozzi
    Moderator
    Master

    Scusa, una mia dimenticanza, eccola corretta:

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

    grazie Roberto

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

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 lowbat
4 years, 10 months ago.

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