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 rhyminkevin, Today, 04:58 PM
    3 responses
    48 views
    0 likes
    Last Post Anfedport  
    Started by iceman2018, Today, 05:07 PM
    0 responses
    5 views
    0 likes
    Last Post iceman2018  
    Started by lightsun47, Today, 03:51 PM
    0 responses
    7 views
    0 likes
    Last Post lightsun47  
    Started by 00nevest, Today, 02:27 PM
    1 response
    14 views
    0 likes
    Last Post 00nevest  
    Started by futtrader, 04-21-2024, 01:50 AM
    4 responses
    50 views
    0 likes
    Last Post futtrader  
    Working...
    X