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 cutzpr, Today, 05:24 PM
      1 response
      6 views
      0 likes
      Last Post rockmanx00  
      Started by Playdc, Today, 04:53 PM
      1 response
      9 views
      0 likes
      Last Post rockmanx00  
      Started by cre8able, Today, 07:16 PM
      0 responses
      5 views
      0 likes
      Last Post cre8able  
      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  
      Working...
      X