Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Custom Pivot Indicator Malfunctioning - Help Requested

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

    Custom Pivot Indicator Malfunctioning - Help Requested

    Hello,

    I have built a custom indicator utilizing a basic swing strength format and filtering them using ATR, ATR multiplier, and distance from local SMA(high/low).

    The indicator plots the first four pivot highs on the $MNQ chart but then after the major drop in price around 12/18, only pivot lows get plotted. I can't seem to figure out why this is the case. Would anybody be willing to look at why this is happening and offer a solution for it? Please ignore the rectangle text box code as it is not plotting how I want it too. The idea is to get the dotted lines to plot at the filtered swing high/lows.
    Attached Files

    #2
    Hello Kmace20,

    While I cannot debug the code for you I can see that there are currently no Print statements in the code you provided. A starting point at figuring this out would be to add print statements to trace how the logic you made works, that would highlight why its doing what it is in that use case.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    153 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    89 views
    1 like
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    133 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    128 views
    1 like
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    107 views
    0 likes
    Last Post CarlTrading  
    Working...
    X