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 NullPointStrategies, Today, 05:17 AM
    0 responses
    23 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    120 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    63 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    41 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    45 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X