Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

determining the tipping point of an average

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

    determining the tipping point of an average

    Hi All,

    I was hoping to get some direction on how to determine how to get the closing price that "tips" an average in the opposite direction before it actually happens and plots on the chart.

    For example: if we use a HMA(20) average and the average is pointing down. On an upclose the average will swing up at some point. That may be 2 or 3 ticks higher than the curent close. Specifically I would like to be able to determine the tipping point ( the closing price) for when HMA(20)[0] > HMA(20)[1].

    I am thinking that i need to maintain my own dataseries of the close and then loop thru the ticks to see when the moving average actually swings in the oppiste direction?

    Am I on the correct track or is there an easier way? Might someone know of an existing example either in the reference library or in on something that has been written in an existing in the forums?

    Thank you kindly in advance for your help

    Sammy

    #2
    Hi Sammy, I would unfortunately not be aware of an example here or custom code already shared, but the idea seems valid to me, you would need to loop though a series of closes / endpoints for your series to calculate the HMA on to see where it would start changing it's slope.

    Comment


      #3
      Originally posted by SammyC View Post
      Hi All,

      I was hoping to get some direction on how to determine how to get the closing price that "tips" an average in the opposite direction before it actually happens and plots on the chart.

      For example: if we use a HMA(20) average and the average is pointing down. On an upclose the average will swing up at some point. That may be 2 or 3 ticks higher than the curent close. Specifically I would like to be able to determine the tipping point ( the closing price) for when HMA(20)[0] > HMA(20)[1].

      I am thinking that i need to maintain my own dataseries of the close and then loop thru the ticks to see when the moving average actually swings in the oppiste direction?

      Am I on the correct track or is there an easier way? Might someone know of an existing example either in the reference library or in on something that has been written in an existing in the forums?

      Thank you kindly in advance for your help

      Sammy
      Recast your requirement to this: "What should be the last value of the Input into the HMA, such that it will change the direction of the HMA?".

      Once you determine that value, the rest is just a matter of deducting the current close from that value, in order to determine how many ticks are left to go.

      As ticks are quantized values, it should be simple to use an incrementing/decrementing counter to determine the number of ticks required.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      571 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      331 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
      549 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      549 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X