line zu lang wie kann mann die kurzen

Forums ProRealTime Deutsch forum ProBuilder Support line zu lang wie kann mann die kurzen

Viewing 2 posts - 1 through 2 (of 2 total)
  • #246425

    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

    Ersetzen Sie DRAWRAY durch DRAWSEGMENT:

     

Viewing 2 posts - 1 through 2 (of 2 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login