Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Disable plot

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

    Disable plot

    I need to disable the plot after the first tick of the new candle


    Here's a snippet of the program


    CalculateOnBarClose = false;
    base.Add(new Plot(new Pen(Color.Gray, 6f), PlotStyle.Bar, "OBV_Ratio_Hist"));

    if (FirstTickOfBar) // do something

    if (!FirstTickOfBar) //disable plot


    ( I want to draw a fragment of the candle until the first tick in the bar )



    can you help me? thanks

    Last edited by esignal; 01-21-2014, 04:59 AM.

    #2
    esignal, I would suggest to look into the .Reset method for the plot series -

    Comment


      #3
      I read it ... but what more complicated than expected ...

      This indicator is called from within a strategy with the command Add (Indicator ());

      I am not able to reset it

      Comment


        #4
        Then why would you not do the reset in your indicator core core directly?

        Comment


          #5
          Originally posted by NinjaTrader_Bertrand View Post
          Then why would you not do the reset in your indicator core core directly?
          Because the indicator is called by the strategy .. So I have to do any setting from within the strategy

          Comment


            #6
            Your indicator is Add()ed for display reasons by the strategy, however the main calcs and plotting would still be done from the indicator script itself.

            Comment


              #7
              ok now i try it...thanks

              Comment

              Latest Posts

              Collapse

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