Diferente comportamiento Onmarket

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #145621 quote
    kikkefpkikkefp
    Participant
    Average

    Se trata de un sistema de 5 minutos que utiliza un filtro de 1hora…en ese TF 1h updateclose chequeo si estoy o no en el mercado por medio de onmarket, con un BT de 200k, mi sorpresa es que se comporta de manera diferente, (lo hace justamente al revés) antes o después de una fecha determinada, en este caso a partir de 7/07/2019. El indice es el Nasdaq 100 suministrado por IG Markets

    Este es el código

    timeframe(1h,updateonclose)
    // -- 0. Variables
    //Calculo vela horario
    cierrehorario=close
    //graph onmarket
    //graph onmarket[1]=0
    if onmarket[1]=0 and onmarket then
    if not encomprah then
    encomprah=encomprah+1
    minvelah=low
    //maxvelah=high
    //tradecounterh=tradercounterh+1
    endif
    else
    if encomprah then
    encomprah=0
    endif
    minvelah=0
    //maxvelah=0
    //tradercounterh=0
    endif
    if minvelah>0 then
    
    graphonprice minvelah
    endif

    Pongo gráfico en donde se ve 2 gráficos antes y después de esa fecha, se puede apreciar que en las variables del ProBasckest en el primer gráfico se activan cuando cumple la condición y se desactiva a partir de la fecha de 07/07/19, en el segundo gráfico es justamente al revés, cuando hago el BT a partir de 07/julio…alguien me puede indicar la razón

    comportamineto-diferente-en-Nasdaq-a-partir-072019-1.pdf
    #145642 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Para comprobarlo, también debe tener el código completo para reproducir las mismas operaciones que usted.

    #145660 quote
    kikkefpkikkefp
    Participant
    Average

    Gracias, en principio lo he solucionado quitando el onmarket[1] que no actualiza en horario, no se muy bien porqué..

    #145663 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Las actualizaciones de las variables en el TF a 1 hora se realizan solo cada hora porque tienes UPDATEONCLOSE, si quieres actualizar cada 5 minutos (o cualquier otro marco de tiempo que elijas como principal) debes indicar DEFAULT (o nada).

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

Diferente comportamiento Onmarket


ProOrder: Trading Automático y Backtesting

New Reply
Author
author-avatar
kikkefp @kikkefp Participant
Summary

This topic contains 3 replies,
has 2 voices, and was last updated by robertogozzirobertogozzi
6 years ago.

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