Stop Dinamico si se alcanza cierto valor

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #48187 quote
    jjferrerjjferrer
    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
    NicolasNicolas
    Keymaster
    Legend

    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.
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 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 NicolasNicolas
8 years, 12 months ago.

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