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 DayTradingDEMON, Today, 09:28 AM
    3 responses
    19 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by Stanfillirenfro, Today, 07:23 AM
    9 responses
    23 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by George21, Today, 10:07 AM
    0 responses
    8 views
    0 likes
    Last Post George21  
    Started by navyguy06, Today, 09:28 AM
    1 response
    7 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by cmtjoancolmenero, Yesterday, 03:58 PM
    8 responses
    32 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Working...
    X