Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Colored MA Region - limit bars

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

    Colored MA Region - limit bars

    Applying the SMARegion indicator to color the region uses too many of my computer resources. My question is whether there is anything I can use inside the code to limit coloring the region for let's say only 5, 10 or 20 bars back. If so, how do I do that?

    I ask because I have another indicator in my chart which requires that I load a minimum of 35days. But when I use the SMAregion and it draws 35 days worth of that region, my computer slows down. Plus I don't need to see 35 days back of that region; perhaps only 5 or 10 bars back.

    sandman




    #2
    Hello sandman,

    The way this item works now it uses the Region drawing too so that could add more utilization if it needs to have a long history. In the code now there is not really anything you can change which would help besides preventing it from drawing. The code would need to otherwise avoid using the drawing objects and instead use the Plot override to render this data to gain any kind of performance gain.

    If you only need this in realtime, you may try having it return for historical data that would at the least limit the amount of drawings to what happened in realtime.

    I look forward to being of further assistance.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    557 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    324 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
    545 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    547 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X