OGNI MESE UN LOTTO IN PIù

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #79121 quote
    papero76
    Participant
    Senior

    ciao

    sto lavorando su ingressi incrementali per testare quante posizioni posso aumentare senza rischieare perdite

    allego parte di codice , ma il test non parte da 1 lotto ma da 7 lotti.

    once po= 1
    /// CALCOLO PER MESE
    IF MONTH[1]<>MONTH THEN
    PO=PO+1
    ENDIF

    dovrebbe partire da 1 lotto ma non è così

    all inizio c’è anche il comando

    DEFPARAM PRELOADBARS = 100

    saluti e grazie in anticipo

    #79171 quote
    robertogozzi
    Moderator
    Master

    aggiungi al tuo codice:

    graph month
    graph month[1]
    graph po

    per vedere, candela per candela, quali valori hanno. Ti aiuterà a capire dov’è l’errore.

    Prova anche ad usare OPENMONTH al posto di MONTH, non saprei.

    #79245 quote
    papero76
    Participant
    Senior

    a livello giornaliero va impostato cosi altrimenti credo faccia il conteggio dal preloadbars

    IF DAY=1 AND MONTH = 1 AND YEAR = 2010 THEN
    PO= 1
    ENDIF

    chiaramente per un backtest a intraday bisogna testare inserendo ore e minuti ecc

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

OGNI MESE UN LOTTO IN PIù


ProOrder: Trading Automatico & Backtesting

New Reply
Author
author-avatar
papero76 @papero76 Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by papero76
7 years, 5 months ago.

Topic Details
Forum: ProOrder: Trading Automatico & Backtesting
Language: Italian
Started: 08/26/2018
Status: Active
Attachments: No files
Logo Logo
Loading...