Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

chart in backrest

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

    chart in backrest

    When I run a backtest, the results don't show up on the chart tab in the backtest. They were showing up but, apparently, I've changed something without realizing it. Thanks Carl

    #2
    Hi Carl,

    Thank you for your post.

    Did you turn off Plot Executions?

    Right Click on your Chart > Properties
    Make sure Plot Executions isn't set to DoNotPlot
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      No. It shows to plot the text and Marker

      Comment


        #4
        Hi Carl,

        Not sure what else to check except making sure there are trades that occurred on the chart you're viewing.

        If you can you send an email to [email protected] Attn:RyanM, I can check further your individual configuration.
        Last edited by NinjaTrader_RyanM1; 02-15-2010, 10:09 AM.
        Ryan M.NinjaTrader Customer Service

        Comment


          #5
          I don't know either. There were trades. I tried changing to 'donotplot' and then back to 'text and marker' but that didn't work either

          Comment


            #6
            highs of multiple bars

            Can I use the strategy wizard to say' " If the close of any bar after 1800 is greater than the high of any bar from 1630 to 1730", then .......

            I only want it to take a trade the first time a bar meets this criteria; not several times. I've tried to set it up but I can't figure out how to include the highs of the multiple bars

            Thanks, Carl

            Comment


              #7
              Hi Carl,

              Yes, this reference sample below illustrates this concept:

              Getting indicator values from a specified time
              Ryan M.NinjaTrader Customer Service

              Comment


                #8
                Thanks. I'll give it a try

                Carl

                I'm still having problems. I want to have the strategy say that if the close of any bar between 1730 and 1815 is higher than the highest high from 1630 to 1730 then.....

                I tried to use Max(High,60)[1] as the input for the highest high of the bars from 1630 to 1730 but the wizard won't take it. I think I got the time part of it set right.

                Please help
                Thanks,

                Carl
                Last edited by cpearce; 02-18-2010, 02:34 PM.

                Comment


                  #9
                  Carl

                  I'm still having problems. I want to have the strategy say that if the close of any bar between 1730 and 1815 is higher than the highest high from 1630 to 1730 then.....

                  I tried to use Max(High,60)[1] as the input for the highest high of the bars from 1630 to 1730 but the wizard won't take it. I think I got the time part of it set right.

                  Please help
                  Thanks,

                  Carl

                  Comment


                    #10
                    Hi Carl,

                    This article might be more suited to what you're trying to do:
                    Calculating the highest high or lowest low for a specified time range.
                    Ryan M.NinjaTrader Customer Service

                    Comment


                      #11
                      I looked at the sites you suggested but I'm still lost. This is all pretty new to me so I don't understand a lot of the terminology. I can get the strategy to pick a trade at the correct time of day. I just can't get it to wait until a bar is higher than any of the bars between 1730 and 1810. In the condition builder, it always wants to use a "default input" but that doesn't work and I don't know what the value of the default input is or how to change it.

                      Any suggestions would be appreciated.

                      Carl

                      Comment


                        #12
                        Hi Carl,

                        I can understand that's it's a challenging thing to learn. What you're trying to do can't be done with the condition builder only. It will require custom programming. You can try posting the code you have so far or maybe consider a 3rd party NinjaScript consultant to work on your project for a fee.
                        Ryan M.NinjaTrader Customer Service

                        Comment


                          #13
                          Thanks, Ryan. Is there a course available that teaches NinjaScript and, if so, do you know the cost?

                          Here is what I have so far. I tried to create an input of "MAX(High, 60)[1]" to use so that the strategy will look back over the previous 60 bars (I'm using a 1 minute chart) but the wizard won't let me enter it. Can I unlock the code and enter this or whatever would would work.

                          I think the part with the "default input" is the problem.

                          Thanks again, Carl

                          #region Using declarations
                          using System;
                          using System.ComponentModel;
                          using System.Diagnostics;
                          using System.Drawing;
                          using System.Drawing.Drawing2D;
                          using System.Xml.Serialization;
                          using NinjaTrader.Cbi;
                          using NinjaTrader.Data;
                          using NinjaTrader.Indicator;
                          using NinjaTrader.Gui.Chart;
                          using NinjaTrader.Strategy;
                          #endregion

                          // This namespace holds all strategies and is required. Do not change it.
                          namespace NinjaTrader.Strategy
                          {
                          /// <summary>
                          /// Bar1800
                          /// </summary>
                          [Description("Bar1800")]
                          public class Bar1800 : Strategy
                          {
                          #region Variables
                          // Wizard generated variables
                          // User defined variables (add any user defined variables below)
                          #endregion

                          /// <summary>
                          /// This method is used to configure the strategy and is called once before any strategy method is called.
                          /// </summary>
                          protected override void Initialize()
                          {
                          SetProfitTarget("", CalculationMode.Ticks, 15);
                          SetStopLoss("", CalculationMode.Ticks, 3, false);

                          CalculateOnBarClose = false;
                          }

                          /// <summary>
                          /// Called on each bar update event (incoming tick)
                          /// </summary>
                          protected override void OnBarUpdate()
                          {
                          // Condition set 1
                          if (ToTime(Time[0]) > ToTime(17, 30, 0)
                          && ToTime(Time[0]) < ToTime(18, 10, 0)
                          && Open[0] > HighestBar(DefaultInput, 1))
                          {
                          EnterLong(2, "");
                          }
                          }

                          #region Properties
                          #endregion

                          Comment


                            #14
                            Hi Carl,

                            There isn't a course for NinjaScript I'm aware of. It's based on the C# programming language so having some C# knowledge definitely helps.

                            This article below discusses getting the highest high and lowest low values from a specified time.



                            That's one approach you can use to solve your issue. HighestBar will return the # of bars ago the highest price occurred and is probably not what you're looking for.
                            Ryan M.NinjaTrader Customer Service

                            Comment

                            Latest Posts

                            Collapse

                            Topics Statistics Last Post
                            Started by bsbisme, Today, 03:42 PM
                            0 responses
                            1 view
                            0 likes
                            Last Post bsbisme
                            by bsbisme
                             
                            Started by renner1984, Yesterday, 01:50 PM
                            3 responses
                            10 views
                            0 likes
                            Last Post NinjaTrader_Jesse  
                            Started by Vikuno1, 06-15-2024, 10:22 PM
                            6 responses
                            33 views
                            0 likes
                            Last Post Vikuno1
                            by Vikuno1
                             
                            Started by DonMiguelo, Today, 02:19 PM
                            1 response
                            7 views
                            0 likes
                            Last Post NinjaTrader_ChelseaB  
                            Started by merc410, 05-02-2024, 03:41 AM
                            5 responses
                            206 views
                            0 likes
                            Last Post BonnPlayer  
                            Working...
                            X