Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Making HeikenAshi to use less system resources

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

    Making HeikenAshi to use less system resources

    Hi Support,

    The current HiekenAshi indicator that comes default with Ninja, appears very resource intensive as it draws many draw objects and has "CalculateOnbarClose= false"

    I tried to use the "CalculateOnbarClose= true" which reduces the resource usage by some extent, but it is not printing the current bar, until it is finished.

    With "CalculateOnbarClose= true", is there anyway to modify/enhance the ninjascript so that the current bar (regular bar,not the HeikenAshi bar) gets displayed on the chart and its color gets updated to become a HeikenAshi bar, after the bar is complete.


    I hope the upcoming Ninja 7 Beta,will modify the heikenAshi,so that it doesn't use any drawobjects and just modifies the default bars/candles.

    Thanks
    Commodity_trader

    #2
    Hello,


    Please visit the link provided as this will provide some tips to help with your PC usage.

    MichaelNinjaTrader Customer Service

    Comment


      #3
      Hi SUpport,

      Thanks for the link, I already made myself familiar with the performance tips.

      Can Josh or any ninjascript programmer please suggest regarding my original question, which is :

      With "CalculateOnbarClose= true" in HeikenAshi, is there anyway to modify/enhance the ninjascript so that the current bar (regular bar,not the HeikenAshi bar) gets displayed on the chart and its color gets updated to become a HeikenAshi bar, after the bar is complete.

      Is there anyway to modify the chart control settings or the Pen,in the initial part of the HeikenAshi code, so that the current bar is displayed (regular bar) and it becomes a HeikenAshi drawobject after the bar is closed?

      Thanks
      Commodity-trader

      Comment


        #4
        commodity_trader,

        Unfortunately we cannot support this. You would need to play with it yourself. As a hint, you need to mess around with these lines/if-statement wrapping it:
        Code:
        ChartControl.ChartStyle.DownColor    = Color.Transparent; 
        ChartControl.ChartStyle.UpColor        = Color.Transparent; 
        ChartControl.ChartStyle.Pen            = new Pen(Color.Transparent);
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          Thanks Josh for the hint. I appreciate it.

          Thanks
          Commodity_trader

          Comment


            #6
            Or you can try this thread

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by argusthome, 03-08-2026, 10:06 AM
            0 responses
            84 views
            0 likes
            Last Post argusthome  
            Started by NabilKhattabi, 03-06-2026, 11:18 AM
            0 responses
            47 views
            0 likes
            Last Post NabilKhattabi  
            Started by Deep42, 03-06-2026, 12:28 AM
            0 responses
            29 views
            0 likes
            Last Post Deep42
            by Deep42
             
            Started by TheRealMorford, 03-05-2026, 06:15 PM
            0 responses
            32 views
            0 likes
            Last Post TheRealMorford  
            Started by Mindset, 02-28-2026, 06:16 AM
            0 responses
            66 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Working...
            X