Far iniziare una strategia ad una certa ora

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #73888 quote
    volpiemanuele
    Participant
    Veteran

    Ciao,

    vorrei sapere quale istruzioni utilizzare per far iniziare a tradare la strategia a partire da Lunedi’ notte alle 00.30. Poi una volta inziata deve tradare di continuo tutti gli altri giorni senza orari e altre limitazioni. Grazie

    #73901 quote
    Nicolas
    Keymaster
    Master

    Devi creare una variabile con queste condizioni e aggiungerla alla tua decisione di trading, in questo modo:

    timecondition = dayofweek>=1 and time>003000
    
    if timecondition and buycondition then 
      buy at market 
    endif
    #73907 quote
    volpiemanuele
    Participant
    Veteran

    Chiaro. Grazie

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

Far iniziare una strategia ad una certa ora


ProBuilder: Indicatori & Strumenti Personalizzati

New Reply
Author
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by volpiemanuele
7 years, 9 months ago.

Topic Details
Forum: ProBuilder: Indicatori & Strumenti Personalizzati
Language: Italian
Started: 06/21/2018
Status: Active
Attachments: No files
Logo Logo
Loading...