line zu lang wie kann mann die kurzen

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

    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

    F9A7B4A0-E3C7-4CBF-928B-AF5554A0921B.png F9A7B4A0-E3C7-4CBF-928B-AF5554A0921B.png
    #246439 quote
    robertogozzirobertogozzi
    Moderator
    Legend

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

line zu lang wie kann mann die kurzen


ProBuilder: Indikatoren & Custom Tools

New Reply
Author
author-avatar
elviko @elviko Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by robertogozzirobertogozzi
1 year, 4 months ago.

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