Linie am close

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

    Hallo,

    Kann mir bitte jemand einen Indikator programmieren, der mir eine Linie auf den close der Kerze um 15:47 Uhr im 1 minuten chart macht. Die Linie soll jeden Mittwoch zu sehen sein…

     

    Vielen Dank

    #206807 quote
    axmichi
    Participant
    Senior

    Hier mal der Code für die Linie die auf dem Close 20 Uhr liegt.

    DEFPARAM DrawOnLastBarOnly = true
    
    
    IF time = 200000   THEN
    Massimo = close
    Minimo  = close - 1
    ENDIF
    DRAWHLINE(Massimo) COLOURED(250,255,0,255)style(line,2)
    DRAWHLINE(Minimo) COLOURED(0,255,0,255)style(line,2)
    RETURN

     

     

     

    Kann man die Linie auch so machen, das sie erst 20 Uhr beginnt und ende des Tages endet?

    Siehe Foto

     

    Danke

    #206815 quote
    robertogozzi
    Moderator
    Master

    Zuerst:

    DEFPARAM DrawOnLastBarOnly = true
    IF (time = 154700) AND (DayOfWeek = 3) THEN
       MyPrice = close
    ENDIF
    DRAWHLINE(MyPrice) COLOURED(0,255,0,255)style(line,2)
    RETURN

    Zweite:

    DEFPARAM DrawOnLastBarOnly = true
    IF time = 200000   THEN
       Massimo = close
       Minimo  = close - 1
    ENDIF
    IF Time >= 200000 AND Time < 240000 THEN
       DRAWHLINE(Massimo) COLOURED(250,255,0,255)style(line,2)
       DRAWHLINE(Minimo) COLOURED(0,255,0,255)style(line,2)
    ENDIF
    RETURN
    #206826 quote
    axmichi
    Participant
    Senior

    Hallo Roberto, danke!!

     

    die Linien gehen durchgehend leider  über mehrere Tage? Ich wollte es ja so haben, das die Linie erst um 20 Uhr beginnt??

    #206848 quote
    robertogozzi
    Moderator
    Master

    Zweite:

    DEFPARAM DrawOnLastBarOnly = true
    IF time = 200000 THEN
       Massimo = close
       Minimo  = close - 20*pipsize
       myBAR   = BarIndex
    ENDIF
    IF Time >= 200000 AND Time < 240000 THEN
       DrawSegment(myBAR,Massimo,BarIndex,Massimo) COLOURED(250,255,0,255)style(line,2)
       DrawSegment(myBAR,Minimo, BarIndex,Minimo)  COLOURED(0,255,0,255)  style(line,2)
    ENDIF
    RETURN
Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.

Linie am close


ProBuilder Support

New Reply
Author
author-avatar
axmichi @axmichi Participant
Summary

This topic contains 4 replies,
has 2 voices, and was last updated by robertogozzi
3 years ago.

Topic Details
Forum: ProBuilder Support
Language: German
Started: 01/04/2023
Status: Active
Attachments: 1 files
Logo Logo
Loading...