Ingresso a mercato

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #190682 quote
    eclarari1
    Participant
    Average

    Buona sera.

    Sto utilizzando un programma con barre orarie che gestisce solamente la fase di chiusura della posizione.

    L’ingresso e’ invece determinato  manualmente , ovvero viene lanciato il programma quando decido di entrare a mercato (con istruzione ” IF NOT ON MARKET THEN BUY”).

    Ma esssendo le barre orarie l’acquisto scatta soltanto alla chiusura della barra in essere. E’ possibile entrare subito a mercato senza dover aspettare la chiusura della barra oraria?

     

    Grazie

    Emanuele

    #190689 quote
    robertogozzi
    Moderator
    Master

    Si, puoi usare un TF molto piccolo, anche 1 secondo, per l’esecuzione, lasciando il TF (time frame) orario per le condizioni:

    Defparam CumulateOrders = false
    //
    Timeframe(1h,UpdateOnClose) //o Timeframe(1h,default)
    CondizioniUscita = ….. 
    //
    Timeframe(default)  //il TF che hai scelto, che deve essere sul grafico, 1 secondo, 10 secondi, 5 minuti, ecc…
    If Not OnMarket then
       Buy.. oppure Sellshort…
    Endif
    If OnMarket and CondizioniUscita then
       SELL … oppure EXITSHORT…
    Endif

    Se cerchi la parola MTF sul forum, troverai molti articoli, discussioni ed esempi in merito al supporto Multiple Time Frame.

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

Ingresso a mercato


Supporto ProOrder

New Reply
Author
author-avatar
eclarari1 @eclarari1 Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by robertogozzi
3 years, 10 months ago.

Topic Details
Forum: Supporto ProOrder
Language: Italian
Started: 03/28/2022
Status: Active
Attachments: No files
Logo Logo
Loading...