Scaling trading

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #168589 quote
    NicoeleNicoele
    Participant
    New

    Buonasera! Posso chiedere come posso mettere in codice questa idea?

    dato un prodotto che vale 100

    vorrei che il sistema comprasse 1 solo lotto a 98 con tp 2%,1 altro lotto a 96 con tp 2%,e un altro solo lotto a 96 con tp 2%

    con un massimo di 3 lotti in tutto

    Grazie a chi mi aiuterà

    #168591 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Pubblica il tuo argomento nel forum corretto:
    _ Supporto piattaforma ProRealTime: solo problemi relativi alla piattaforma.
    _ ProOrder: solo argomenti su strategie.
    _ ProBuilder: solo argomenti su indicatori.
    _ ProScreener: solo argomenti su screener.
    _ Discussione generale di Trading: qualsiasi altro argomento di trading.
    _ Benvenuto ai nuovi membri: per permettere ai nuovi membri del forum di presentarsi.

    #168594 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Ci sono delle regole ben evidenziate in giallo qui sotto, che hai letto (e accettato).

    Per favore non ignorarle ogni volta. NON DUPLICARE i post, per di più sempre nel forum errato!

    Grazie. 🙂

    #168595 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Eccolo, l’ho provato su EurUsd, giornaliero.

    Fa poche operazioni, ma funziona.

    DEFPARAM CumulateOrders = TRUE
    IF Not OnMarket THEN
       Prezzo  = close
       BUY 1 Contract AT close * 0.98 LIMIT
       BUY 1 Contract AT close * 0.96 LIMIT
       BUY 1 Contract AT close * 0.94 LIMIT
    ELSE
       IF CountOfPosition = 1 THEN
          BUY 1 Contract AT Prezzo * 0.96 LIMIT
          BUY 1 Contract AT Prezzo * 0.94 LIMIT
       ELSIF CountOfPosition = 2 THEN
           BUY 1 Contract AT Prezzo * 0.94 LIMIT
       ENDIF
    ENDIF
    SET TARGET %PROFIT 2     //2%
    Nicoele thanked this post
    #168598 quote
    NicoeleNicoele
    Participant
    New

    Grazie mille!!!!davvero

    #168614 quote
    NicoeleNicoele
    Participant
    New

    Chiedo scusa ma non riuscivo ad inviare il messaggio

    #168838 quote
    NicoeleNicoele
    Participant
    New

    Buongiorno!Per quanto riguarda il sistema scalare come posso far sì che venda 1 lotto alla volta con tp=2%?

    ovvero per esempio avendo comprato con il sistema descritto ad esempio 3 lotti   ( uno a 98 ,uno a 96 ed uno a 94) vorrei far sì che quello a 98 venisse venduto singolarmente a +2%; quello a 96 venduto singolarmente a +2% e che quello a 94 fosse venduto a +2%

    non riesco a formularlo

    grazie mille in anticipo

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

Scaling trading


ProOrder: Trading Automatico & Backtesting

New Reply
Author
author-avatar
Nicoele @nicoele Participant
Summary

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

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