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 CarlTrading, 03-31-2026, 09:41 PM
              1 response
              82 views
              1 like
              Last Post NinjaTrader_ChelseaB  
              Started by CarlTrading, 04-01-2026, 02:41 AM
              0 responses
              43 views
              0 likes
              Last Post CarlTrading  
              Started by CaptainJack, 03-31-2026, 11:44 PM
              0 responses
              64 views
              2 likes
              Last Post CaptainJack  
              Started by CarlTrading, 03-30-2026, 11:51 AM
              0 responses
              68 views
              0 likes
              Last Post CarlTrading  
              Started by CarlTrading, 03-30-2026, 11:48 AM
              0 responses
              56 views
              0 likes
              Last Post CarlTrading  
              Working...
              X