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 trilliantrader, 04-18-2024, 08:16 AM
    5 responses
    22 views
    0 likes
    Last Post trilliantrader  
    Started by Davidtowleii, Today, 12:15 AM
    0 responses
    3 views
    0 likes
    Last Post Davidtowleii  
    Started by guillembm, Yesterday, 11:25 AM
    2 responses
    9 views
    0 likes
    Last Post guillembm  
    Started by junkone, 04-21-2024, 07:17 AM
    9 responses
    69 views
    0 likes
    Last Post jeronymite  
    Started by mgco4you, Yesterday, 09:46 PM
    1 response
    13 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Working...
    X