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

Point and Figure Indcator

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

    Point and Figure Indcator

    Hi, I have searched in your support forum and different other places to find any indicator related to point and figure charts. Could not find any. Is there anything available in your support?

    Also, I am planing to code indicator to work on point and figure charts, will you be able to show me where to start from? Because I am little bit confused about this. I normally did code some indicators for other chart styles.

    Please help.

    #2
    Hello asmmbillah,
    Thanks for your post.

    Just about any default indicator could be "related" to Point & Figure charts so that is a very broad search term. What kind of signals are you looking for specifically?

    There also would not be any differences between programming an indicator for a Point & Figure chart versus any other bar type. What specifically are you "confused" about in regards to creating your indicator?
    Josh G.NinjaTrader Customer Service

    Comment


      #3
      I am looking to draw trend line 45 degree angle connecting adjacent lines and trying to get a signal when x crosses over previous x bar level with a line.

      it would be better to see any example to avoid confusion how pnf indicators are coded.

      Comment


        #4
        asmmbillah,

        I am not aware of any samples that demonstrate differences in coding practices for a PnF only indicator. What are your having trouble with specifically?

        Perhaps another user has a sample or some advice that can be of assistance.
        Josh G.NinjaTrader Customer Service

        Comment


          #5
          Hi JoshG,

          Please see the below code:

          protected override void OnBarUpdate()
          {
          if (BarsInProgress != 0)
          return;

          if (CurrentBars[0] < 2)
          return;

          // Set 1
          if (High[0] > High[2])
          {
          Draw.ArrowUp(this, @"pnf Arrow up_1", false, 0, 0, Brushes.Lime);
          }

          }

          I am simply trying to draw an arrow on a bar when it's high goes above the high 2 bars ago. for example, see the screenshot attached, green X crossed, the previous green X, but my code is not plotting the arrow.

          Please advise.

          Comment


            #6
            asmmbillah,

            You do not see the drawing object because you have autoscale set to false and the Y-Value is set to 0.
            Draw.ArrowUp(this, @"pnf Arrow up_1", false, 0, 0, Brushes.Lime);
            I expect you will see the object is being added to the chart if you right-click inside your chart>>Drawing Tools>>Drawing Objects...

            You will need to use a Y-Value input that lets the object know what price to be at.

            https://ninjatrader.com/support/help...aw_arrowup.htm
            Josh G.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by bmartz, 03-12-2024, 06:12 AM
            4 responses
            31 views
            0 likes
            Last Post bmartz
            by bmartz
             
            Started by Aviram Y, Today, 05:29 AM
            4 responses
            11 views
            0 likes
            Last Post Aviram Y  
            Started by algospoke, 04-17-2024, 06:40 PM
            3 responses
            28 views
            0 likes
            Last Post NinjaTrader_Jesse  
            Started by gentlebenthebear, Today, 01:30 AM
            1 response
            8 views
            0 likes
            Last Post NinjaTrader_Jesse  
            Started by cls71, Today, 04:45 AM
            1 response
            7 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Working...
            X