Stop loss

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #130626 quote
    andrea trevisanandrea trevisan
    Participant
    Average

    Il mio obbiettivo è inserire un stop loss che corrisponda in caso di ordine buy al minimo delle ultime X barre e viceversa.

    Ho provaro in questa maniera ma mi si è inserito uno stop loss spropositato, dove sbaglio?

    in caso di ordine long:

    longstop = lowest[x](low)

    set stop ploss = longstop

    in caso di ordine short:

    shortstop = highest[x](high)

    set stop ploss = shortstop

    #130652 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    pLOSS vuole una differenza espressa in Pips (10, 20, 100, ….)

    LOSS   vuola una differenza espressa in prezzo (su Eur/Usd 0.0010, 0.0020, 0.0100, …).

    Ti conviene usare LOSS (senza la “p” iniziale, in questo caso), però non puoi indicar en prezzo, ma una DIFFERENZA di prezzo, nel tuo caso LONG:

    longstop = close - lowest[x](low)
    set stop loss longstop

    nel caso SHORT:

    shortstop = highest[x](high) - close
    set stop loss shortstop
Viewing 2 posts - 1 through 2 (of 2 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

Stop loss


ProOrder: Trading Automatico & Backtesting

New Reply
Author
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by robertogozzirobertogozzi
6 years, 5 months ago.

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