Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

strategies based on custom indicator is not run

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

    strategies based on custom indicator is not run

    I have a strange problem. My custom indicator calculated on VIX, working/plotting correctly. but when I use this indicator in strategy , there's no any error, it s compeled correctly, however in strategy analyser it's not run, doen't make any trades. Nothing.
    I noticed than I have the same problem with other strategy based on custom indicator that calculates other instruments (I mean, they use AddDataSeries, and their calculation doesnt depend on primary opened symbol).Earlier I use that strategy and indicator in NT7, and everything was correct, I rewrite them in NT8, and as I remember, it was working (maybe not).
    So, I see , that I have issues with varios customs indicators ( used
    AddDataSeries
    ) , in chart- plotting that indicators work correctly, but when I use them in strategy ,strategy stops working, even if I try just to plot them in strategy, without using conditions of their meaning, strategy stops working, and there is no any error.
    Please help

    #2
    Hello margandi,

    Thanks for your post.

    Please check the "log" tab of the control center when you apply your strategy for any errors that may relate to the strategy.

    Please check that you have VIX data available over the time period that you are backtesting as well as the session trading hours you are trading. You can do this by creating a chart with the trading hours you are using and load as many days back as you are backtesting.

    Once you have verified that there are no errors in the log and that you do have the data needed, the next step would be to begin debugging your strategy to see that it is processing the data expected and performing the logic as expected. You can verify this type of information by using print statements to output key information that your strategy is making entries based on. Here is a link to our debugging tips: https://ninjatrader.com/support/help...script_cod.htm

    Paul H.NinjaTrader Customer Service

    Comment


      #3
      Thank you!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Stanfillirenfro, Today, 07:23 AM
      1 response
      4 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Started by cmtjoancolmenero, Yesterday, 03:58 PM
      2 responses
      22 views
      0 likes
      Last Post cmtjoancolmenero  
      Started by olisav57, Yesterday, 07:39 PM
      1 response
      9 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by cocoescala, 10-12-2018, 11:02 PM
      7 responses
      944 views
      0 likes
      Last Post Jquiroz1975  
      Started by oviejo, Today, 12:28 AM
      1 response
      12 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Working...
      X