Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Condition Builder

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

    Condition Builder

    Is there a way, within the strategy condition builder to indicate when an Indicator, say StochasticsFast (3,14).K, does not technically cross, but merely rises above D? I run into this issue when price is action is trending and both 'K & D' are flat lined at 100 or 0. I've found that since 'K' is not technically below or above 'D' during these times, the 'cross above' or 'cross below' conditions do not detect it.

    Please advise.

    Thanks,
    Rick

    #2
    Rick,

    Thank you for your post.

    The Cross conditions are checking the previous bar if the K value is lower than the D value and the current bar if K value is greater than or equal to D value

    Sample -
    Code:
    if( K[1] < D[1] && K[0] >= K[0])
    There is one other way I think that may get what you want.

    Use the Rising condition for the K == true and if the Current K value is greater than the D.
    Code:
    if(Rising(StochasticsFast(3, 14).K) == true && StochasticsFast(3,14).K[0] > StochasticsFast(3,14).D[0])
    {
    //Do something here
    }
    Cal H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    101 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    144 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    71 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    125 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    79 views
    0 likes
    Last Post PaulMohn  
    Working...
    X