INSTRUCCIONES PARA COMPRAR Y VENDER 0.5 CONTRATOS DE FUTUROS,

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #186099 quote
    alejandropd
    Participant
    Average

    Estoy intentando comprar 0.5 contratos de un futuro cuando se cumple la Condicion1 y  estoy fuera del mercado, pero no me compra esos 0.5 contratos

    En cambio lo hago con 1 contrato y si que funciona.

    Hay que hacer algo distinto cuando trabajar con decimales?

    IF NOT LongOnMarket and Condicion1 THEN

    BUY 0.5 CONTRACTS AT MARKET NEXTBAROPEN

    ENDIF

     

    IF LongOnMarket AND Condicion2 THEN

    IF (COUNTOFLONGSHARES=0.5) THEN

    SELL 0.5 CONTRACTS AT MARKET NEXTBAROPEN

    ENDIF

    ENDIF

    #186101 quote
    robertogozzi
    Moderator
    Master

    Gracias por tu consejo. Puede ser útil para algunos lectores 🙂

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

INSTRUCCIONES PARA COMPRAR Y VENDER 0.5 CONTRATOS DE FUTUROS,


ProOrder: Trading Automático y Backtesting

New Reply
Author
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by robertogozzi
4 years, 1 month ago.

Topic Details
Forum: ProOrder: Trading Automático y Backtesting
Language: Spanish
Started: 01/20/2022
Status: Active
Attachments: No files
Logo Logo
Loading...