INSTRUCCIONES PARA COMPRAR Y VENDER 0.5 CONTRATOS DE FUTUROS,

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

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

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 robertogozzirobertogozzi
4 years, 8 months ago.

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