TS intraday e posizione non chiuse

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #148306 quote
    LittefridoLittefrido
    Participant
    Master

    Buongiorno a tutti, ho un quesito da sottoporvi che mi sta facendo arrovellare il cervello. Ma andiamo al sodo.

    Nel TS intraday per chiudere le posizioni alla sera uso l’accoppiata di 2 codici che però ho notato che non sono sufficienti,

    Defparam flatafter = 223000
    
    IF time >= 223000 AND OnMarket THEN //223000
    SELL AT MARKET //chiudere i LONG, se aperti
    EXITSHORT AT MARKET //chiudere gli SHORT, se aperti
    ENDIF

    Allego immagine lista posizioni chiuse per farvi capire meglio.

    Spero in un vostro aiuto prezioso.

    Schermata-2020-10-24-alle-09.35.14.png Schermata-2020-10-24-alle-09.35.14.png
    #148309 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Per favore precisa, circa quella foto, su quale TF e su quuale strumento finanziario stai lavorando.

    #148327 quote
    LittefridoLittefrido
    Participant
    Master

    E’ sul DAX mini 5mn, comunque  non è importante strumento o TF, succede spesso.

    #148354 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Pensavo tu usassi un TF la cui candela non chiude alle 223000.

    In realtà basterebbe la sola riga 1, le altre sono un duplicato.

    Prova a togliere la riga 1, e togli le altre (e viceversa).

    #148505 quote
    LittefridoLittefrido
    Participant
    Master

    Roberto ho provato a fare come dici tù ma dà lo stesso risultato.

    #148506 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Non so che dirti, a me non è mai successo.

    Per potere fare una verifica dovresti postare il codice.

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

TS intraday e posizione non chiuse


ProOrder: Trading Automatico & Backtesting

New Reply
Author
author-avatar
Littefrido @littefrido Participant
Summary

This topic contains 5 replies,
has 2 voices, and was last updated by robertogozzirobertogozzi
5 years, 11 months ago.

Topic Details
Forum: ProOrder: Trading Automatico & Backtesting
Language: Italian
Started: 10/24/2020
Status: Active
Attachments: 1 files
ProRealCode ProRealCode
Loading...