Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

wave identification trade logic

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

    wave identification trade logic

    My trend definition, trade entry, stop-loss, and trailing-stop logic are all based on comparison of the last 2 swing highs or lows. The wave definitions I use are mainly a Parabolic Stop or Volatility Stop (up-flip ends a down-wave, down-flip ends an up-wave).

    Here's my question:
    Is there an easy way to record the highs of the last 2 parabolicSAR up-waves and the lows reached during the last 2 parabolic down-waves for use in my strategy script? Perhaps a DataSeries object added to the indicator that stores all the highs and one that stores all the lows that is part of the indicator's return values, so my strategy script can access these values easily?

    Attached is my implementation of ParabolicStop and VolatilityStop. I found the native NT parabolicSAR display a bit hard to read because it is one continuous line (I am used to separate upper and lower lines), and I needed to be able to use the close instead of the high/low as the input. NT is welcome to my code if they want to include VolatilityStop as a native indicator or improve the existing parabolicSAR.
    -Dave
    Attached Files

    #2
    Dave,

    I would imagine you could save the values you want from the ParabolicSAR in your own variables. When there is a reverse, save out the prior value.
    Josh P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    95 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    49 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    31 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    35 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    71 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X