Vendita solo a alla chiusura candela

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #81104 quote
    tatankayotankatatankayotanka
    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
    robertogozzirobertogozzi
    Moderator
    Legend

    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
    tatankayotankatatankayotanka
    Participant
    Senior
    c5= 0.05 // valore trailing
    c4 = (Close < (open *c5))
    IF c4 THEN
    SELL AT MARKET
    ENDIF

    Cosi ?

    #81110 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    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
    robertogozzirobertogozzi
    Moderator
    Legend
    C4 = close < (Tradeprice * (1 – c5))
    #81128 quote
    tatankayotankatatankayotanka
    Participant
    Senior

    Ok grazie proverò

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

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 tatankayotankatatankayotanka
8 years ago.

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