tendenza settimanale

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #160421 quote
    Gabriele Battista
    Participant
    Senior

    vorrei testare un sistema che compra all’open del giovedì e chiude al close del martedì ogni settimana, è possibile avere il codice, grazie

    #160422 quote
    robertogozzi
    Moderator
    Master

    Per comprare all’open del Giovedì occorre farlo alla chiusura del mercoledì, mentre per la chiusura del martedì va bene (ovviamente chiude quando si apre quella del Mercoledì, ma sono microsecondi). Immagino tu parli del TF giornaliero:

    IF DayOfWeek = 4 AND Not OnMarket THEN  //apertura del Giovedì
       BUY 1 Contract at Market
    ENDIF
    IF DayOfWeek = 3 AND OnMarket THEN     //apertura del mercoledì (che è la chiusura del Martedì), identico a: IF OpenDayOfWeek = 2 AND OnMarket THEN
       SELL at Market
    ENDIF
    #160437 quote
    Gabriele Battista
    Participant
    Senior

    grazie gentilissimo

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

tendenza settimanale


ProOrder: Trading Automatico & Backtesting

New Reply
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by Gabriele Battista
5 years ago.

Topic Details
Forum: ProOrder: Trading Automatico & Backtesting
Language: Italian
Started: 02/05/2021
Status: Active
Attachments: No files
Logo Logo
Loading...