Anzeige des Wochentags

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

    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
    NicolasNicolas
    Keymaster
    Legend

    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
    williwilli
    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.
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 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 williwilli
5 years, 6 months ago.

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