• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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 akuntysh, Today, 02:43 AM
      0 responses
      4 views
      0 likes
      Last Post akuntysh  
      Started by thgamey, Today, 02:05 AM
      0 responses
      6 views
      0 likes
      Last Post thgamey
      by thgamey
       
      Started by tpdk2012, Today, 12:51 AM
      1 response
      11 views
      0 likes
      Last Post NinjaTrader_ChrisSch  
      Started by simonerg, Today, 12:13 AM
      0 responses
      7 views
      0 likes
      Last Post simonerg  
      Started by rickyblah12, 07-20-2019, 01:01 PM
      2 responses
      24 views
      0 likes
      Last Post NinjaTrader_ChrisSch  
      Working...
      X