Indicatore massimi / minimi

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

    Salve, vorrei costruire un indicatore che mi indica che i massimi o minimi delle candele a 30 minuti siano uguali o in tolleranza di max 2 ticks, 3 lo considero già rottura, il periodo è delle ultima 24 ore e dovrebbe cercarle anche non consecutive.

    Grazie

    GP

    #181881 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Non ho ben capito se vuoi le ultime 24 ore esatte, cioè dalle 00:00 alle 00:00 precedenti o dalle 10:00 alle 10:00 precedenti, oppure se dalle 00:00 in poi (alle 8 di mattina saranno solo 8 ore, non 24).

    Io l’ho fatto in quest’ultimo modo:

    ONCE Distanza = 2 * PipSize
    ONCE Offset   = 1               //0=barra corrente,  1=barra precedente
    ONCE Massimo  = 0
    ONCE Minimo   = 0
    If OpenDay <> OpenDay[1] THEN
       Massimo = high
       Minimo  = low
    ENDIF
    Massimo = max(Massimo,high)
    Minimo  = min(Minimo,low)
    HH      = (high <= (Massimo[Offset] + Distanza)) AND (high >= (Massimo[Offset] - Distanza))
    LL      = (low  <= (Minimo[Offset]  + Distanza)) AND (low  >= (Minimo[Offset]  - Distanza))
    x       = 0
    IF HH THEN
       x = 1
    ELSIF LL THEN
       x = -1
    ENDIF
    RETURN x AS "Risultato"

    alla riga 1 stabilisci la distanza (anche usando un decimale, es. 1.8).

    Alla riga 2 OFFSET stabilisce con quale Massimo/Minimo fare il confronto, se metti 0 avrai più segnali, perché ogni nuovo Minimo/Massimo sarà segnalato, se metti 1 tralascerà i nuovi Minimi/Massimi.

    #181914 quote
    100200100200
    Participant
    Junior

    Grazie, mi interessa della giornata in corso Es. sono alle 11:00 mi intressano dalla 00:00 alle 11:00 e poi fino alla fine.

    Poi scelgo il range che mi interessa il dax dalla 08:30 alle 18:30 e SP500 dalla 14:30 alle 22:30. Importante è che mi segnali il ticks nella tolleranza che non fa break-out che non riesco a fare.

    GP

    #181915 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Perfetto, allora va bene così.

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

Indicatore massimi / minimi


ProBuilder: Indicatori & Strumenti Personalizzati

New Reply
Author
author-avatar
100200 @100200 Participant
Summary

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

Topic Details
Forum: ProBuilder: Indicatori & Strumenti Personalizzati
Language: Italian
Started: 11/19/2021
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...