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

Draw.Dot alternative?

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

    Draw.Dot alternative?

    Morning all. I have used Strategy Builder and then converted to an indicator to build a simple indicator that I like. It works just as it should, and prints a dot above/below the price bar when the parameters are met. However visually, I don't find it appealing. The dot sizes using this method are auto sized to the bar width and natively seem to have a grey outline on them.

    I have looked at some other custom indicators that have selectable size/color for dots and they seem to use SharpDX. I waded into that pool and quickly found that is a little beyond my ability, despite spending hours picking through the code to try and reproduce it.

    Is there any other way to achieve the effect I am looking for? For instance, when you use the native MAX indicator, if I set the plot to DOT, SOLID and WIDTH 1, you get a nice tiny dot on the chart. Any ideas out there?? Thanks! Click image for larger version

Name:	Ninjascript sample.png
Views:	40
Size:	4.5 KB
ID:	1292956
    Attached Files

    #2
    Hello 90bideven,

    Thanks for your post.

    You could consider using ChartMarkersPlus from the NinjaTrader Ecosystem User App Share in your script instead of the default Drawing Tools.

    This script contains added NinjaScript methods that allow you to access the ChartMarkersPlus script to allow you to draw markers or objects such as a dot and change the size and outline color of the drawing object.

    The User App Share page contains a brief explanation about using the NinjaScript methods of ChartMarkersPlus to draw an object and specify its DrawobjectSize and OutlineBrush.​

    ChartMarkersPlus: https://ninjatraderecosystem.com/use...rtmarkersplus/

    See this Forum thread for more information: https://forum.ninjatrader.com/forum/...82#post1109882

    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.
    Brandon H.NinjaTrader Customer Service

    Comment


      #3
      Thanks for the follow up...I'll have a look.

      90

      Comment


        #4
        Click image for larger version

Name:	Ninjascript Sample 2.png
Views:	40
Size:	5.2 KB
ID:	1293094 Thanks again Brian...figured it out and they work just great!

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by knighty6508, Today, 01:20 AM
        0 responses
        5 views
        0 likes
        Last Post knighty6508  
        Started by knighty6508, Today, 01:17 AM
        0 responses
        6 views
        0 likes
        Last Post knighty6508  
        Started by tierraany, Today, 01:06 AM
        0 responses
        4 views
        0 likes
        Last Post tierraany  
        Started by Wilmarobyi, Today, 12:48 AM
        0 responses
        3 views
        0 likes
        Last Post Wilmarobyi  
        Started by BackToTheFutures, 08-17-2021, 03:15 PM
        8 responses
        732 views
        0 likes
        Last Post joehanus  
        Working...
        X