• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

In Market Playback plots shows momentarily then goes away, but trades execute

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

    In Market Playback plots shows momentarily then goes away, but trades execute

    Hi,

    I've developed a strategy that I've been working with for quite a while and everything has worked as expect on non-market replay charts and in the strategy analyzer.

    The issue is that when I run my strategy in Market Playback, the strategy plots (mostly OHLC type lines) show momentarily then go away, however the strategy does execute trades and stays enabled. Similarly, if I right-click the playback chart and choose "Reload NinjaScript" all the strategy plots will momentarily flash on the screen and then immediately go away, but trades will continue to execute and the strategy still stays enabled. If that isn't quirky enough, as I'm writing this I've discovered that enabling a built-in NT8 strategy, such as 'Sample MA Crossover' not only displays correctly itself, but also somehow forces my custom strategy's plots to show up!

    I suppose that's a workaround of sorts, but ideally I would be able to have my strategy's plots show correctly without needing to enable another strategy to do it. I've tried several different tweaks to various settings (onBarClose vs OnPriceChange and 'Bars required to trade') and so far I haven't found anything to fix this behavior. Thank you for any assistance in getting the strategy to display properly in Market Playback.

    #2
    Is this with an indicator?
    are you calling update ()?

    Comment


      #3
      Hello Calebg,

      Thank you for the post.

      Based on the description it sounds like the strategy is having a rendering problem based on the logic being used. The test you did with the SampleMACrossOver can help confirm this, the sample does not force anything to plot but does use the suggested approach at displaying used indicators visually. You can also develop your strategy to plot by its self without the need of an indicator, however, depending on the logic used will determine if that plot will work as you are expecting or not. One example where plotting may work unexpectedly would be plotting only from a secondary series instead of the primary series, that can produce unexpected results or invalid data points leading to non-visible plots.

      Can you provide a sample of how you are currently plotting the value which is disappearing? Another approach would be to create a new empty strategy and only add the plotting logic, this will help isolate what is happening further or you could provide that as an attachment with your reply if needed.

      I look forward to being of further assistance.
      JesseNinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Gerik, Yesterday, 11:27 PM
      0 responses
      2 views
      0 likes
      Last Post Gerik
      by Gerik
       
      Started by Bionian, Yesterday, 11:14 PM
      0 responses
      2 views
      0 likes
      Last Post Bionian
      by Bionian
       
      Started by Gerik, Yesterday, 10:58 PM
      0 responses
      1 view
      0 likes
      Last Post Gerik
      by Gerik
       
      Vps by stooby
      Started by stooby, Yesterday, 08:32 PM
      0 responses
      11 views
      0 likes
      Last Post stooby
      by stooby
       
      Started by FaaastEddy, Yesterday, 08:25 PM
      0 responses
      3 views
      0 likes
      Last Post FaaastEddy  
      Working...
      X