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 NullPointStrategies, Today, 05:17 AM
      0 responses
      50 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      126 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      69 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      42 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      46 views
      0 likes
      Last Post TheRealMorford  
      Working...
      X