3. Montag im Jahr

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #242843 quote
    axmichi
    Participant
    Senior

    Hallo,

     

    ist es möglich den Dienstag nach dem 3. Montag im Januar jeden Jahres im Tageschart und Stundenchart  gelb zu markieren??

     

    Vielen Dank

    #242846 quote
    Iván González
    Moderator
    Master

    Hier sind sie:

    if openyear<>openyear[1] then
    count=0 
    else
    if opendayofweek<opendayofweek[1] then
    count=count+1 
    endif
    endif
    
    if count=3 and opendayofweek=2 then
    drawcandle(open,high,low,close)coloured("yellow")
    endif
    
    
    return
    #242876 quote
    robertogozzi
    Moderator
    Master

    Da ist er:

    ONCE TF         = gettimeframe
    ONCE dailyTF    = (TF = 86400)
    ONCE hourlyTF   = (TF = 3600)
    ONCE Change     = 0
    ONCE Mondays    = 0
    ONCE ItsTuesday = 0
    ONCE Flag       = 0
    //
    //BackGroundColor("White",255)
    //
    IF (OpenMonth > 1) THEN
    Change     = 0
    Mondays    = 0
    ItsTuesday = 0
    Flag       = 0
    ENDIF
    //
    IF (OpenYear <> OpenYear[1]) THEN
    Change     = 1
    Mondays    = 0
    ItsTuesday = 0
    Flag       = 0
    ENDIF
    //
    IF OpenDayOFWeek[1] > 1 THEN
    Flag = 0
    ENDIF
    //
    IF ((OpenDayOfWeek = 1) OR ((OpenDayOfWeek > 1) AND ((OpenDayOfWeek[1] > OpenDayOfWeek)  OR (OpenDayOfWeek[1] = 5))))  AND (OpenDayOfWeek <> OpenDayOfWeek[1]) AND (dailyTF OR (hourlyTF AND (Flag = 0))) THEN
    MonDays    = MonDays + 1
    Flag       = 1
    IF (ItsTuesday = 0) AND Mondays = 3 THEN
    ItsTuesday = 1
    DoW = OpenDayOfWeek
    ENDIF
    ENDIF
    //
    IF Change AND ItsTuesday AND (OpenDayOfWeek <> DoW) THEN
    BackGroundColor("Yellow",50)
    ENDIF
    //
    IF (DailyTF AND ItsTuesday[1]) OR (hourlyTF AND ItsTuesday[1] AND (OpenDayOfWeek > (DoW+1)) AND (OpenDayOfWeek <> OpenDayOfWeek[1])) THEN
    Change     = 0
    Mondays    = 0
    ItsTuesday = 0
    ENDIF
    //
    RETURN
    #242922 quote
    axmichi
    Participant
    Senior

    Wunderbar, ich danke Ihnen

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

3. Montag im Jahr


ProBuilder Support

New Reply
Author
author-avatar
axmichi @axmichi Participant
Summary

This topic contains 3 replies,
has 3 voices, and was last updated by axmichi
1 year ago.

Topic Details
Forum: ProBuilder Support
Language: German
Started: 01/20/2025
Status: Active
Attachments: No files
Logo Logo
Loading...