LIMITARE TS AD 1 SOLO ORDINE AL GIORNO

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #132813 quote
    roberto27roberto27
    Participant
    Junior

    Buongiorno,

    mi chiamo Roberto e sono nuovo nel forum .Un saluto a tutti.

    Spero mi possiate aiutare:

    Sto testando un ts su degli indici dove considero dei segnali di ingresso su grafico a 1 minuto ed,

    entro ed esco dal mercato su grafico a 20 secondi.

    Mi servirebbe un codice dove limito il programma ad eseguire 1 solo ordine al giorno.

    Spero mi possiate aiutare

    grazie

    #132821 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Inserisci queste righe all’inizio, dopo i DEFPARAM se li usi:

    Once Conto = 0
    If OnMarket and Not OnMarket[1] then
       Conto = Conto + 1
    Endif
    If IntraDayBarIndex = 0 then
      Conto = 0
    Endif

    poi aggiungi la condizione And Conto = 0 alle tue condizioni d’entrata.

    #132835 quote
    roberto27roberto27
    Participant
    Junior

    Salve

    piacere di conoscerti e grazie per la risposta immediata.

    ho insertito il codice.

    funziona per i giorni passati.

    oggi , esegue ancora tutti gli ordini che si presentano.

    grazie

    #132839 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Sono tutte operazioni chiuse in un’unica barra? Se si, può darsi, cambia la riga 2 con questa:

    If (OnMarket and Not OnMarket[1]) OR (Not OnMarket And Not OnMarket[1] AND StrategyProfit <> StrategyProfit[1]))then

    Se no, hai sbagliato qualcosa nell’inserirlo nel tuo codice.

    #132865 quote
    roberto27roberto27
    Participant
    Junior

    cosi sembra funzioni perfettamente

    grazie mille

    saluti

Viewing 5 posts - 1 through 5 (of 5 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

LIMITARE TS AD 1 SOLO ORDINE AL GIORNO


ProOrder: Trading Automatico & Backtesting

New Reply
Author
author-avatar
roberto27 @roberto27 Participant
Summary

This topic contains 4 replies,
has 2 voices, and was last updated by roberto27roberto27
6 years, 5 months ago.

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