Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Frustrating with your program cache

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

    Frustrating with your program cache

    Hi all
    I have the following code only

    protectedoverridevoid Initialize()
    {
    CalculateOnBarClose = true;
    Overlay =
    true;
    PriceTypeSupported =
    false;
    Add(
    new Line(Color.Gray, 815, "Lower"));
    }

    It should draw a gray line at 815 ( on SnP chart ) , and it does that ..
    Now when I change 815 into 820 and compile the indicator and then refresh the chart (F5) my line still at 815. not 820 as I expected ..
    the only way I know to get it work is to remove my indicator from the indicators list then add it again , and then it works .. even if I exit NT then run it again that will not solve this probelm,
    seems NT is caching my compiled indicator somewhere .. is there any way to make NT works correctlly. and not from the cache..
    Thanks
    Last edited by rad70; 03-29-2009, 11:14 AM.

    #2
    Try drawing the line fro OnBarUpdate().

    Comment


      #3
      Originally posted by TAJTrades View Post
      Try drawing the line fro OnBarUpdate().
      T?hanks , I know about that , and I want a solution or a bug fix not just work around.
      Thanks

      Comment


        #4
        Where r u guys?

        What's up guys, What's up Ninja Staff ? no solution for this problem . if so then just say it's a bug . so I don't waste more time trying to figure out how to solve it
        Last edited by rad70; 04-02-2009, 04:47 AM.

        Comment


          #5
          Hi rad70, sorry for your delay responding to you - this is unfortunately expected, since those properties would be maintained. Reapplying the indicator will display the line at the correct level.

          Comment


            #6
            Unsure if this will work, as I don't have time to test it for you, but have you tried

            protected override void Initialize()
            LinesConfigurable = true;

            This was the magic that let me move the lines within my code. Perhaps it also stores it's value differently such that the initialize code values isn't locked in stone.

            Comment

            Latest Posts

            Collapse

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