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.
    Chris L.NinjaTrader Customer Service

    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.
            Chris L.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by sidlercom80, Today, 02:40 AM
            0 responses
            3 views
            0 likes
            Last Post sidlercom80  
            Started by b16_aln, Today, 01:52 AM
            0 responses
            7 views
            0 likes
            Last Post b16_aln
            by b16_aln
             
            Started by junkone, Yesterday, 08:55 PM
            1 response
            7 views
            0 likes
            Last Post NinjaTrader_Jason  
            Started by adaeiqendqw, 01-16-2021, 02:56 AM
            1 response
            15 views
            0 likes
            Last Post NinjaTrader_Jason  
            Started by [email protected], Yesterday, 06:10 PM
            5 responses
            16 views
            0 likes
            Last Post NinjaTrader_ChrisSch  
            Working...
            X