Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 mmckinnm, Today, 01:34 PM
                1 response
                4 views
                0 likes
                Last Post NinjaTrader_ChelseaB  
                Started by Conceptzx, 10-11-2022, 06:38 AM
                3 responses
                60 views
                0 likes
                Last Post NinjaTrader_SeanH  
                Started by f.saeidi, Today, 01:32 PM
                1 response
                2 views
                0 likes
                Last Post NinjaTrader_Erick  
                Started by traderqz, Today, 12:06 AM
                9 responses
                16 views
                0 likes
                Last Post NinjaTrader_Gaby  
                Started by kevinenergy, 02-17-2023, 12:42 PM
                117 responses
                2,766 views
                1 like
                Last Post jculp
                by jculp
                 
                Working...
                X