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 Haiasi, 04-25-2024, 06:53 PM
    2 responses
    16 views
    0 likes
    Last Post Massinisa  
    Started by Creamers, Today, 05:32 AM
    0 responses
    4 views
    0 likes
    Last Post Creamers  
    Started by Segwin, 05-07-2018, 02:15 PM
    12 responses
    1,785 views
    0 likes
    Last Post Leafcutter  
    Started by poplagelu, Today, 05:00 AM
    0 responses
    3 views
    0 likes
    Last Post poplagelu  
    Started by fx.practic, 10-15-2013, 12:53 AM
    5 responses
    5,407 views
    0 likes
    Last Post Bidder
    by Bidder
     
    Working...
    X