• 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 pvtrader, Today, 09:51 AM
      2 responses
      8 views
      0 likes
      Last Post NinjaTrader_ChristopherJ  
      Started by hincal, Today, 10:07 AM
      0 responses
      2 views
      0 likes
      Last Post hincal
      by hincal
       
      Started by shawn9876, Today, 09:07 AM
      0 responses
      8 views
      0 likes
      Last Post shawn9876  
      Started by andreslazor7, Today, 08:28 AM
      1 response
      9 views
      0 likes
      Last Post NinjaTrader_Zachary  
      Started by kedrykvander, Today, 08:19 AM
      2 responses
      13 views
      0 likes
      Last Post kedrykvander  
      Working...
      X