Vendita solo a alla chiusura candela

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #81104 quote
    tatankayotanka
    Participant
    Senior

    Buongiorno volevo chiedere come fare per fare in modo che nel mio TS , avendo impostato uno stop loss e trailing a -5%, mi chiuda la posizione solo se tale valore sia raggiunto alla chiusura della candela senza considerare il minimo di giornata, io ho provato cosi ma non va bene , grazie mille

    c4 = (Close < (open[0] *0.5))
    IF c4 THEN
    SELL AT MARKET
    ENDIF
    #81106 quote
    robertogozzi
    Moderator
    Master

    Deve esserci in una variabile il valore di stop loss che hai determinato all’entrata.

    Alka riga 1 non è necessario mettere [0], è assunto per difetto, altrimenti dovresti metterlo anche a close.

    #81107 quote
    tatankayotanka
    Participant
    Senior
    c5= 0.05 // valore trailing
    c4 = (Close < (open *c5))
    IF c4 THEN
    SELL AT MARKET
    ENDIF

    Cosi ?

    #81110 quote
    robertogozzi
    Moderator
    Master

    La riga 2 deve fare il confronto con il prezzo d’ingresso, non la chiusura attuale:
    <pre class=”lang:probuilder decode:true “>C4 = close < (Tradeprice * (1 – c5))

    #81112 quote
    robertogozzi
    Moderator
    Master
    C4 = close < (Tradeprice * (1 – c5))
    #81128 quote
    tatankayotanka
    Participant
    Senior

    Ok grazie proverò

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

Vendita solo a alla chiusura candela


ProOrder: Trading Automatico & Backtesting

New Reply
Author
Summary

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

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