line zu lang wie kann mann die kurzen

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #246425 quote
    elviko
    Participant
    New

    Wie kriege ich das hin, dass die Linien nicht durchgezogen sind. Länger können die gerne sein, aber nicht komplett in einem durch.

    // Variablen
    a = Average[21](close)
    b = Average[55](close)

    once lastResultBar = 0
    once lastResultPrice = 0.0

    result = 0

    // Wenn A CROSSES OVER B
    IF (a CROSSES OVER b) THEN
    result = 1
    ELSE
    result = 0
    ENDIF

    // Wenn result 1 ist, dann Linie zeichnen
    IF (result = 1 AND lastResultBar <> 0) THEN
    // Linie von dem letzten result = 1 bis zum aktuellen
    DRAWRAY (lastResultBar, lastResultPrice, barindex, close)
    ENDIF

    // Wenn result 1 ist, speichere den aktuellen Wert für das nächste Mal
    IF (result = 1) THEN
    lastResultBar = barindex
    lastResultPrice = close
    ENDIF
    return result

    #246439 quote
    robertogozzi
    Moderator
    Master

    Ersetzen Sie DRAWRAY durch DRAWSEGMENT:

    DRAWSEGMENT (lastResultBar, lastResultPrice, barindex, close)
    Iván González thanked this post
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

line zu lang wie kann mann die kurzen


ProBuilder Support

New Reply
Author
author-avatar
elviko @elviko Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by robertogozzi
9 months, 1 week ago.

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