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 wzgy0920, 04-20-2024, 06:09 PM
    2 responses
    27 views
    0 likes
    Last Post wzgy0920  
    Started by wzgy0920, 02-22-2024, 01:11 AM
    5 responses
    32 views
    0 likes
    Last Post wzgy0920  
    Started by wzgy0920, 04-23-2024, 09:53 PM
    2 responses
    74 views
    0 likes
    Last Post wzgy0920  
    Started by Kensonprib, 04-28-2021, 10:11 AM
    5 responses
    193 views
    0 likes
    Last Post Hasadafa  
    Started by GussJ, 03-04-2020, 03:11 PM
    11 responses
    3,235 views
    0 likes
    Last Post xiinteractive  
    Working...
    X