Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 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