Anzeige/Programmierung der YTD-Linie

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

    Hallo zusammen,

    ich würde gerne eine dicke horizontale Line anzeigen lassen mit dem
    Schlusskurs vom letzten Handelstag des Vorjahres bis zum letzten Handelstag des aktuellen Jahres.

    Also z.B. Schlusskurs 29.12.2023 bis 31.12.2024.

    Ist das möglich?
    Könnte mir das bitte jemand programmieren? Ich bekomme es selbst nicht hin…

    Herzlichen Dank und viele Grüße

    #241893 quote
    robertogozzi
    Moderator
    Master

    Da ist er:

    DEFPARAM DrawOnLastBarOnly = true
    ONCE AnnoPassato  = close
    ONCE AnnoCorrente = close
    IF OpenYear <> OpenYear[1] THEN
       AnnoPassato = AnnoCorrente
    ENDIF
    AnnoCorrente = close
    DrawText("------------------ Passato  #AnnoPassato#" ,BarIndex + 5,AnnoPassato ,Dialog,Bold,15) coloured("Red")
    DrawText("------------------ Corrente #AnnoCorrente#",BarIndex + 5,AnnoCorrente,Dialog,Bold,15) coloured("Blue")
    RETURN
    Iván González thanked this post
    #241905 quote
    martyherrm
    Participant
    New

    Das ging schnell.

    Herzlichen DANK!

    robertogozzi thanked this post
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

Anzeige/Programmierung der YTD-Linie


ProBuilder Support

New Reply
Author
author-avatar
martyherrm @martyherrm Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by martyherrm
1 year, 1 month ago.

Topic Details
Forum: ProBuilder Support
Language: German
Started: 12/29/2024
Status: Active
Attachments: No files
Logo Logo
Loading...