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 helpwanted, Today, 03:06 AM
                1 response
                10 views
                0 likes
                Last Post sarafuenonly123  
                Started by Brevo, Today, 01:45 AM
                0 responses
                9 views
                0 likes
                Last Post Brevo
                by Brevo
                 
                Started by aussugardefender, Today, 01:07 AM
                0 responses
                5 views
                0 likes
                Last Post aussugardefender  
                Started by pvincent, 06-23-2022, 12:53 PM
                14 responses
                242 views
                0 likes
                Last Post Nyman
                by Nyman
                 
                Started by TraderG23, 12-08-2023, 07:56 AM
                9 responses
                387 views
                1 like
                Last Post Gavini
                by Gavini
                 
                Working...
                X