Partenza ordine all’inizio della giornata di trading

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #140071 quote
    Giovanni Belli
    Participant
    Average

    Buongiorno,

    mi piacerebbe far partire ad ogni inizio giornata di trading (alla mezzanotte) un ordine.

    Sono riuscito impostando un timeframe da 1 min e impostandogli il comando intradaybarindex = 1.

    esiste un’altro modo?

    Grazie

     

    DEFPARAM CumulateOrders = false
    
    TIMEFRAME(default)
    daysForbiddenEntry = OpenDayOfWeek = 6 OR OpenDayOfWeek = 0 //or OpenDayOfWeek = 1
    c1 = not daysForbiddenEntry
    c2 = intradaybarindex = 1
    
    // Long
    IF c1 AND c2 AND Not Onmarket THEN
    BUY 1 CONTRACT AT MARKET
    SET TARGET PPROFIT 6
    ENDIF
    #140076 quote
    robertogozzi
    Moderator
    Master

    La prima barra intraday del giorno è la 0, non la 1.

    No, non c’è un altro modo.

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

Partenza ordine all’inizio della giornata di trading


ProOrder: Trading Automatico & Backtesting

New Reply
Author
Summary

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

Topic Details
Forum: ProOrder: Trading Automatico & Backtesting
Language: Italian
Started: 07/25/2020
Status: Active
Attachments: No files
Logo Logo
Loading...