Negoziare una frazione di contratto

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

    Ho notato che in proorder se si mette BUY PARM CONTRACT AT Y STOP, quando PARM vale un numero decimale (es 0.5) l’ordine non viene eseguito, nè in probacktest nè in papertrading.

    Viene eseguito solo se PARM vale un numero intero.

    C’è un modo per negoziare una frazione di contratto?

    #136777 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Con la v11 non sono riuscito ad ottenere il risultato che tu desideri (non so perché, va chiesto all’assistenza premendo Ctrl+M).

    Sulla v10.3 ci sono riuscito con questo codice (ho usato entrate a mercato, ma non credo sia questo il problema):

    defparam cumulateorders = true
    if barindex = 0 then
       Parm = 0.5
    endif
    buy parm contract at market
    parm = parm + 0.5
    if parm > 3 then
       parm = 0.5
       sell at market
    endif
    robocop thanked this post
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

Negoziare una frazione di contratto


ProOrder: Trading Automatico & Backtesting

New Reply
Author
author-avatar
robocop @robocop Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by robertogozzirobertogozzi
6 years, 3 months ago.

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