como hacer que el sistema no calcule el stop loss y el stop profit en cada vela

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #10556 quote
    RafaelNRafaelN
    Moderator
    Senior
    A continuación una solicitud que ha sido enviada a ProRealtime:

    Hola mi consulta con el sistema es la siguiente: ¿como puedo hacer que el sistema no calcule el stop loss y el stop profit en cada vela? es decir lo que quiero es que el sistema fije el stop loss en el momento de la compra y lo deje fijo a ese precio hasta que salte.

    Y una proposición de respuesta:
    Defparam cumulateorders = false
    
    n = 1
    
    HAUT = highest[6](high)
    BAS = lowest[6](low)
    amplitude = haut - bas
    buy n shares at BAS limit
    sellshort n shares at HAUT limit
    
    set stop loss amplitude/2
    set target profit amplitude/2
    
    
            
            
        
Viewing 1 post (of 1 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

como hacer que el sistema no calcule el stop loss y el stop profit en cada vela


ProOrder: Trading Automático y Backtesting

New Reply
Author
author-avatar
RafaelN @rafaeln Moderator
Summary

This topic contains 1 voice and has 0 replies.

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