Stop Dinamico si se alcanza cierto valor

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #48187 quote
    jjferrer
    Participant
    Junior

    Buenos dias,

    Estos programando un sistema de trading y me gustaria saber si se puede programar que cuando la cotización alcance un cierto valor genere un stop dinamico.

    Pongo un ejemplo para que quede más claro. Supongamos que tengo acciones de la empresa A, la cual esta cotizando a 13 Eur y quiero que si llega a los 17 Eur se ponga un stop dinamico del 1%, de forma que si la cotización sigue subiendo mantengo las acciones, pero si empieza a bajar y supera el 1% vender las acciones.

     

    Gracias!!!

    #48406 quote
    Nicolas
    Keymaster
    Master

    I did not try this code, but I think it should work as expected.

    if longonmarket and Close>=17 then
     SET STOP %TRAILING 1
    endif
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Stop Dinamico si se alcanza cierto valor


ProOrder: Trading Automático y Backtesting

New Reply
Author
author-avatar
jjferrer @jjferrer Participant
Summary

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

Topic Details
Forum: ProOrder: Trading Automático y Backtesting
Language: Spanish
Started: 10/04/2017
Status: Active
Attachments: No files
Logo Logo
Loading...