Dynamische Linienstaerke in Returncodezeile

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #177716 quote
    Rainer (RFW)Rainer (RFW)
    Participant
    Senior

    Liebe PRTler,
    erneute kurze unqualifizierte Frage.
    Wie kann die Liniendicke in der Returnzeile dynamisch verändert werden. Es scheint aber so auf einfache Weise nicht möglich
    Ansonsten kann ich das ja stets einfach im Code beeinflussen, mir geht es jedoch konkret um die Returncodezeile. Denn logischer Weise ist leider der Return Befehl inerhalb  If/Then…. nicht möglich
    Danke vorab und ein schönes Wochenende.
    Liebe Grüße
    Rainer

    // wünschenwerte Lösung
    LD  = 4
    Return VLine Coloured(VR,VG,VB)Style(Line,LD) AS "VLine", TLine Coloured(51,153,255)Style(Line,LD) AS "TLine"
    
    // Leider logischer Weise nicht möglich 
    If (DisplayMod = 1)  Then
    Return VLine Coloured(VR,VG,VB)Style(Line,1) AS "VLine", TLine Coloured(51,153,255)Style(Line,1) AS "TLine"
    Else
    Return VLine Coloured(VR,VG,VB)Style(Line,4) AS "VLine", TLine Coloured(51,153,255)Style(Line,4) AS "TLine"
    EndIf
    #177719 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Sie können nicht. STYLE unterstützt nur numerische Konstanten, keine Variablen. So wie du es gemacht hast, ist die einzige Lösung.

    Rainer (RFW) 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

Dynamische Linienstaerke in Returncodezeile


ProBuilder: Indikatoren & Custom Tools

New Reply
Author
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by robertogozzirobertogozzi
5 years ago.

Topic Details
Forum: ProBuilder: Indikatoren & Custom Tools
Language: German
Started: 09/16/2021
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...