Numero massimo di trade per giorno

Viewing 2 posts - 16 through 17 (of 17 total)
  • Author
    Posts
  • #118348 quote
    GianlucaGianluca
    Participant
    Master

    voglio dire massimo 3 short e massimo 5 long per esempio

    #118381 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    All’inizio devi impostare 2 contatori a zero, uno per i long ed uno per gli short:

    ONCE ContaL = 0
    ONCE ContaS = 0

    che dovrai incrementare subito dopo la riga 21 del tuo codice, secondo il tipo di operazione:

    ContaL = ContaL + EraLong
    ContaS = ContaS + EraShort

    alla riga 1 aggiungi alle condizioni d’entrata questa condizione:

    AND ContaS < 3

    e lo stesso farai con ContaL per i long mettendo 5.

    Chiaramente dovrai stabilire tu quando azzerarli questi contatori per fare in modo che la strategia ricominci a tradare. Ogni nuovo giorno, ogni nuova settimana o dopo N barre; decidi tu quando.

Viewing 2 posts - 16 through 17 (of 17 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

Numero massimo di trade per giorno


ProOrder: Trading Automatico & Backtesting

New Reply
Author
author-avatar
Gianluca @altares Participant
Summary

This topic contains 16 replies,
has 2 voices, and was last updated by robertogozzirobertogozzi
6 years, 8 months ago.

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