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 Hwop38, 05-04-2026, 07:02 PM
            0 responses
            164 views
            0 likes
            Last Post Hwop38
            by Hwop38
             
            Started by CaptainJack, 04-24-2026, 11:07 PM
            0 responses
            319 views
            0 likes
            Last Post CaptainJack  
            Started by Mindset, 04-21-2026, 06:46 AM
            0 responses
            246 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by M4ndoo, 04-20-2026, 05:21 PM
            0 responses
            350 views
            0 likes
            Last Post M4ndoo
            by M4ndoo
             
            Started by M4ndoo, 04-19-2026, 05:54 PM
            0 responses
            179 views
            0 likes
            Last Post M4ndoo
            by M4ndoo
             
            Working...
            X