Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy Not following True False statements in Control Center Tab

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

    Strategy Not following True False statements in Control Center Tab

    && ((ATSCyclePatternFilters1.STCyclePatternShortTrade Set1[1] > 0)
    || (ATSCyclePatternFilters1.STCyclePatternShortTradeS et2[1] > 0))

    The Strategy runs OnPriceChange, when indicator applied to chart or instrument just taking a position is loaded on a chart with the indicator applied to chart

    The Trades are trading against the Bool of the Indicator Plot, the indicator plots 0 when false and a number greater that 0 when true

    I have tried with the above and also with the actually number applied for the True state

    && ((ATSCyclePatternFilters1.STCyclePatternShortTrade Set1[1] == 24)
    || (ATSCyclePatternFilters1.STCyclePatternShortTradeS et2[1] == 20))

    Which is better?

    Thanks

    #2
    Hello DTSSTS,

    Thanks for your post.

    Which is better?

    "Which is better?" would be subjective. This would depend on the indicator, and this is not a NinjaTrader standard indicator.

    Conditions will only become true if their values will allow it. If you see something happen unexpectedly, you would need to use debugging prints to understand how the conditions are evaluated.

    Prints could also be used to check the expected output of an indicator so that you could write proper logic for that indicator.

    Below is a link to a forum post that demonstrates how to use prints to understand behavior.
    https://ninjatrader.com/support/foru...121#post791121

    Please let me know if I may further assist
    <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by NullPointStrategies, Today, 05:17 AM
    0 responses
    53 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    130 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    70 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    44 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    49 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X