Salida de operacion con el mínimo de las ultimas “n” barras

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #141145 quote
    drafm0drafm0
    Participant
    New

    Buenos días

    no se si alguien me puede ayudar , necesito que mi sistema me salga de la operación con el mínimo de las ultimas “n” barras

    tengo echo esto y me parece que no lo hace bien

    // Condiciones de salida de posiciones largas
    n = 100
    c6 = (close < close[n])
    
    IF c6 THEN
    SELL AT MARKET
    ENDIF

    Muchísimas gracias por todo

    #141147 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Reemplace la línea 3 con:

    c6 = (close <= lowest[n](low[1]))
    #141371 quote
    drafm0drafm0
    Participant
    New

    hola robertogozzi

    he estado mirando las salidas del sistema y veo que no lo hace , he probado muchas combinaciones y nada

    no se si ves la imagen que he puesto

    muchas gracias por la atencion

    Captura-de-pantalla-92.png Captura-de-pantalla-92.png
    #141376 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Agrega esta línea al final de tu código:

    GraphOnPrice lowest[n](low[1]) coloured(255,0,0,255) AS "Salida"

    y podrás ver en el gráfico el valor que tiene vela por vela.

    x-4.jpg x-4.jpg
    #141608 quote
    drafm0drafm0
    Participant
    New

    muchísimas gracias por la ayuda robertogozzi

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

Salida de operacion con el mínimo de las ultimas “n” barras


ProOrder: Trading Automático y Backtesting

New Reply
Author
author-avatar
drafm0 @drafm0 Participant
Summary

This topic contains 4 replies,
has 2 voices, and was last updated by drafm0drafm0
6 years, 1 month ago.

Topic Details
Forum: ProOrder: Trading Automático y Backtesting
Language: Spanish
Started: 08/08/2020
Status: Active
Attachments: 2 files
ProRealCode ProRealCode
Loading...