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 DannyP96, 05-18-2026, 02:38 PM
      1 response
      24 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      115 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 05-10-2026, 08:12 PM
      0 responses
      69 views
      0 likes
      Last Post CarlTrading  
      Started by Hwop38, 05-04-2026, 07:02 PM
      0 responses
      225 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Started by CaptainJack, 04-24-2026, 11:07 PM
      0 responses
      411 views
      0 likes
      Last Post CaptainJack  
      Working...
      X