Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

no output in strategy analyzer

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

    no output in strategy analyzer

    Dear forum,

    I cannot figure out why the output of my strategy analyzer is always void (no trades).
    It must be related to logical errors because basic ninja traders strategies produce an output.

    I have attached a screenshot from the strategy builder.

    Any help would be much appreciated.

    I am using the EURUSD forex

    Thanks,

    https://www.dropbox.com/s/kz5qelhph3...pture.PNG?dl=0

    #2
    Hello lolaplug, and thank you for your question. I am currently reviewing your condition logic. While I am doing so, I recommend attempting one condition at a time, to see if you can narrow down which conditions are preventing you from making trades.
    Jessica P.NinjaTrader Customer Service

    Comment


      #3
      Hello again,

      While I will need more information about your goal to assist further, the reason your logic will not work, and the reason you are having to cast to an integer to get your time index, is because
      Code:
      Close[2]
      is a price. In English, this is the same as saying "Give me the price 2 bars ago". Time, like close, also requires its index to be a number of bars ago, not a price.

      Here is a small example. Let us say that you have 10 bars worth of data. 2 bars ago, the closing price for a traded instrument was $1234.56 . The statement
      Code:
      Time[(int)  Close[2]]
      , is doing this :

      • What was the closing price 2 bars ago?
      • $1234.56
      • Let's turn that into an integer
      • 1234
      • What was the Date 1234 bars ago?

      I am including NinjaScript Help Guide links to the Close and Time classes.


      Jessica P.NinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      77 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      45 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      27 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      32 views
      0 likes
      Last Post TheRealMorford  
      Started by Mindset, 02-28-2026, 06:16 AM
      0 responses
      63 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X