Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Movement from last pivot

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

    Movement from last pivot

    I'm new, sorry for the elementary question, but I'd like to identify when price has moved some nbr (20 pts for example) in either direction, from the last pivot (a la ttm_scalper alert in tos)

    I'm sure there's ton of trend tracking scripts already in the archives, hoping you can point me in the right direction

    Thanks so much!

    #2
    Hello Tuxstuff215, thanks for writing in, and welcome to the NinjaTrader forum.

    First, you would need to mark the price you want to calculate from and save it in a variable, then you would do

    if(Close[0] > MarkedPrice + TickSize*80) //Price has moved +20 points from marked price.
    {
    //condition true
    }

    Please let me know if I can assist any further.

    Comment


      #3
      Is there some script code that identifies the last pivot?

      Comment


        #4
        Tuxstuff215

        Here you go
        Attached Files

        Comment


          #5
          Thanks so much!

          Comment


            #6
            Hello Tuxstuff215, thanks for your reply.

            We do have a default indicator in the platform called "Pivots". This can be used to identify swings on a chart.

            Please let me know if I can provide any further information.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Mindset, 04-21-2026, 06:46 AM
            0 responses
            55 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by M4ndoo, 04-20-2026, 05:21 PM
            0 responses
            72 views
            0 likes
            Last Post M4ndoo
            by M4ndoo
             
            Started by M4ndoo, 04-19-2026, 05:54 PM
            0 responses
            38 views
            0 likes
            Last Post M4ndoo
            by M4ndoo
             
            Started by cmoran13, 04-16-2026, 01:02 PM
            0 responses
            99 views
            0 likes
            Last Post cmoran13  
            Started by PaulMohn, 04-10-2026, 11:11 AM
            0 responses
            60 views
            0 likes
            Last Post PaulMohn  
            Working...
            X