Partenza ordine all’inizio della giornata di trading

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #140071 quote
    Giovanni BelliGiovanni 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
    robertogozzirobertogozzi
    Moderator
    Legend

    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.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

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 robertogozzirobertogozzi
6 years, 2 months ago.

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