Linie im Chart Zeichnen lassen

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #39344 quote
    Razz
    Participant
    Master

    Guten Morgen

    Ich möchte im Chart Linien Zeichnen lassen , zb H1,H2,H3 usw.  den Wert der Linie trage Ich ein es soll dann nur auf diesem Level gezeichnet werden , und  in  zb. in Farbe blau und mit Beschriftung  zb. H1 wie bekomme Ich das hin ?

    Im vorraus schonmal Danke für die Hilfe .

     

    Gruß Peter

    #39355 quote
    Nicolas
    Keymaster
    Master

    Möchten Sie ein Etikett zu einer Linie selbst oder automatisch hinzufügen? Du musst es selbst hinzufügen, wenn du willst, dass es der Zeitrahmen ist, wie in meinem Screenshot angebracht. Aber ich habe Ihre Frage falsch verstanden?

    label-on-line.png label-on-line.png
    #39411 quote
    Razz
    Participant
    Master

    Hallo Nicolas

    Danke für Deine Antwort ,es sollte so aussehen wie im Anhang .

    Das ist aber alles von Hand erstellt und ändert sich Tag für Tag , deshalb wollte Ich das ganze automatisieren

    und in dem Indikator nur noch die Werte für den Tag eintragen und dann zeichnet er das im Chart ein .

    Farbe und Dicke der Linie sollten einstellbar sein .

     

    Viele Grüße Peter

    Beschriftung.jpg Beschriftung.jpg
    #39429 quote
    Razz
    Participant
    Master

    Hallo Nicolas

    Die Linien hab Ich jetzt , wenn Ich nun noch die Beschriftung rechts automatisch anzeigen könnte wäre das super .

    Gruß Peter

    Beschriftung-2.jpg Beschriftung-2.jpg
    #39432 quote
    Razz
    Participant
    Master

    Hier der Chart

    Beschriftung-1.jpg Beschriftung-1.jpg
    #39459 quote
    Nicolas
    Keymaster
    Master

    Bitte teilen Sie den Code Ihres Indikators, damit ich versuchen würde, den gewünschten Text zu implementieren. Vielen Dank.

    #39461 quote
    Razz
    Participant
    Master

    Hallo Nicolas

     

    Vielen Dank für Ihre Hilfe !

    Es reicht wenn Sie es an einer Linie Zeigen .

     

    Gruß Peter

    Linien-Dax.itf
    #39714 quote
    Razz
    Participant
    Master

    Hallo Nicolas

     

    Haben Sie schon eine Lösung gefunden , bei der Pivot Anzeige funktioniert das ja auch ?

     

    Im voraus schon mal Danke

    #40192 quote
    Nicolas
    Keymaster
    Master

    Dies ist ein kurzes Beispiel dafür, wie Sie Text auf Diagramm mit Ihrem Indikator zeichnen sollten. Natürlich musst du die anderen Texte alleine hinzufügen, aber das ist nur ein Kopier- / Paste-Job für dich 🙂 Viel Glück.

    defparam drawonlastbaronly=true
    
    IF TIME>= 008000 AND TIME<= 163500 THEN
    CloseVortag=12417
    LongBW3Tag=12595
    LongBW5Tag=12749
    LongBW8Tag=12972
    ShortBW3Tag=12240
    ShortBW5Tag=12083
    ShortBW8Tag=11861
    
    LongBW3Woche=12878
    LongBW5Woche=12862
    LongBW8Woche=13005
    ShortBW3Woche=12589
    ShortBW5Woche=12459
    ShortBW8Woche=12276
    
    LongBW3Monat=12831
    LongBW5Monat=13023
    LongBW8Monat=13296
    ShortBW3Monat=12400
    ShortBW5Monat=12207
    ShortBW8Monat=11934
    endif
    
    drawtext("LongBW3Tag (#LongBW3Tag#)",barindex,LongBW3Tag) coloured(0,255,0)
    
    Return LongBW3Tag  Coloured (0,255,0) As "LongBW3Tag",LongBW5Tag Coloured (0,255,0)As "LongBW5Tag",LongBW8Tag Coloured (0,255,0)As "LongBW8Tag",ShortBW3Tag Coloured (255,0,0)As "ShortBW3Tag",ShortBW5Tag Coloured (255,0,0)As "ShortBW5Tag",ShortBW8Tag Coloured (255,0,0)As "ShortBW8Tag",LongBW3Woche  Coloured (0,255,0) As "LongBW3Woche",LongBW5Woche Coloured (0,255,0)As "LongBW5Woche",LongBW8Woche Coloured (0,255,0)As "LongBW8Woche",ShortBW3Woche Coloured (255,0,0)As "ShortBW3Woche",ShortBW5Woche Coloured (255,0,0)As "ShortBW5Woche",ShortBW8Woche Coloured (255,0,0)As "ShortBW8Woche",LongBW3Monat  Coloured (0,255,0) As "LongBW3Monat",LongBW5Monat  Coloured (0,255,0) As "LongBW5Monat",LongBW8Monat  Coloured (0,255,0) As "LongBW8Monat",ShortBW3Monat Coloured (255,0,0)As "ShortBW3Monat",ShortBW5Monat Coloured (255,0,0)As "ShortBW5Monat",ShortBW8Monat Coloured (255,0,0)As "ShortBW8Monat",CloseVortag Coloured (0,255,255)As "CloseVortag"
    
    JohnScher thanked this post
    draw-text-on-chart.png draw-text-on-chart.png
Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.

Linie im Chart Zeichnen lassen


ProBuilder: Indikatoren & Custom Tools

New Reply
Author
author-avatar
Razz @razz Participant
Summary

This topic contains 8 replies,
has 2 voices, and was last updated by Nicolas
8 years, 7 months ago.

Topic Details
Forum: ProBuilder: Indikatoren & Custom Tools
Language: German
Started: 06/29/2017
Status: Active
Attachments: 6 files
Logo Logo
Loading...