• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Find the high price when on the swing of a stochastics Swinghigh

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

    Find the high price when on the swing of a stochastics Swinghigh

    I use Swing(Stochastics) to find higher highs in the stochastics. I'm trying to line up the prices to get a lower high to get a divergence alert. But I'm trying to do this in the strategy builder. Would I need to code this? Either way, how would you find the high of the bar price when the the swing indicator finds a swing on the stochastics?

    #2
    Hello lehula,

    The Swing() indicator can be complex to use.

    Two things to note are that the the swing values can be set historically after the bar has already passed (meaning it might not have a value when that bar closes, but on a later bar the script may go back and set values or unset values for previous bars that have already past).

    Also, a return value of 0 (zero) will be returned if the CurrentBar number is less than the "strength" value, or a swing pivot has not yet been found.

    https://ninjatrader.com/support/help...n-us/swing.htm

    You are wanting to see when the SwingHigh and SwingLow plots are set. This can be done with IsValidDataPoint().
    https://ninjatrader.com/support/help...ddatapoint.htm

    However, sometimes the SwingHigh/SwingLow series have values set when these are not appearing on the chart. I have sometimes recommended using Swing().Values[0] and .Values[1] to access the actual plots of the chart to help with this.
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Parmenides48, 04-09-2019, 03:32 AM
    8 responses
    43 views
    0 likes
    Last Post brucerobinson  
    Started by NinjaCustomer, Today, 01:48 AM
    0 responses
    2 views
    0 likes
    Last Post NinjaCustomer  
    Started by aligator, Yesterday, 10:11 PM
    0 responses
    2 views
    0 likes
    Last Post aligator  
    Started by psquare, Yesterday, 03:11 PM
    4 responses
    20 views
    0 likes
    Last Post psquare
    by psquare
     
    Started by ballboy11, Yesterday, 03:20 PM
    1 response
    12 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Working...
    X