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 cre8able, 02-11-2023, 05:43 PM
    3 responses
    236 views
    0 likes
    Last Post rhubear
    by rhubear
     
    Started by frslvr, 04-11-2024, 07:26 AM
    8 responses
    113 views
    1 like
    Last Post NinjaTrader_BrandonH  
    Started by stafe, 04-15-2024, 08:34 PM
    10 responses
    46 views
    0 likes
    Last Post stafe
    by stafe
     
    Started by rocketman7, Today, 09:41 AM
    3 responses
    11 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by traderqz, Today, 09:44 AM
    2 responses
    10 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Working...
    X