CHIUSURA MAGGIORE DEL RANGE GIORNALIERO

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #132985 quote
    mat024mat024
    Participant
    Junior

    Salve, stavo scrivendo il codice per uno screener che mi indica quando il prezzo di chiusura è superiore al 50% del range giornaliero, ma a quanto pare c’è un errore, dove sbaglio?

    c1 = close > range/2
    
    return c1
    

    Grazie Mille

    #132986 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    La riga 3 dovrebbe essere

    Screener[c1]

    perché RETURN è per gli indicatori.

    Ma non è solo questo, il problema principale è il calcolo.

    Supponiamo di operare sul DAX, close avrà valore di circa 11000, mentre range/2 avrà come valore… diciamo di 150 (supponendo di essere sul giornaliero).

    Quindi confronti se 11000 > 150. Ovviamente tale condizione sarà sempre vera!

    Devi sommare a 150 il minino e fare il confronto con quello:

    c1 = close > (low + (range/2))
    #133003 quote
    mat024mat024
    Participant
    Junior

    ok, perfetto ora mi torna tutto . Si me ne sono accorto, avevo sbagliato termine,  stavo facendo un indicatore non uno screener 🙂

    Grazie come sempre!

    #133006 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Dimenticavo… puoi anche toglierlo dal massimo:

    c1 = close > (high - (range/2))
Viewing 4 posts - 1 through 4 (of 4 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 MAGGIORE DEL RANGE GIORNALIERO


ProScreener: Scansione Mercati & Screener

New Reply
Author
author-avatar
mat024 @mat024 Participant
Summary

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

Topic Details
Forum: ProScreener: Scansione Mercati & Screener
Language: Italian
Started: 05/23/2020
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...