Ingresso a mercato

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #190682 quote
    eclarari1eclarari1
    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
    robertogozzirobertogozzi
    Moderator
    Legend

    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.
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

Ingresso a mercato


ProOrder: Trading Automatico & Backtesting

New Reply
Author
author-avatar
eclarari1 @eclarari1 Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by robertogozzirobertogozzi
4 years, 6 months ago.

Topic Details
Forum: ProOrder: Trading Automatico & Backtesting
Language: Italian
Started: 03/28/2022
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...