Mettere in pausa un sistema fino al giorno successivo

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #245429 quote
    demuia
    Participant
    New

    Salve,

    vorrei che il mio sistema di trading intraday, al verificarsi di una precisa condizione di uscita, venisse messo in pausa per tutto il resto della giornata ripartendo normalmente al giorno successivo. Potete indicarmi il codice da inserire? Grazie in anticipo

    #245446 quote
    Iván González
    Moderator
    Master

    Ciao. Puoi usarlo:

    if intradaybarindex=0 then
    paused=0
    endif
    
    if not onmarket and yourconditions and paused=0 then
    buy 1 contract at market
    endif
    
    if onmarket and yourconditions then
    sell 1 contract at market
    paused=1
    endif
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Mettere in pausa un sistema fino al giorno successivo


ProOrder: Trading Automatico & Backtesting

New Reply
Author
author-avatar
demuia @demuia Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by Iván González
10 months, 2 weeks ago.

Topic Details
Forum: ProOrder: Trading Automatico & Backtesting
Language: Italian
Started: 03/30/2025
Status: Active
Attachments: No files
Logo Logo
Loading...