Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Indicator values

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Indicator values

    Hello,

    when I want to use "0,5" in my drawings in my customindicator to plot in a panel there appears - of course - the error message when compiling because of no. of arguments.

    How do one has to code please

    DrawTriangleDown("XXX" + CurrentBar, false, 0, 1, Color.Black);

    for having "0,5" instead of "1".

    And how can I change the size of the Triangle please?

    Thank you.

    Best
    Tony
    Last edited by tonynt; 09-13-2013, 08:50 AM.

    #2
    You will need to use a period for the decimal in order for this to compile:

    DrawTriangleDown("XXX" + CurrentBar, false, 0, 0.5, Color.Black);

    The size of the Triangle cannot be changed. However, you can use DrawText() instead and use the Wingding 3 font family type, which would allow you to use special characters. For example an up triangle would be "p" and a down triangle would be "q"

    DrawText("XXX" + CurrentBar, false, "q", 0, 0.5, 10, Color.Black, new Font("Wingdings 3", 20), StringAlignment.Center, Color.White, Color.White, 1);
    MatthewNinjaTrader Product Management

    Comment


      #3
      Thank you.

      I forgot that you use the "." instead of our "," for numbers.

      And thank you for the explanation for the custom drawing.


      Originally posted by NinjaTrader_Matthew View Post
      You will need to use a period for the decimal in order for this to compile:

      DrawTriangleDown("XXX" + CurrentBar, false, 0, 0.5, Color.Black);

      The size of the Triangle cannot be changed. However, you can use DrawText() instead and use the Wingding 3 font family type, which would allow you to use special characters. For example an up triangle would be "p" and a down triangle would be "q"

      DrawText("XXX" + CurrentBar, false, "q", 0, 0.5, 10, Color.Black, new Font("Wingdings 3", 20), StringAlignment.Center, Color.White, Color.White, 1);

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by usazencort, Today, 01:16 AM
      0 responses
      1 view
      0 likes
      Last Post usazencort  
      Started by kaywai, 09-01-2023, 08:44 PM
      5 responses
      603 views
      0 likes
      Last Post NinjaTrader_Jason  
      Started by xiinteractive, 04-09-2024, 08:08 AM
      6 responses
      22 views
      0 likes
      Last Post xiinteractive  
      Started by Pattontje, Yesterday, 02:10 PM
      2 responses
      21 views
      0 likes
      Last Post Pattontje  
      Started by flybuzz, 04-21-2024, 04:07 PM
      17 responses
      230 views
      0 likes
      Last Post TradingLoss  
      Working...
      X