Kerzenhöhe anzeigen

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #85403 quote
    Marius
    Participant
    Average

    Hallo,

    ich nutze einen kleinen Indikator, der mir die Höhe der Kerzen zeigt.

    In der aktuellen Version zeigt er mir aber eine Nachkommastelle. Wie muss der Code aussehen, damit z.B. 8,6 auf 9 oder 15,4 auf 15 ab/aufgerundet wird?

     

    CandleHight=high-low
    drawtext(“#CandleHight#”,barindex,1.0003*high,Dialog,Standard,12)
    Return

    Unbenannt.png Unbenannt.png
    #85406 quote
    Marius
    Participant
    Average

    Danke, hat sich schon erledigt-

    Wer es nutzen will:

     

    CandleHight=round(high-low)
    drawtext(“#CandleHight#”,barindex,1.0003*high,Dialog,Standard,12)
    Return

    #85420 quote
    Nicolas
    Keymaster
    Master

    Die Round wird immer auf die nächst höhere Zahl gerundet. Wenn Sie auf eine niedrigere Zahl runden möchten, können Sie diesen Code-Ausschnitt verwenden:
    (Danke an Roberto).

    https://www.prorealcode.com/topic/round-downup/#post-41415

    https://www.prorealcode.com/topic/limitations-de-prorealtime/#post-34925

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

Kerzenhöhe anzeigen


ProBuilder: Indikatoren & Custom Tools

New Reply
Author
author-avatar
Marius @marius Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by Nicolas
7 years, 3 months ago.

Topic Details
Forum: ProBuilder: Indikatoren & Custom Tools
Language: German
Started: 11/21/2018
Status: Active
Attachments: 1 files
Logo Logo
Loading...