Pfeil im Chart

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #184050 quote
    axmichi
    Participant
    Senior
    fast = close > high[1]
    slow = close > high [2]
     
    if fast and slow then
    
    DRAWARROW(barindex-1, slow[1]) COLOURED(0,100,255,255)
    endif
    Return
    

    Hallo,

    ich möchte gern das ein Pfeil im chart erscheint wenn c1 und c2 erfüllt sind

    was ist falsch im code

    Kann jemand helfen

    #184052 quote
    GraHal
    Participant
    Master

    Versuche dies …

    fast = close > high[1]
    slow = close > high [2]
     
    if fast and slow then
    Mybar = barindex
     
    DRAWARROWDOWN(mybar,high+10) COLOURED(0,100,255,255)
    endif
    Return
    
    #184082 quote
    axmichi
    Participant
    Senior

    Wow danke!!

    ist es möglich den Pfeil etwas größer zu machen und dem Hoch der Kerze eine Linie hinzu zu fügen??

    Wie im Bild

     

    Das wäre toll, danke

    Linie.jpg Linie.jpg
    #184087 quote
    GraHal
    Participant
    Master

    Möchten Sie eine Linie nur auf dem letzten Balken oder auf allen Vorkommen des Pfeils?

    #184091 quote
    axmichi
    Participant
    Senior

    nur letzer Balken, wie im Bild wenn möglich

    #184104 quote
    GraHal
    Participant
    Master

    Um dorthin zu gelangen, müssen Sie nur herausfinden, wie Sie die Linie nur im letzten Balken erhalten, während noch Pfeile auf allen Balken vorhanden sind?

    Kann noch jemand mitmachen, wenn Sie wollen?

    fast = close > high[1]
    slow = close > high [2]
     
    if fast and slow then
    Mybar = barindex
    DRAWARROWDOWN(mybar,high+10) COLOURED(0,100,255,255)
    DRAWSEGMENT(Mybar,high,Mybar +10,high) COLOURED(0,100,255,255)
    endif
    
    Return
    #184111 quote
    axmichi
    Participant
    Senior

    ja gern!!

    #184115 quote
    robertogozzi
    Moderator
    Master

    Vielleicht ist das in Ordnung (habe ich noch nicht probiert):

    DEFPARAM DrawOnLastBarOnly = true
    fast = close > high[1]
    slow = close > high[2]
     
    if fast and slow then
       Mybar = barindex
    endif
    
    DRAWARROWDOWN(mybar,high+10) COLOURED(0,100,255,255)
    DRAWSEGMENT(Mybar,high,Mybar +10,high) COLOURED(0,100,255,255)
     
    Return
    #184117 quote
    robertogozzi
    Moderator
    Master

    Das ist besser:

    DEFPARAM DrawOnLastBarOnly = true
    fast = close > high[1]
    slow = close > high[2]
     
    if fast and slow then
       Mybar  = barindex
       MyHigh = high
    endif
     
    DRAWARROWDOWN(mybar,MyHigh*1.0005) COLOURED(0,100,255,255)
    DRAWSEGMENT(Mybar,MyHigh,BarIndex+10,MyHigh) COLOURED(0,100,255,255)
     
    Return
    GraHal thanked this post
    #184161 quote
    axmichi
    Participant
    Senior

    Hallo,

     

    danke aber ich sehe im chart keine Linie oder pfeil, ich habe den Indikator auch in den Chart gemacht!!

    Was mache ich falsch?

    #184163 quote
    GraHal
    Participant
    Master

    Probieren Sie DJI 5 min TF an und sehen Sie, ob Sie dasselbe wie ich angehängt bekommen (siehe rote Pfeilspitze).

    Arrow.jpg Arrow.jpg
    #184267 quote
    axmichi
    Participant
    Senior

    Danke für die Hilfe, ich hatte wohl einen Kopierfehler.

    Es funktioniert, Danke!!

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

Pfeil im Chart


ProBuilder: Indikatoren & Custom Tools

New Reply
Author
author-avatar
axmichi @axmichi Participant
Summary

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

Topic Details
Forum: ProBuilder: Indikatoren & Custom Tools
Language: German
Started: 12/28/2021
Status: Active
Attachments: 2 files
Logo Logo
Loading...