Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Struggling to get a simple CrossAbove and CrossBelow to work

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

    Struggling to get a simple CrossAbove and CrossBelow to work

    Disclaimer: I've only been doing this in the backtest strategy analyze, not live


    Literally my entire strategy is just entering into a long when StochRSI crosses above 20, and entering into a reverse short when StochRSI crosses below 80.

    I've tried every permutation of syntax I can think of, every debug, if current bars < barsrequiredtotrade, all that. It won't even enter a trade at all.

    This is on a fresh "new strategy" as well.

    I'm honestly lost as to why the most simple function will not work.
    Last edited by unpronounceable1700; 08-25-2024, 03:24 AM.

    #2
    Hello unpronounceable1700,

    Thank you for your post.

    To get a better understanding of why nothing happens when you test in the Strategy Analyzer, please answer all of the following questions:
    • What version of NinjaTrader are you using? Please provide the entire version number. This can be found under Help -> About (Example: 8.?.?.?)
    • Do you see similar results when running the same test on the SampleMaCrossOver strategy in NinjaTrader with the same settings as your strategy?
    • Who are you connected to? This is displayed in green in the lower-left corner of the Control Center window.
    • Are you connected to your data feed provider when running this test?
    • What instrument(s) (and expiry if applicable) have you selected?
    • What Data Series Type have you selected? Example: Tick, Minute, Day
    • What From and To date is selected?
    • If you open a chart for the same instrument(s) and the same date range, then right-click the chart and select 'Reload all historical data' is the historical data showing on the chart?
    • Is your strategy a multi-instrument or multi-time frame strategy?
    • Do you receive an error on the screen? Are there errors on the Log tab of the Control Center? If so, what do these errors report?
    ​I look forward to your response.

    Comment


      #3
      Originally posted by NinjaTrader_Gaby View Post
      Hello unpronounceable1700,

      Thank you for your post.

      To get a better understanding of why nothing happens when you test in the Strategy Analyzer, please answer all of the following questions:
      • What version of NinjaTrader are you using? Please provide the entire version number. This can be found under Help -> About (Example: 8.?.?.?)
      • Do you see similar results when running the same test on the SampleMaCrossOver strategy in NinjaTrader with the same settings as your strategy?
      • Who are you connected to? This is displayed in green in the lower-left corner of the Control Center window.
      • Are you connected to your data feed provider when running this test?
      • What instrument(s) (and expiry if applicable) have you selected?
      • What Data Series Type have you selected? Example: Tick, Minute, Day
      • What From and To date is selected?
      • If you open a chart for the same instrument(s) and the same date range, then right-click the chart and select 'Reload all historical data' is the historical data showing on the chart?
      • Is your strategy a multi-instrument or multi-time frame strategy?
      • Do you receive an error on the screen? Are there errors on the Log tab of the Control Center? If so, what do these errors report?
      ​I look forward to your response.
      Solved:
      StochRSI seems to be in decimal form and not integer.

      Solution was CrossAbove(StochRSI(14), .20, 1)

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by NullPointStrategies, Today, 05:17 AM
      0 responses
      52 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