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 BeachTrader11807, Today, 01:14 PM
    3 responses
    20 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by futureszone, Today, 06:09 PM
    0 responses
    5 views
    0 likes
    Last Post futureszone  
    Started by futureszone, 02-07-2025, 02:48 AM
    2 responses
    21 views
    0 likes
    Last Post futureszone  
    Started by cutzpr, Today, 05:24 PM
    0 responses
    5 views
    0 likes
    Last Post cutzpr
    by cutzpr
     
    Started by Ezequiel40, Today, 05:23 PM
    0 responses
    7 views
    0 likes
    Last Post Ezequiel40  
    Working...
    X