codigo para no entrar los viernes desde las 17:00

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #245101 quote
    slottejeaslottejea
    Participant
    New

    Buenos dias.

    No se si lo habran escrito ya en el foro pero no lo he encontrado asi que lo pregunto para ver si alguien sabe el codigo que hay que meter para que mi operativa no opere los viernes a partir de las 18:00

     

    muchas gracias.

    #245102 quote
    Iván GonzálezIván González
    Moderator
    Legend

    Hola. Puedes poner esto:

    if onmarket and opendayofweek=5 and opentime>=180000 then
    sell at market
    endif
    #245103 quote
    slottejeaslottejea
    Participant
    New

    Hola Ivan muchas gracias por responder.

    No es lo que buscaba, voy a explicar mejor mi operativa y lo que busco.

    Tengo un sistema que opera en velas de 4h ( 9:00, 13:00, 17:00, 21:00, 1:00, 5:00 ) los 5 dias de la semana de lunes a viernes. Me gustaria no operar (osea que no me abra posicion a las 21:00) pero solo del viernes ese es el problema que no se programar.

     

    Saludos.

    #245107 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Añade myTimeCond a tus condiciones de entrada:

    myTimeCond = Not (DayOfWeek = 5 AND Time >= 170000)
    Iván González thanked this post
    #245118 quote
    slottejeaslottejea
    Participant
    New

    Muchas gracias eso me sirve

    robertogozzi thanked this post
Viewing 5 posts - 1 through 5 (of 5 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

codigo para no entrar los viernes desde las 17:00


ProOrder: Trading Automático y Backtesting

New Reply
Author
author-avatar
slottejea @slottejea Participant
Summary

This topic contains 4 replies,
has 3 voices, and was last updated by slottejeaslottejea
1 year, 6 months ago.

Topic Details
Forum: ProOrder: Trading Automático y Backtesting
Language: Spanish
Started: 03/20/2025
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...