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 kempotrader, Today, 08:56 AM
            0 responses
            7 views
            0 likes
            Last Post kempotrader  
            Started by kempotrader, Today, 08:54 AM
            0 responses
            4 views
            0 likes
            Last Post kempotrader  
            Started by mmenigma, Today, 08:54 AM
            0 responses
            2 views
            0 likes
            Last Post mmenigma  
            Started by halgo_boulder, Today, 08:44 AM
            0 responses
            2 views
            0 likes
            Last Post halgo_boulder  
            Started by drewski1980, Today, 08:24 AM
            0 responses
            4 views
            0 likes
            Last Post drewski1980  
            Working...
            X