Datum im Format yyyy-mm-dd anzeigen?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #237435 quote
    kkgfinkkgfin
    Participant
    New

    Guten Tag,

    Gibt es eine Möglichkeit, ein Datum (YYYYMMDD) im Format “YYYY-MM-DD” in einer DRAWTEXT-Anweisung auszugeben?

    Aktuell liefert  DRAWTEXT(“Vortagesdatum #PrevDate#”, …..)  die Ausgabe “Vortagesdatum 20,2M”

    Hinweis:  PrevDate wird vorgängig im Programm ermittelt. Entspricht dem “date” der 9-Uhr Kerze des Vortages im 5-Minutes Chart.

    Im “Programming Guide” Pdf konnte ich keine Informationen zu meiner Frage finden.

    Beste Grüsse

    Karlheinz

    #237444 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Datumsangaben werden als Zahlen behandelt, sodass alle führenden Nullen entfernt werden und große Zahlen als Millionen abgekürzt werden.
    Das Datum muss durch separates Drucken seiner Bestandteile aufgeschlüsselt werden:

    DEFPARAM DrawOnLastBarOnly = true
    YY = OpenYear
    MM = OpenMonth
    DD = OpenDay
    Drawtext("#YY#-#MM#-#DD#",BarIndex + 5,high,dialog,bold,13)
    return
    Iván González thanked this post
    #237446 quote
    kkgfinkkgfin
    Participant
    New

    Danke Roberto,

    Schade, dass PRT bezüglich der Datumsformatierung nicht mehr hergibt.

    Schöne Grüsse

    Karlheinz

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

Datum im Format yyyy-mm-dd anzeigen?


ProBuilder: Indikatoren & Custom Tools

New Reply
Author
author-avatar
kkgfin @kkgfin Participant
Summary

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

Topic Details
Forum: ProBuilder: Indikatoren & Custom Tools
Language: German
Started: 09/10/2024
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...