Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

MACD strategy

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

    #31
    How to tell the system to execute either one condition?

    Since the condition builder formulates strategy when ALL conditions are true, then do something.

    Comment


      #32
      Please set them then up in different condition sets for this...if you add mutiple conditions in one set it's equal to using the logical AND to 'link' those.

      Comment


        #33
        That meant I can use set 1 for entry and set 2,3,4... for exit and it will execute whichever the earliest and ignore the others.

        Comment


          #34
          JP, yes that should do it.

          Comment


            #35
            Thanks Bertrand!

            Comment


              #36
              There are a few sample strategies built-in in the programme, e.g.Sample AtmStrategy and others.

              Any explantations about these Sample Strategies?

              Comment


                #37
                SampleAtmStrategy - shows how to call ATM's for exit management of your NinjaScript strategy generated entries - http://www.ninjatrader-support.com/H...trategies.html

                SampeMultiInstrument / TimeFrame show how to work with Multiseries strategies in NinjaScript - http://www.ninjatrader-support.com/H...struments.html

                SampleMaCrossOver - basic SMA crossover strategy used as demo and reference

                Comment


                  #38
                  1. In a strategy, I complied a line with an indicator of an indicator say, SMA 10 of RSI 9, can it be plotted on chart?


                  2. If I write a strategy that to enter long if say, RSI 9 rises for three consecutive bars, can I use the rising/falling=true formula, or what formula I should use?
                  Last edited by jp2890; 02-08-2010, 06:12 AM.

                  Comment


                    #39
                    jp2890,

                    1. For your plotting your custom indicator calculation from the strategy, you could use our Strategy Plot sample -

                    When running a strategy on a chart you may find the need to plot values onto a chart. If these values are internal strategy calculations that are difficult to migrate to an indicator, you can use the following technique to achieve a plot. NinjaTrader 8 With NinjaTrader 8 we introduced strategy plots which provide the ability


                    2. You could use the CountIf() for your 'RSI consecutive up' entry - http://www.ninjatrader-support.com/H...6/CountIf.html

                    Comment


                      #40
                      [QUOTE=NinjaTrader_Bertrand;143923]jp2890,


                      1. "You could use the CountIf() for your 'RSI consecutive up' entry"

                      Where is it in the Condition Builder?


                      2. Or can I enter when all these conditions are true:
                      A > B 1 bar ago
                      A > B 2 bars ago
                      A > B 3 bars ago

                      Is it a proper formula to achieve my purpose?

                      Comment


                        #41
                        Sorry, yes this is unfortunately not availabe in the wizard, only in custom programming - so you want to proceed as per your 2. If you add multiple conditions in one set, is treated as logical AND....

                        Comment


                          #42
                          Or can I enter when all these conditions are true:
                          A > B 1 bar ago
                          A > B 2 bars ago
                          A > B 3 bars ago

                          Is it a proper formula to achieve my purpose?[/QUOTE]


                          Such conditions won't create wrong side effects, will it?

                          Thanks!

                          Comment


                            #43
                            You'll need to test your conditions - to see exactly when they evaluate to 'true' you can add draw statements for easy visual checks -

                            Comment


                              #44
                              1.Can I use SMA or VMA as input values for MACD, if yes, where to change?

                              2.In fact, where to see the default of a indicator say MACD?

                              Thanks!
                              Last edited by jp2890; 02-10-2010, 05:00 AM.

                              Comment


                                #45
                                You will need to adjust your MACD input series as needed - http://www.ninjatrader-support.com/H...omparison.html

                                The default would the using the 'Close'.

                                Comment

                                Latest Posts

                                Collapse

                                Topics Statistics Last Post
                                Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                                0 responses
                                630 views
                                0 likes
                                Last Post Geovanny Suaza  
                                Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                                0 responses
                                364 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
                                566 views
                                1 like
                                Last Post Geovanny Suaza  
                                Started by RFrosty, 01-28-2026, 06:49 PM
                                0 responses
                                568 views
                                1 like
                                Last Post RFrosty
                                by RFrosty
                                 
                                Working...
                                X