probacktest strategia buy and hold

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #180588 quote
    BF___BF___
    Participant
    Junior

    Ciao , sto cercando di far funzionare una strategia buy and hold (per esempio per un anno), con la creazione semplificata.
    la logica è di non mettere nessuna condizione ma solamente la data d’inizio dell’operazione e la chiusura. ma mi dice che devo mettere delle condizioni.
    quali potrebbero essere?

    #180591 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Con la creazione assistita servono delle condizioni.

    Per un Buy & Hold non c’è bisogno della creazione assistita, basta iniziare da una data d’inizio ed una di fine (se si desidera, altrimenti lasciare 9999):

    IF Date >= 20200101 AND Not OnMarket THEN //inizia l'1/1/2020
       BUY AT MARKET
    ENDIF
    IF Date >= 99991231 THEN                  //termina il 31/12/9999
       SELL AT MARKET
    ENDIF

    non occorre mettere altro.

    BF___ thanked this post
    #180803 quote
    BF___BF___
    Participant
    Junior

    in questo modo però mi compra un’unica azione, come si fa a dire di comprare una quantità specifica di azioni?
    grazie ancora

    #180807 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Basta che indichi il numero:

    BUY 1 CONTRACT AT MARKET
Viewing 4 posts - 1 through 4 (of 4 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

probacktest strategia buy and hold


ProOrder: Trading Automatico & Backtesting

New Reply
Author
author-avatar
BF___ @bf___ Participant
Summary

This topic contains 3 replies,
has 2 voices, and was last updated by robertogozzirobertogozzi
4 years, 10 months ago.

Topic Details
Forum: ProOrder: Trading Automatico & Backtesting
Language: Italian
Started: 10/30/2021
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...