Uscita STOP o LIMIT

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

    Buongiorno… un dubbio enorme per uscire da una posizione sia essa long che short si possono mettere due stringhe tipo

    if miecondizion then

    exitshort at x limit

    exitshort at x stop

    endif

    Stessa cosa per la posizione long.

    Quale sarebbe il codice giusto visto che a volte funziona meglio con “stop” altre volte con “limit” per questo chiedo se e possibile utilizzarle entrambe nella stessa condizione

    Grazie in anticipo Gianni

    #149091 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Puoi farlo tranquillamente .

    Usa LIMIT quando il prezzo di uscita è migliorativo (nel risultato) rispetto al prezzo attuake, STOP quando è peggiorativo.

    #149097 quote
    mangiaragnimangiaragni
    Participant
    Junior

    Grazie di aver risposto Roberto

    Però se dovessi utilizzare l’uscita  come trailing stop quindi al di sopra del prezzo attuale per posizioni short ed al di sotto del prezzo attuale per posizioni long, sarebbe una vendita limit giusto?

    #149104 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Un’uscita da uno Short è in realtà un acquisto Long, quindi un prezzo d’acquisto più elevato, rispetto a quello attuale (del momento in cui piazzi l’ordine pendente),è peggiorativo.

    Viceversa per l’uscita da un Long.

    Quindi devi usare STOP.

    #149113 quote
    mangiaragnimangiaragni
    Participant
    Junior

    PERFETTO Grazie mille Roberto sempre esauriente e gentilissimo

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

Uscita STOP o LIMIT


ProOrder: Trading Automatico & Backtesting

New Reply
Author
Summary

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

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