Stop Loss a un precio concreto

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

    Buenos días,

    Quiero programar un “Stop Loss” a un precio concreto. Por ejemplo, quiero salir de la posición si el precio baja de 80 Eur.

    He leido varias veces el manual, y todos los STOP LOSS están referenciados a un porcentaje o variación sobre el precio de entrada.

    ¿Es posible?

    SAlu2.

    #15210 quote
    NicolasNicolas
    Keymaster
    Legend

    Se puede utilizar el $LOSS, una instrucción integrada para establecer su stop-loss en dinero.

    #15228 quote
    jjferrerjjferrer
    Participant
    Junior

    Hola,

    Creo que no me he explicado bien. Pongo un ejemplo:

    Supongamos una acción esta en una tendencia lateral y su precio oscila entre los 15 y los 10 Eur. Independientemente del precio al que compre, como puedo programar que si la acción baja de los 8 Eur se venda.

    SAlu2.

    #15301 quote
    tikitakatikitaka
    Participant
    Average

    Hola jj,

    el diablo, claro, está siempre en los detalles, pero por qué no alguna variación sobre la lógica siguiente:
    …
    if misCondicionesA then
    exitPrice = 8
    endif
    …
    if onmarket and misCondicionesB then
    SELL at exitPrice STOP
    endif
    …

    Saludos

    #15509 quote
    jjferrerjjferrer
    Participant
    Junior

    Muchas gracias, a veces se tropieza con las piedras más grandes 😉

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

Stop Loss a un precio concreto


ProOrder: Trading Automático y Backtesting

New Reply
Author
author-avatar
jjferrer @jjferrer Participant
Summary

This topic contains 4 replies,
has 3 voices, and was last updated by jjferrerjjferrer
9 years, 12 months ago.

Topic Details
Forum: ProOrder: Trading Automático y Backtesting
Language: Spanish
Started: 10/17/2016
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...