Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy Plots in v6.5

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

    Strategy Plots in v6.5

    Would you please take a look at this strategy plot. I also include a screenshot of what it looks like on my chart. Notice the numbers. Those are supposed to be colored dots. Obviously, the block of code is being executed but for some reason the plots aren't being displayed.

    Have run this on 2 different computers and get the same results.

    Please advise.

    Mike
    Attached Files

    #2
    Hello,

    Thank you for your forum post.

    Not sure I understand. The numbers will be numbers as you are drawing them with DrawText. They will not be dots a right now you have both dots plotting and the numbers.

    StrategyPlot(0).Value.Set(EMA(period)[0]);
    DrawText(
    "0" + CurrentBar,"0",0,EMA(period)[0],Color.Black);

    I look forward to assisting you further.
    BrettNinjaTrader Product Management

    Comment


      #3
      Hello,

      I think I understand your looking for multi colored plot. Not the numbers actually being dots.

      In this case please use the example to set this.



      Let me know if I can be of further assistance.
      BrettNinjaTrader Product Management

      Comment


        #4
        Of course the numbers are created by the DrawText. I put those in there so I could see that the logic is being executed properly. The StrategyPlots are plotting and I am wondering why.

        Look at the picture I sent and you will see what it looks like on my computer.

        Did you run the strategy on your computer and if so what does it look like? Are there dots in the same place as the numbers?

        That reference you sent me has nothing to do with my problem so isn't a solution.

        Mike

        Comment


          #5
          Hello,

          Ah i did not have the same on my end my numbers are slightly lower I see the dots plotted and the numbers are covering up the plots. This is expected. You would need to move the numbers lower to see the dots. To do this change the 7 axis by a few ticks by using EMA(period)[0] - 5 * TickSize to move it down 5 ticks for example.
          Last edited by NinjaTrader_Brett; 10-07-2010, 07:12 AM.
          BrettNinjaTrader Product Management

          Comment


            #6
            I did tell you what is expected. I expect to see dots where those numbers are and I don't. Do you see them on your computer?

            I've run this on 2 different computer and I only see the black dots and the numbers. I don't see the colored dots.

            Comment


              #7
              Hello,

              Changed my reply after checking the image below. You responded to fast . My numbers were lower and didnt cover the dot on my side.

              Ah i did not have the same on my end my numbers are slightly lower I see the dots plotted and the numbers are covering up the plots. This is expected. You would need to move the numbers lower to see the dots. To do this change the Y axis of the DrawText() by a few ticks by using EMA(period)[0] - 5 * TickSize to move it down 5 ticks for example.
              BrettNinjaTrader Product Management

              Comment


                #8
                The numbers are merely there as a debugging technique so I know the block of code was executed. I moved the numbers jsut for the sake of this discussion even though I can see there aren't any dots under the numbers. Bottom line is that I don't have ANY colored dots. I only have the black dots. There are holes where the colored dots are supposed to be.

                Comment


                  #9
                  Hello,

                  Please test this on a standard Minute chart instead of your custom Renko, does this make a difference as I do not see the same on my end.

                  I look forward to assisting you further.
                  BrettNinjaTrader Product Management

                  Comment


                    #10
                    I get the same flawed behavior on a 1 minute chart.

                    Comment


                      #11
                      oh also, i uninstalled and reinstalled nt6.5 yesterday morning. As part of this uninstall, I deleted the dll's in the custom folder and also deleted the database. So, basically I am running a completely new installation of nt6.5. I did that because I wanted to get rid of a bunch of old stuff that has nothing to do with this current issue. Just wanted you to know know that in case you might be thinking about a corrupt installation.

                      Comment


                        #12
                        Hello,

                        Ok I did something off the bat the resolved the issue for me out of habit and didnt even notice.

                        I added the following to OnBarUpdate() in strategy Plot as I first looked into StrategyPlot instead of StrategyPlotStrat and wanted to see what was outputted and if you made custom plot overrides in your StrategyPlot.

                        Plot.Set(SMA(15)[0]);

                        Once I did this it was resolved. Suggest adding the above to this just so that you initialize it to something before resetting it from the strategy.


                        BrettNinjaTrader Product Management

                        Comment


                          #13
                          Sorry but I dont' understand. I added Plot.Set(SMA(15)[0]);
                          to the OnBarUpdate method in my StrategyPlotStrat and it won't compile. I get an error saying NinjaTrader.Gui.Chart.Plot does not contain a definition for 'Set'

                          Comment


                            #14
                            Hello,

                            You dont want to add this to the Strategy. You want to add this to the indicator that has a blank OnBarUpdate().

                            Let me know if I can be of further assistance.
                            BrettNinjaTrader Product Management

                            Comment

                            Latest Posts

                            Collapse

                            Topics Statistics Last Post
                            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                            0 responses
                            655 views
                            0 likes
                            Last Post Geovanny Suaza  
                            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                            0 responses
                            370 views
                            1 like
                            Last Post Geovanny Suaza  
                            Started by Mindset, 02-09-2026, 11:44 AM
                            0 responses
                            109 views
                            0 likes
                            Last Post Mindset
                            by Mindset
                             
                            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                            0 responses
                            574 views
                            1 like
                            Last Post Geovanny Suaza  
                            Started by RFrosty, 01-28-2026, 06:49 PM
                            0 responses
                            577 views
                            1 like
                            Last Post RFrosty
                            by RFrosty
                             
                            Working...
                            X