Salvare il prezzo di un determinato orario e dargli un nome

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #211642 quote
    luca_massluca_mass
    Participant
    New

    Ciao a tutti,

    vi scrivo per sapere se è possibile “fissare” il prezzo di un determinato orario e utilizzarlo per tutto il giorno.

    Mi piacerebbe che il TS alle 09:00, per esempio, prenda il valore della close (indipendentemente dal Timeframe) e gli assegni un nome così da poterlo usare da quel momento a qualsiasi ora del giorno come livello di ingresso/uscita e si resetti a fine giornata al fine di ripartire alle 09:00 del giorno successivo.

     

    Grazie mille a tutti!!

    #211655 quote
    MauroProMauroPro
    Participant
    Veteran

    In questo esempio vedi come si fissa un prezzo alle ore 9.

    Questo semplice codice fissa il prezzo alle ore 9 e poi dalle ore 15 in poi (ad esempio) se il prezzo è sotto il livello delle 9 e lo supera si entra a mercato.

    if time = 090000 then
    prezzoOre9 = close
    endif

    if time > 150000 and close crosses over prezzoOre9 then
    buy 1 contracts at market
    endif
    set target pProfit 100
    set stop pLoss 100

    luca_mass and robertogozzi thanked this post
    #211673 quote
    luca_massluca_mass
    Participant
    New

    Grazie mille! mi stavo complicando la vita per niente

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

Salvare il prezzo di un determinato orario e dargli un nome


ProBuilder: Indicatori & Strumenti Personalizzati

New Reply
Author
author-avatar
luca_mass @luca_mass Participant
Summary

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

Topic Details
Forum: ProBuilder: Indicatori & Strumenti Personalizzati
Language: Italian
Started: 03/16/2023
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...