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 andrewtrades, Today, 04:57 PM
      1 response
      8 views
      0 likes
      Last Post NinjaTrader_Manfred  
      Started by chbruno, Today, 04:10 PM
      0 responses
      6 views
      0 likes
      Last Post chbruno
      by chbruno
       
      Started by josh18955, 03-25-2023, 11:16 AM
      6 responses
      436 views
      0 likes
      Last Post Delerium  
      Started by FAQtrader, Today, 03:35 PM
      0 responses
      7 views
      0 likes
      Last Post FAQtrader  
      Started by rocketman7, Today, 09:41 AM
      5 responses
      19 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Working...
      X