pregunta sobre stops dalida

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #19394 quote
    diegofe_2000diegofe_2000
    Participant
    Senior

    Cordial saludo, mi pregunta es muy sencilla,  ¿  como  escribo una salida  para una venta en donde  si el cierre de la vela actual es mayor que el máximo de la  vela de entrada , entonces doy la orden de vender?

    No he podido hacerlo en el caso en donde han pasado (n) velas .

     

    ¿ me puede ayudar?

    #19403 quote
    NicolasNicolas
    Keymaster
    Legend

    En este caso su mejor opción debe ser poner una pérdida de la parada en el máximo (alto / High) del candelero que inician el trade:

    if conditionsell then 
     SELL 1 SHARE AT MARKET 
     stoploss = high-close
     set stop loss stoploss
    endif
    #19436 quote
    diegofe_2000diegofe_2000
    Participant
    Senior

    gracias NICOLAS por tu valiosa ayuda.

    Feliz Año 2017

Viewing 3 posts - 1 through 3 (of 3 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

pregunta sobre stops dalida


ProOrder: Trading Automático y Backtesting

New Reply
Author
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by diegofe_2000diegofe_2000
9 years, 9 months ago.

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