Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

DrawText in Strategy

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

    #16
    Originally posted by NinjaTrader_Josh View Post
    I am not sure why it would not show up for you as it shows up on my end. Perhaps try reinstalling .NET?
    I am running .NET Framework 3.5 SP1

    is that the correct version?

    Comment


      #17
      That version should be fine.
      Josh P.NinjaTrader Customer Service

      Comment


        #18
        Josh, Dierk

        This is interesting

        I exported 32 bit protected from desktop and imported to my laptop...remotesoft worked fine.

        I forgot to create my atmstrategy for my strategy and therefore got the typical error message.

        The interesting part is that Text now plotted from my strat on the chart.

        I then created the atmstrategy and ran the strat....no text on chart this time, only horizontal line

        And now, of course, I got the error message from trying to place an order using atmstrategycreate.....i.e. that Dierk has fixed for beta 4....re BarDisplayText error

        Conclusion: unable to draw text on chart from strat is directly related to same issue

        to reproduce: put the DrawText line in SampleAtmStrategy.....run it without creating the atmstrategytemplate....text will draw... then create the atmstrategytemplate and text will not draw and you should get the BarsDisplayText error

        ....

        BTW....neither laptop nor desktop will run my strat on a second chart....only minute charts
        Last edited by ATI user; 10-27-2009, 12:10 PM.

        Comment


          #19
          correction

          beta 3 on my laptop XP does draw the text with the atm template in place

          and the same strat on one of my user's Windows 7 machine it draws the text also

          so problem is only on my Vista machine

          all 3 machines are using .NET 3.5 and zenfire

          will try to re-install .net on my desktop
          Last edited by ATI user; 10-27-2009, 01:16 PM.

          Comment


            #20
            Originally posted by NinjaTrader_Josh View Post
            If you mean plots, that would be the StrategyPlot reference sample. Though that was always more of a workaround with limitations. Strategies are generally not meant for plotting. If you want to plot you should use an indicator.
            Josh,

            I made heavy use of StrategyPlot with 6.5 due to some data I needed plotting that is intimately tied with calculations specific to a strategy - not really indicator material.

            I'm going thru the list of Code-Breaking Changes for NT 7 and was wondering about StrategyPlot's use of DataSeries since a couple of issues regarding DataSeries is mentioned in changes, notably:

            * default of 256 lookback
            * calling DataSeries.Set() before accessing a DataSeries value on a bar

            Does StrategyPlot need any alteration do you think with regard to how it uses DataSeries for it to work comparably to how it did in 6.5? I didn't notice any .Set method calls in StrategyPlot so was concerned about that.

            Thanks for any pointers..

            JD

            Comment


              #21
              JD,

              I imagine you should be able to get it to perform the same.

              The .Sets for the StrategyPlot are seen here:
              StrategyPlot(0).Value.Set(High[0]);
              StrategyPlot(1).Value.Set(Highs[1][0]);
              Josh P.NinjaTrader Customer Service

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
              0 responses
              612 views
              0 likes
              Last Post Geovanny Suaza  
              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
              0 responses
              355 views
              1 like
              Last Post Geovanny Suaza  
              Started by Mindset, 02-09-2026, 11:44 AM
              0 responses
              105 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
              0 responses
              561 views
              1 like
              Last Post Geovanny Suaza  
              Started by RFrosty, 01-28-2026, 06:49 PM
              0 responses
              564 views
              1 like
              Last Post RFrosty
              by RFrosty
               
              Working...
              X