Anzeige des Wochentags

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #163101 quote
    willi
    Participant
    Master

    Guten Tag,

    ich möchte in einem Indikator, wo sich zwei Averages kreuzen,  mit “DRAWARROWUP” dieses anzeigen lassen. Das ist kein Problem.

    Gleichzeitig möchte ich unterhalb der Pfeile den Wochentag angezeigt bekommen, möglichst als Zahl  oder nur mit den ersten beiden Buchstaben.

    Wie kann ich dieses Problem lösen?

     

    Danke willi

    #163108 quote
    robertogozzi
    Moderator
    Master

    OpenDayOfweek oder DayOfWeek geben Werte von 0 (Sonntag) bis 5 (Freitag) zurück. Mit DRAWTEXT können Sie dies tun (Sie müssen jedoch eine Variable verwenden, nicht OpenDayOfWeek direkt mit DRAWTEXT):

    Sma = average[100,0](close)
    if close crosses over Sma then
       drawarrowup(barindex,low - range) coloured(0,128,0,200)
       x = OpenDayOfWeek
       drawtext("#x#",barindex,low-range*3) coloured(0,0,255,255)
    endif
    return
    willi thanked this post
    #163110 quote
    Nicolas
    Keymaster
    Master

    Sie können den Wochentag mit einer Variablen in DRAWTEXT auf dem Bildschirm drucken:

    d = dayofweek
    drawtext("#d#",barindex,0)
    willi thanked this post
    #163114 quote
    willi
    Participant
    Master

    Ach, es ist so einfach!

    Vielen Dank!!

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

Anzeige des Wochentags


ProBuilder: Indikatoren & Custom Tools

New Reply
Author
author-avatar
willi @willi Participant
Summary

This topic contains 3 replies,
has 3 voices, and was last updated by willi
5 years ago.

Topic Details
Forum: ProBuilder: Indikatoren & Custom Tools
Language: German
Started: 03/04/2021
Status: Active
Attachments: No files
Logo Logo
Loading...