Linie am close

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #206803 quote
    axmichiaxmichi
    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
    axmichiaxmichi
    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

    Linie-Chart.jpg Linie-Chart.jpg
    #206815 quote
    robertogozzirobertogozzi
    Moderator
    Legend

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

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

Linie am close


ProBuilder: Indikatoren & Custom Tools

New Reply
Author
author-avatar
axmichi @axmichi Participant
Summary

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

Topic Details
Forum: ProBuilder: Indikatoren & Custom Tools
Language: German
Started: 01/04/2023
Status: Active
Attachments: 1 files
ProRealCode ProRealCode
Loading...