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 Max238, Today, 01:28 AM
      4 responses
      33 views
      0 likes
      Last Post Max238
      by Max238
       
      Started by r68cervera, Today, 05:29 AM
      1 response
      7 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by geddyisodin, Today, 05:20 AM
      1 response
      11 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Started by timko, Today, 06:45 AM
      2 responses
      13 views
      0 likes
      Last Post NinjaTrader_ChristopherJ  
      Started by habeebft, Today, 07:27 AM
      0 responses
      6 views
      0 likes
      Last Post habeebft  
      Working...
      X