Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

dynamic horizontal line(s)

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

    dynamic horizontal line(s)

    I have an oscillator type indicator. I want to draw a horizontal line at the most recent maximum value (call this MAXLINE) and then a horizontal line at the most recent minimum value ( call this MINLINE).

    If the occilator then cycles back up towards the top, but does not hit the existing maximum line (MAXLINE), but insteads turns back down, I want to dynamically move the MAXLINE to that new more recent high value. I want to continue this logic for both MAXLINE and MINLINE.

    I can get this to work in the price payne... I fully understand the logic invovled to determine if the value is the max or the min and draw horizonallines (sort of a support and resistence concept)...

    How do I do this in the indicator payne?

    Overlay true/false has no bering on DrawHorizontalLine...

    It appears DrawHorizontalLine always draws in the price window...

    It appears I can not access Add (new Line (Color , value, name)) - no luck looking for examples of this...

    It appears the use of Plot would not create the desired horizontal line affect I am looking for as prior lines would be within the Plot array....more of a stair step output instead of a simple Left side to Right side horizontal line...

    I can do this using chart tools easy enough... but really want to do this programically

    Looking for ideas, suggestions, just point and I'll dig...
    Last edited by tulanch; 10-28-2011, 10:00 PM.

    #2
    tulanch,

    I am happy to assist you.

    It appears someone else wanted something similar in this forum : http://www.ninjatrader.com/support/f...p/t-34629.html

    DrawOnPricePanel : http://www.ninjatrader.com/support/h...pricepanel.htm

    Please let me know I may assist further.
    Adam P.NinjaTrader Customer Service

    Comment


      #3
      You want

      Code:
      DrawOnPricePanel = false;

      Comment


        #4
        worked great thanks....


        .......
        do stuff in price window
        ........
        DrawOnPricePanel = false;
        .......
        do stuff in indicator window
        ........
        DrawOnPricePanel = true;
        .......
        back to doing stuff in price window
        ........

        Comment


          #5
          Support and Res

          Hello,

          I was wondering if there was a indicators that calculates support/ resistance lines and adds them to the charts for you...

          I've notice that there are other chart software can do that for you and wanted to see if NT can do the same.
          Thanks

          Comment


            #6
            isto,

            Yes, indicators such as these are available here : http://www.ninjatrader.com/support/f...ks.php?catid=4

            I would suggest browsing to find one that suites you best. Some of them are called Session Pivots, etc.
            Adam P.NinjaTrader Customer Service

            Comment


              #7
              Take a look at this indicator available on the free nt-indicators "DynamicSR". Maybe it can help.
              PS: i don't know where it came from but here it is.
              Attached Files
              Last edited by mate41; 09-21-2012, 10:01 AM.

              Comment


                #8
                Is it possible to set sound or visual alarm in market analyzer when price cross above resistence or below support?

                Comment


                  #9
                  Hi Beowulfit,

                  Thank you for your post.

                  This would require a custom developed indicator to test when the price crosses above the resistance or support level.

                  However, there is the PriceAlert indicator that can be applied by to a chart. You will need to set the price level for the alert.

                  Once the price hits the specified price level it will sound an alarm and print a message to the Alerts Window, File -> New -> Alerts...

                  Let me know if I can be of further assistance.
                  Cal H.NinjaTrader Customer Service

                  Comment


                    #10
                    What is oscillator line in Line Class? Just horizontal line that tied to y-axis?

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                    0 responses
                    577 views
                    0 likes
                    Last Post Geovanny Suaza  
                    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                    0 responses
                    334 views
                    1 like
                    Last Post Geovanny Suaza  
                    Started by Mindset, 02-09-2026, 11:44 AM
                    0 responses
                    101 views
                    0 likes
                    Last Post Mindset
                    by Mindset
                     
                    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                    0 responses
                    553 views
                    1 like
                    Last Post Geovanny Suaza  
                    Started by RFrosty, 01-28-2026, 06:49 PM
                    0 responses
                    551 views
                    1 like
                    Last Post RFrosty
                    by RFrosty
                     
                    Working...
                    X