Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Where to start if I want to create a strategy on a trading set-up?

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

    Hello,

    If its a parameter and can be changed when you add the indicator to the chart it will be shown here sorry. No way to lock out it from being displayed here unfortunately.

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

    Comment


      Hi Brett

      Thanks for your tip. Have been working on this myth overnight.

      Good news: I removed it as a parameter and manually specified the Period. It's not showing under Condition Builder which is what I want.

      Bad news: The indicator does not match the original .. sigh ..

      I used the system EMA to try out this idea. Please point out how to fix it?

      http://screencast.com/t/gQEVKJWC

      Thank you!
      Attached Files

      Comment


        It looks like the last value is the same, although the position on the vertical axis for these values is different. This suggests you are using ScaleJustification = Overlay for one of these indicators. Right click on chart > Indicators > Make sure Scale Justification is set to Right for both and then should see them aligned visually.
        Ryan M.NinjaTrader Customer Service

        Comment


          Thank You .. Thank You Ryan! You have saved me (as always)! I will "die" if I cannot solve this myth. I tried your tip .. one down now .. three more to go .. then I will take the evening off .. not zozozo last night/this morning .. XOXOXO are flying your way.

          Comment


            Hi Ryan

            I have been working on the last one the whole afternoon and no luck in removing some plots from the indicator. I located an indicator with similar structure/codes from the Forum and tried again. When I de-activated the highlighted codes, F5 compiled successfully and the indicator plotted nothing on the chart!! I tried one plot at a time too. As soon as I de-activated say the FastLine, the indicator stopped plotting.

            World's leading screen capture + recorder from Snagit + Screencast by Techsmith. Capture, edit and share professional-quality content seamlessly.


            Hopefully you will enlighten me else I will have another sleepless night .. sigh .. Thank you.
            Attached Files

            Comment


              Hello,

              Thanks for the forum post.

              See this section below:

              Code:
              #region Properties
                      [Browsable(false)]
                      [XmlIgnore()]
                      public DataSeries FastLine
                      {
                          get { return Values[0]; }
                      }
                  
                      [Browsable(false)]
                      [XmlIgnore()]
                      public DataSeries SlowLine
                      {
                          get { return Values[1]; }
                      }
              
                      [Browsable(false)]
                      [XmlIgnore()]
                      public DataSeries DiffDown
                      {
                          get { return Values[2]; }
                      }
              
                      [Browsable(false)]
                      [XmlIgnore()]
                      public DataSeries DiffUp
                      {
                          get { return Values[3]; }
                      }
              
                      [Browsable(false)]
                      [XmlIgnore()]
                      public DataSeries Outline
                      {
                          get { return Values[4]; }
                      }

              If you remove series you need to not only delete the properties. However you need to also change the number for Values[]

              Code:
                      [Browsable(false)]
                      [XmlIgnore()]
                      public DataSeries DiffDown
                      {
                          get { return[B] Values[0];[/B] }
                      }
              
                      [Browsable(false)]
                      [XmlIgnore()]
                      public DataSeries DiffUp
                      {
                          get { return[B] Values[1]; [/B]}
                      }
              
                      [Browsable(false)]
                      [XmlIgnore()]
                      public DataSeries Outline
                      {
                          get { return[B] Values[2]; }[/B]
                      }
              BrettNinjaTrader Product Management

              Comment


                My trillion thanks Brett. It's working now .. hooray! Mission accomplished and I finally can relax soon .. haha .. Thank You .. Thank You. Have a Nice evening.

                Comment


                  Good afternoon

                  It's a hot day here (felt like almost 40 degr C). Better to stay in-door and learn how to develop an indicator involving multi-time frames. It's going to be a simple one as a start, ie

                  On a higher time frame Range chart, when fast MA is above slow MA (or crossabove), plot "Look for Long" text label on a smaller time frame Range chart.

                  Is there a sample that I can use to learn how to create this please? Thank you.

                  Comment


                    Hello,

                    Sure.

                    There is the sample built into NinjaTrader. SampleMultiTime frame strategy.

                    Then please use this guide for learning it:



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

                    Comment


                      Thanks Brett. I am unable to understand most of the Multi-TF guide materials. Having some samples will be great.

                      Questions please on my attempt to create the second indicator:

                      1. Entry Condition: Pips between MA(1) and MA(2) <= 3

                      I tried many ways and ended up with MA(1)<=MA(2)+3*TickSize

                      Certainly you can tell I was unable to compile the indicator successfully .. sigh .. Any tips on how to make it work please?

                      2. DrawText or DrawLine with Price = 1 pip below MA(1)

                      double value2 = MA(1)[0] - TickSize;
                      shortSignalBar = CurrentBar;
                      DrawLine(
                      "value2"+shortSignalBar,true,3,value2,0,value2,Color.White,DashStyle.Dash,2

                      Sorry, don't remember how to code them in brackets. I did compile successfully. Unfortunately, it plotted nothing on the chart lol!

                      Please help newbie me! Thank you.
                      Last edited by belecona; 06-10-2011, 12:24 PM.

                      Comment


                        Hello,

                        There is a sampleMultiTimeFrame Strategy built into NinjaTrader ControL Center->Tools->Edit NinjaScript->Strategies for you to check out.

                        MA(1)

                        THis is not a c# command. If you want SMA you need to code SMA[1].

                        Using [] instead of ().

                        Also, for tyour line I'm suspect of this MA(1)[0]

                        What is MA and how do you define it?

                        I look forward to assisting you further.

                        BrettNinjaTrader Product Management

                        Comment


                          Thanks Brett. I will work on your suggestion and see if I may get it working over the weekend. Else you know who'll be knocking at your door soon .. smile .. Have a Relaxing weekend.

                          Comment


                            Hi Brett

                            Believe you have had a great weekend. Ditto here. I succeeded in creating my second indicator. Thank you for your guidance. With the help of a trading friend, I learned how to add an audio alert. Then I studied more and added a text label to it. Now I am happy though I will continue adding more codes to make it more sophisticated. Have a Great week ahead.

                            Comment


                              Good afternoon

                              I am creating my third indicator and encounter the following issues:

                              Up/Down Arrows + audio alert are not triggered real-time when I have CalculateOnBarClose@False

                              When I had CalculateOnBarClose@False and kept pressing F5 (Reload NinjaScript), Arrows would be plotted

                              When I have CalculateOnBarClose@True, Arrow and audio alerts both work upon completion of the signal candle - will be a little late for entry

                              Appreciate any suggestion to resolve the myth so that the indicator will be working real-time, ie CalculateOnBarClose@False. Thank you.

                              Comment


                                Hello,

                                Can you please post code your using to create these and I can take a quick look!
                                BrettNinjaTrader Product Management

                                Comment

                                Latest Posts

                                Collapse

                                Topics Statistics Last Post
                                Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                                0 responses
                                649 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
                                576 views
                                1 like
                                Last Post RFrosty
                                by RFrosty
                                 
                                Working...
                                X