• 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 cirzonorkecv, Yesterday, 11:52 PM
      0 responses
      6 views
      0 likes
      Last Post cirzonorkecv  
      Started by rickyblah12, Yesterday, 01:01 PM
      1 response
      14 views
      0 likes
      Last Post Erwin Beckers  
      Started by dadarara, Yesterday, 12:18 PM
      0 responses
      8 views
      0 likes
      Last Post dadarara  
      Started by joemiller, Yesterday, 07:33 AM
      2 responses
      13 views
      0 likes
      Last Post joemiller  
      Started by TheGameOfProbabilities, 07-18-2019, 06:56 AM
      7 responses
      38 views
      0 likes
      Last Post DaveS
      by DaveS
       
      Working...
      X