Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Wingdings

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

    Wingdings

    can I draw text using private SimpleFont stpFont = new Gui.Tools.SimpleFont("Wingdings", 20);

    Draw.Text(this, stopID, false, "l", i, y, 0, this.longBrush, stpFont, TextAlignment.Center, this.longBrush, this.outlineBrush, 50);

    but without the border i.e. just a dot?

    Click image for larger version

Name:	2022-11-02 13_10_40-Window.png
Views:	93
Size:	283 Bytes
ID:	1221878

    #2
    Hello dibDab,

    Thank you for writing in.

    The method overload you are using requires a Brush outlineBrush - this may be set to Brushes.Transparent if you would like the outline/border to be invisible. This would remove the border around the dot. For more information, please see the help guide section for Draw.Text here:


    Another option would be to use the Draw.Dot draw method rather than Draw.Text, although that would be up to your preference. Here is the Draw.Dot help guide page:


    Please let us know if we may be of further assistance.
    Emily C.NinjaTrader Customer Service

    Comment


      #3
      what's the best way to get smaller dots?

      Comment


        #4
        You can add the ChartMarkersPlus tools to your NinjaTrader. This will provide a duplicate set of chart markers (square triangle, arrow, dot, etc.) that provide the ability to resize them up or down an to turn off the outline.

        These are duplicate chart markers to what comes with the platform except you can change the size of them. The existing chart markers will remain as well. This will allow you to create custom sized chart markers that you can create and save as default so that you can draw the markers as needed to […]

        Comment


          #5
          Hello dibDab,

          Thank you for your reply.

          As noted in the help guide, "The size of the dot is tied to the chart's BarWidth and thus will scale automatically as the chart is resized." If you are looking to have a smaller dot, you could try out Tasker-182's suggestion of using the ChartMarkersPlus.

          In the description on the download page, it says "To access the NS methods, please use for example DrawPlus.Dotp(... DrawPlus.ArrowUpp(. the intelliprompt will reveal the complete method overload signature available which are almost the same as the standard chart markers except for the DrawobjectSize and OutlineBrush."

          These overloads allow a value for DrawobjectSize and might be able to fit your needs.

          Note — To import NinjaScripts you will need the original .zip file.

          To Import:
          1. Download the NinjaScripts to your desktop, keep them in the compressed .zip file.
          2. From the Control Center window select the menu Tools > Import > NinjaScript Add-on...
          3. Select the downloaded .zip file
          4. NinjaTrader will then confirm if the import has been successful.

          Critical - Specifically for some NinjaScripts, it will prompt that you are running newer versions of @SMA, @EMA, etc. and ask if you want to replace, press 'No'

          Once installed, you may add the indicator to a chart by:
          • Right-click your chart > Indicators... > Select the Indicator from the 'Available' list on the left > Add > OK

          Here is a short video demonstration of the import process:
          Please let me know if I can be of further assistance.

          The NinjaTrader Ecosystem website is for educational and informational purposes only and should not be considered a solicitation to buy or sell a futures contract or make any other type of investment decision. The add-ons listed on this website are not to be considered a recommendation and it is the reader's responsibility to evaluate any product, service, or company. NinjaTrader Ecosystem LLC is not responsible for the accuracy or content of any product, service or company linked to on this website.
          Emily C.NinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Tim-c, Today, 03:54 AM
          0 responses
          3 views
          0 likes
          Last Post Tim-c
          by Tim-c
           
          Started by FrancisMorro, Today, 03:24 AM
          0 responses
          2 views
          0 likes
          Last Post FrancisMorro  
          Started by Segwin, 05-07-2018, 02:15 PM
          10 responses
          1,771 views
          0 likes
          Last Post Leafcutter  
          Started by Rapine Heihei, 04-23-2024, 07:51 PM
          2 responses
          31 views
          0 likes
          Last Post Max238
          by Max238
           
          Started by Shansen, 08-30-2019, 10:18 PM
          24 responses
          945 views
          0 likes
          Last Post spwizard  
          Working...
          X