Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

rsi change direction

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

    rsi change direction

    hi im doing a rsi strategy and when cross any level(for example in 15m) the order start 2 candles after... how can i fix that? i try on bar close and each tick and still the same.
    the order start 30minutes after the condition.
    thanks for the help
    i atached the file
    Alejandro
    Attached Files

    #2
    Hello Alejandro,

    Thanks for your post.

    When using Calculate.OnBarClose with crossover conditions, the strategy will process logic only at the close of each bar. It will look back a set number of bars based on the lookback period you set for CrossAbove/CrossBelow and then the order will be placed on the next bar.

    If you are using crossover conditions (CrossAbove/CrossBelow) and want to have the strategy detect if a crossover occurred the moment it happens instead of waiting until the close of the bar, you would need to set the strategy to use either Calculate.OnPriceChange or Calculate.OnEachTick.

    See the attached example script demonstrating detecting a crossover the moment it occurs on the currently forming bar.​
    Attached Files
    <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


      #3
      thanks Brandon!!!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      90 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      137 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      68 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      120 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      72 views
      0 likes
      Last Post PaulMohn  
      Working...
      X