Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

method to force update?

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

    method to force update?

    HI there is an idicator for second entry. And it usually removes objects but sometimes it doest. I was wondering if there is an example of a function that forces it to update?
    In attachment there was signal for long but price went through it and signal still showing up..
    Attached Files

    #2
    Well, without wading through it completely, I would more imagine there's an issue where the leg count goes past 2 (since you are only checking for it to be exactly two when clearing the drawing objects) or your islongentry flag does not get set - you need to be looking at the values of these variables in the failure scenario.
    Bruce DeVault
    QuantKey Trading Vendor Services
    NinjaTrader Ecosystem Vendor - QuantKey

    Comment


      #3
      Can someone help me out to plot entry and exit and signal placements from this secondentryindicator?

      Comment


        #4
        Hello tkaboris,

        Can you provide more specifics about what you need help with?

        In regard to your original question, you would have to go through the logic that uses to make sure its removing the objects correctly in case its leaving some on the chart.

        For entry exit or other signal logic in your script that you wanted to plot you can add in drawing objects and conditions for those tasks. If you can provide more specific detail on what you wanted to add or how you want it to work we may be able to point to examples of those items.

        Comment


          #5
          hi indicator shows entry, stoploss and target. I need those to be plotted out so i can use those values in the strategy.

          Click image for larger version

Name:	image.png
Views:	135
Size:	85.0 KB
ID:	1250007

          Comment


            #6
            Hello tkaboris,

            You would need to look in the indicators logic to see how those user inputs are being used. Based on that observation you could create a price variable with whatever type of calculations those inputs are used in. Finally draw an object at that price or plot a value using the price variable.

            Comment


              #7
              indicator has this line
              Draw.Line(this, "isShortEntry", -2, Low[1]-(TickSize*EntryPlacement), -6, Low[1]-(TickSize*EntryPlacement), isShortEntryBrush);

              How would i continue to plot it?

              Comment


                #8
                Hello tkaboris,

                If you wanted to continuously plot that value you could use AddPlot to add a plot and then plot the calculation used there. That would look similar to the following:

                Code:
                Value[0] = Low[1]-(TickSize*EntryPlacement);

                Comment


                  #9
                  How would i reference in add plots. Has no definition for entry
                  AddPlot(Brushes.SpringGreen, "Entry");
                  Value[0] = Low[1]-(TickSize*EntryPlacement).Entry[0];

                  Comment


                    #10
                    Hello tkaboris,

                    There is a sample of how to use AddPlot in the help guide here:



                    Your plotting code goes in OnBarUpdate where you want to set the plot.

                    Comment

                    Latest Posts

                    Collapse

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