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 TraderBCL, Today, 04:38 AM
      2 responses
      8 views
      0 likes
      Last Post TraderBCL  
      Started by martin70, 03-24-2023, 04:58 AM
      14 responses
      105 views
      0 likes
      Last Post martin70  
      Started by Radano, 06-10-2021, 01:40 AM
      19 responses
      606 views
      0 likes
      Last Post Radano
      by Radano
       
      Started by KenneGaray, Today, 03:48 AM
      0 responses
      4 views
      0 likes
      Last Post KenneGaray  
      Started by thanajo, 05-04-2021, 02:11 AM
      4 responses
      471 views
      0 likes
      Last Post tradingnasdaqprueba  
      Working...
      X