Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Find the current price when my Swing indicator shows a divergence

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

    Find the current price when my Swing indicator shows a divergence

    I'm using the strategy builder to find divergences in the stochastics indicators by the following.
    Swing(Stochastics(Close, 7,9,3).K,1).SwingHigh[0]<Swing(Stochastics(Close, 7,9,3).K,1).SwingHigh[2]

    My question is, how do find and compare the price of the SwingHighs(stochastics).

    #2
    Hello lehula,

    Thanks for your post.

    You are already using the Stochastics indicator as input for your Swing indicator and you are referencing the SwingHigh plot of that Swing indicator. What you have set up would reference the SwingHigh calculated from the Stochastics indicator.

    Could you clarify on what you are expecting to see and also elaborate on how what you have is not what you expect?

    We look forward to being of further assistance.

    Comment


      #3
      I want to know the price of the stock when a stochastics SwingHigh is calculated.

      Comment


        #4
        Hello lehula,

        You can store the SwingHigh value to a variable when you see that the SwingHigh plot is different than your variable. This will let you know when a new Swing High is calculated. You could then reference the price of the underlying instrument's Close price when this happens to print it or store it to another variable.

        I have attached a video demonstrating. I encourage you to set up similar prints so you can see the output in the output window so you can better understand how you can build logic using these indicators. If the video is not yet available, please allow some time for the video to be properly encoded.

        Demo - https://drive.google.com/file/d/1Ml7...w?usp=drivesdk

        Please let me know if you have any additional questions.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        640 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        366 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        107 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        569 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        572 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X