3. Montag im Jahr

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #242843 quote
    axmichiaxmichi
    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álezIván González
    Moderator
    Legend

    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
    robertogozzirobertogozzi
    Moderator
    Legend

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

3. Montag im Jahr


ProBuilder: Indikatoren & Custom Tools

New Reply
Author
author-avatar
axmichi @axmichi Participant
Summary

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

Topic Details
Forum: ProBuilder: Indikatoren & Custom Tools
Language: German
Started: 01/20/2025
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...