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 funk10101, Today, 09:43 PM
            0 responses
            3 views
            0 likes
            Last Post funk10101  
            Started by pkefal, 04-11-2024, 07:39 AM
            11 responses
            36 views
            0 likes
            Last Post jeronymite  
            Started by bill2023, Yesterday, 08:51 AM
            8 responses
            44 views
            0 likes
            Last Post bill2023  
            Started by yertle, Today, 08:38 AM
            6 responses
            26 views
            0 likes
            Last Post ryjoga
            by ryjoga
             
            Started by algospoke, Yesterday, 06:40 PM
            2 responses
            24 views
            0 likes
            Last Post algospoke  
            Working...
            X