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 CaptainJack, 04-24-2026, 11:07 PM
      0 responses
      18 views
      0 likes
      Last Post CaptainJack  
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      120 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      174 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      92 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      134 views
      0 likes
      Last Post cmoran13  
      Working...
      X