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 SalmaTrader, 07-07-2026, 10:26 PM
    0 responses
    22 views
    0 likes
    Last Post SalmaTrader  
    Started by CarlTrading, 07-05-2026, 01:16 PM
    0 responses
    12 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 06-17-2026, 10:32 AM
    0 responses
    8 views
    0 likes
    Last Post CaptainJack  
    Started by kinfxhk, 06-17-2026, 04:15 AM
    0 responses
    10 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 06-17-2026, 04:06 AM
    0 responses
    16 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Working...
    X