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 CarlTrading, 03-31-2026, 09:41 PM
        1 response
        156 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        90 views
        1 like
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        140 views
        2 likes
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        130 views
        1 like
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        107 views
        0 likes
        Last Post CarlTrading  
        Working...
        X