USCITA A FINE GIORNATA

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #219990 quote
    Hary TradingHary Trading
    Participant
    New

    buongiorno,

    vorrei scrivere un codice che mi consenta di entrare un giorno qualunque della settimana in apertura di sessione, e di uscire in chiusura

    Se dovessi fare un esempio su NQ, entra alle ore 00:00 ed esci alle ore 23:00..

    ho scritto il seguente codice, ma in realtà vedo che nonostante l’entrata sia eseguita in modo corretto, il sistema esce appena apre la giornata successiva, facendomi andare incontro, per esempio a gap giornalieri che vorrei evitare

     

     

    if dayofweek=1  then

    buy 1 contract at market

    endif

    if long on market then

    sell at market

    endif

    potrei per cortesia sapere dove sbaglio?

     

    Grazie a chi vorrà aiutarmi

    #219991 quote
    AragornaAragorna
    Participant
    Average

    da quel che so io, lavorando sulla candela daily, essendo una barra ancora in formazione, non puoi. Devi lavorare per esempio sul timeframe orario e dirgli di aprire posizione a mezzanotte e chiudere alle 23 per esempio.

    robertogozzi thanked this post
    #219992 quote
    Hary TradingHary Trading
    Participant
    New

    Grazie, è probabilmente come dici tu…

Viewing 3 posts - 1 through 3 (of 3 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

USCITA A FINE GIORNATA


ProOrder: Trading Automatico & Backtesting

New Reply
Author
author-avatar
Hary Trading @adtrader Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by Hary TradingHary Trading
3 years ago.

Topic Details
Forum: ProOrder: Trading Automatico & Backtesting
Language: Italian
Started: 08/29/2023
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...