Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Checking to see if another indicator plotted a arrow.

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

    Checking to see if another indicator plotted a arrow.

    I am looking to run a simple indicator that checks if another indicator plotted a arrow. The closes that I have come is

    if(FirstIndicator(4,16).Plots[0] == true)

    Where Plots[0] is an arrow.

    if there a way to check for this?

    #2
    JamesMH,

    I would not imagine your plot to hold true/false values, but rather numeric values. In that case you would have to check against the numeric value representing an arrow in your code.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      The problem is that when I compare it to numeric values I get a error says NinjaTrader.Gui.Chart.Plot and not be compared to double.

      Comment


        #4
        What is Plots[0] for your indicator created as?
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          Add(new Plot(Color.FromKnownColor(KnownColor.Yellow), PlotStyle.Dot, "NormColor"));

          and

          this.DrawArrowDown(CurrentBar.ToString(),true,0,Hi gh[0],Plots[0].Pen.Color);

          Comment


            #6
            UNfortunately I am not following you. Please provide the full script with all relevant parts. Thank you.
            Josh P.NinjaTrader Customer Service

            Comment


              #7
              Let me try rephrasing my question.

              Is it possible to have a indicator that checks if a DIFFERENT indicator plotted a arrow?

              Is it possible to have a indicator that checks what the value of a plot on a DIFFERENT indicator is?

              Comment


                #8
                You can check if it plotted an arrow if you created a plot that informs you of an arrow being plotted. You can definitely check another indicators plot values just like how you can call SMA and get the SMA's value in any indicator.
                Josh P.NinjaTrader Customer Service

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by cmoran13, 04-16-2026, 01:02 PM
                0 responses
                43 views
                0 likes
                Last Post cmoran13  
                Started by PaulMohn, 04-10-2026, 11:11 AM
                0 responses
                25 views
                0 likes
                Last Post PaulMohn  
                Started by CarlTrading, 03-31-2026, 09:41 PM
                1 response
                162 views
                1 like
                Last Post NinjaTrader_ChelseaB  
                Started by CarlTrading, 04-01-2026, 02:41 AM
                0 responses
                98 views
                1 like
                Last Post CarlTrading  
                Started by CaptainJack, 03-31-2026, 11:44 PM
                0 responses
                158 views
                2 likes
                Last Post CaptainJack  
                Working...
                X