Codice per entrare in posizione

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #187225 quote
    Ciccarelli Franco
    Participant
    Junior

    Salve, mi interesserebbe un semplice codice che manda a mercato e chiude ordini con la semplice variabile di ora ingresso e ora fine.

    Grazie

    #187267 quote
    robertogozzi
    Moderator
    Master

    Eccolo:

    IF Time = 100000 THEN         //entrare alle 10:00
       BUY 1 CONTRACT AT MARKET   //oppure SELLSHORT per le operazioni short
    ENDIF
    IF Time = 170000 THEN         //uscire alle 17:00
       SELL AT MARKET             //oppure EXITSHORT per le operazioni short
    ENDIF
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Codice per entrare in posizione


ProOrder: Trading Automatico & Backtesting

New Reply
Summary

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

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