Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

channel fill sharpDX

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

    channel fill sharpDX

    Better question might be which is less processor overhead a sharpDX channel fill or a Draw.Region() fill ?

    i'm trying to find an example of, say, a keltner channel fill or a fill between two indicator lines that will help me understand how to set up a fill using sharpDX... iv'e successfully coded an indicator that draws lines and places text in the margin using the examples in "samplecustomrender" but i'm just not having any luck with a channel fill.... Better question might be which is less processor overhead a sharpDX channel fill or a Draw.Region() fill ?

    on another note, trying to use the new help guide is quite difficult with the wasted space on the right 3rd of the page squishing all the pertinent info into a center 3rd of the page... a long thin column of text just doesn't work somehow...

    Click image for larger version

Name:	new layout for help guide.png
Views:	132
Size:	138.8 KB
ID:	1337324

    #2
    Hello stafe,

    Thank you for your post.

    Custom rendering is less resource intensive than using Draw methods. This is discussed here:



    I would note though that we generally don't recommend one over the other unless you are using a large amount of drawing objects in your script. Then we would recommend custom rendering over using Draw methods.


    Regarding your feedback on the site, this is feedback we've gotten before and we have passed it along to the team behind the Developer site. Thanks for your suggestion.

    Comment


      #3
      i had suspected as much, that SDX would be less resource intensive.... Do you have, or know of, any indicators, where i can see the code, that have a channel fill implemented in SDX ?

      Comment


        #4
        Hello stafe,

        The Ichimoku Cloud indicator on the User App Share demonstrates shading a region using SharpDX:

        This indicator was ported from the Ichimoku Cloud indicator for NinjaTrader 7. The Cloud’s points are constructed identically to the NinjaTrader 7 indicator, however the points are then used to construct new SharpDX PathGeometry Figures. 3/24/2021: Modified the Adjust Chart Margins feature so users are prompted when the indicator wants to change the Chart’s Right […]


        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.

        Comment


          #5
          Gabby thanks for the suggestion, but that example "icimokucloud" is beyond the beyond in complexity for a novice trying to code a channel fill... would the rendering code from another Ecosystem source work ? possibly the SharpDX region from the QT_IchimokuCloud indicator in the Ecosytem library - external link https://qtradez.com/free-stuff

          i had attached it, but have since removed the code sample, it didn't format correctly for some reason

          on another note... can you search all the ecosystem submissions to find if any of the community indicators have SharpDX calls in their code ? i'm looking through them 1 at a time starting with newest first...
          Last edited by stafe; 03-21-2025, 12:15 PM.

          Comment


            #6
            Maybe this will help: https://forum.ninjatrader.com/filedata/fetch?id=1336676

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            579 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            334 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            101 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            554 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            551 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X