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

Swing Low Error

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

    Swing Low Error

    Hi,
    I'm trying to use the Swing indicator to mark swing highs and lows. For some reason I'm getting weird hits on Swing lows where it seems to mark every bar (except the high pivot) as a pivot low after I load up the script. Swing highs are correct...

    Also, I'm running the swing high low finder for every most recent bar and if I'm trying to find the last 10 pivots its doing the same redundant calculation for every new bar. Is there a way to do this once when the script loads up on the chart and then only track the most recent pivot high and low. This will prob help with memory and performance management.

    thanks in advance for your help
    Attached Files

    #2
    Hello buylosellhi,

    I will leave this to the community to help with your custom swing indicator.
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      hi Ryan,

      thanks for your reply. just to clarify, i'm using the Ninja in-built 'Swing' indicator method. Do you see any problems with the way I'm using it ?

      Comment


        #4
        I would check if you're using a custom chart type that may affect the display. The programatic access to swing can vary from seeing it visually, because it is a repainting indicator. It uses future bars to determine a value and then repaints once those values are known. This makes it challenging to integrate with other scripts as the visual isn't necessarily aligned with values it's returning. I would review swing documentation and source code to get familiar with how it works:

        Ryan M.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by carnitron, Today, 08:42 PM
        0 responses
        5 views
        0 likes
        Last Post carnitron  
        Started by strategist007, Today, 07:51 PM
        0 responses
        6 views
        0 likes
        Last Post strategist007  
        Started by StockTrader88, 03-06-2021, 08:58 AM
        44 responses
        3,974 views
        3 likes
        Last Post jhudas88  
        Started by rbeckmann05, Today, 06:48 PM
        0 responses
        8 views
        0 likes
        Last Post rbeckmann05  
        Started by rhyminkevin, Today, 04:58 PM
        4 responses
        58 views
        0 likes
        Last Post dp8282
        by dp8282
         
        Working...
        X