Anzeige/Programmierung der YTD-Linie

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #241884 quote
    martyherrmmartyherrm
    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
    robertogozzirobertogozzi
    Moderator
    Legend

    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
    martyherrmmartyherrm
    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.
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

Anzeige/Programmierung der YTD-Linie


ProBuilder: Indikatoren & Custom Tools

New Reply
Author
author-avatar
martyherrm @martyherrm Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by martyherrmmartyherrm
1 year, 8 months ago.

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