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

Getting color of Andrews PitchFork in Indicator

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

    Getting color of Andrews PitchFork in Indicator

    To the patient and helpful Guru's out there. I am getting better, but still learning (self taught programmer)..

    I have written an indicator that reads drawnobjects and if it is an Andrews Pitchfork, I then use it's 3 anchor points, which is working well. When I try to get the color, It returns some Blue color, which is not even the default Blue. Below is where I set up my structure, and then

    // This is where I loop through all drawn obects to locate each Andrew Pitchfork that was manually drawn
    foreach (IDrawObject draw in DrawObjects)
    {
    // Determinite if selected object is an Andrews Pitchfoirk
    if (draw.UserDrawn && draw.DrawType == DrawType.AndrewsPitchfork )
    {
    // and when found I then get amd save to variables the bars ago and price values of the 3 points
    // Then I use the 3 points in the calculations and drawing of the DGLs
    pitchfork = (IAndrewsPitchfork) draw ;

    Then here is the line I Draw a line on trying to use the color of the pitchfork that does not do what I want. I have also attached a screen shot of the watch variable structure pointing to the field that has what I want.

    DrawLine("JOR"+JOR_Line_Cnt.ToString(), false, pitchfork.Anchor1BarsAgo, JOR_Anchor_Price1, JOR_Draw_End_Bar, JOR_Tmp_Price, pitchfork.Pen.Color, DashStyle.Solid, 2);

    I did try using the editor "intellisense" to assist finishing my variable, "pitchfork." but I only saw the fields listed in the help manual, with only Pen,Color

    As always - your help is appreciated.

    John
    Attached Files

    #2
    Hello joromero,

    Thank you for your post.

    Do you have a test script we may test on our end?

    Comment


      #3
      Sending via email to [email protected] Subject -->> Attn Patrick - issue with Romero Pitchfork.

      I'll also include some instructions to reproduce.

      Skype john_at_ibm if you want to reach out that way - heading up for dinner. I'm EST

      John

      Comment


        #4
        prop windows Andrews defective



        can reach the slections at base?

        Comment


          #5
          prop windows Andrews defective

          cant reach shieff settings

          Comment


            #6
            Hello laredo787,

            Thank you for your post.

            You can re-size the window as you would any window in the Windows Operating System.

            Comment


              #7
              re sizing

              it doesnt re-size

              Comment


                #8
                resizing

                Free online storage and sharing with Screencast.com. 2 GB of storage and 2 GB of bandwidth per month for free. We won't compress, alter or take ownership of your content.

                Comment


                  #9
                  nt malfunction

                  any ideas,its a real problem?

                  Comment


                    #10
                    Hello laredo787,

                    Thank you for your responses.

                    Please send me your log and trace files for today so that I may look into what occurred.

                    You can do this by going to the Control Center-> Help-> Mail to Platform Support.

                    Please reference this thread in the e-mail: "http://ninjatrader.com/support/forum/showthread.php?t=67497"

                    Comment


                      #11
                      Hello John,

                      Thank you for your patience.

                      This has been fixed in NinjaTrader 8 which is currently in closed beta. We look forward to providing our users with this product and hope to hear from you with any feedback or comments you may have.

                      Comment

                      Latest Posts

                      Collapse

                      Topics Statistics Last Post
                      Started by sidlercom80, 10-28-2023, 08:49 AM
                      172 responses
                      2,278 views
                      0 likes
                      Last Post sidlercom80  
                      Started by Irukandji, Yesterday, 02:53 AM
                      2 responses
                      17 views
                      0 likes
                      Last Post Irukandji  
                      Started by adeelshahzad, Today, 03:54 AM
                      0 responses
                      3 views
                      0 likes
                      Last Post adeelshahzad  
                      Started by CortexZenUSA, Today, 12:53 AM
                      0 responses
                      3 views
                      0 likes
                      Last Post CortexZenUSA  
                      Started by CortexZenUSA, Today, 12:46 AM
                      0 responses
                      1 view
                      0 likes
                      Last Post CortexZenUSA  
                      Working...
                      X