Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Modifying NinjatraderPriceAction indicator

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

    Modifying NinjatraderPriceAction indicator

    I need Some help modifying the NinjaPriceAction indicator created by TraderGuy ( thx for providing this indicator)
    found here : http://www.ninjatrader-support.com/v...ead.php?t=5689


    I want the indicator to draw a
    HL
    ONLY when the swing low is > previous swing high
    LH
    ONly when the swing high < previous swing low

    I used TraderGuy's indicator as a base and stripped it to my needs, and I almost got it working as i want

    My problem here is how do I reference to the previous swing high/low instead of referencing to a lookback period (x-nr of bars)

    in this line of code :
    barsback = Swing(strength).SwingHighBar(0,2,lookback);

    Your help is much appreciated

    Nico
    Attached Files
    Last edited by nico_p; 03-30-2008, 09:24 AM.

    #2
    As a last resort you can try contacting one of the NinjaScript Consultants here: http://www.ninjatrader.com/webnew/pa...injaScript.htm

    barsback = Swing(strength).SwingHighBar(0,2,lookback);
    For the lookback use CurrentBar. It will lookback through the whole set, but return the previous swing high bar.
    Josh P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    596 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    343 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    103 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    556 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    554 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X