Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Help with signal line changes colour

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

    Help with signal line changes colour

    I am trying to write a small strategy to enter long when a moving average turns from falling to rising and short when it turns from rising to falling.
    And only at these spots please.
    I have the indicator changing colour on the change. ie. Rising = green Falling = Red
    In the Plot section I have: Signal, Rising Plot, Falling Plot, Netral Plot and DMV.
    I would also like to limit one trade per change from falling to rising as well.
    Can I get a little help please
    I had a look in the help sections, but I couldn't find anything.
    Thank you
    Last edited by vast524; 07-22-2009, 02:58 AM.

    #2
    vast524, have you taken a look already at the Strategy Wizard for setting this up?



    A CrossAbove / CrossBelow rule referencing your Moving Average should do what you seek -

    Comment


      #3
      I have done the wizard and it was a guide.
      I am not trying to compare x2 indicators. That cross over. It is a single indicator. No signal line. Just one line that changes colour if it is falling or rising. It is a Double Moving Average Indicator.
      All I want to do is to tell the strategy to enter long when this one single line changes from falling to rising.
      I also want it to take only one trade for the duration of this change. The next trade will not happen till it changes from rising to falling.
      Regards

      Comment


        #4
        vast524,

        In the Condition Builder's Misc category there are selections called "Rising" and "Falling". You want to select those and then on the right hand side select "true".
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          Ok. I did try that, but wasn't sure if I needed to compare it to anything.
          ie. If falling == true then it changes to rising== true then enter long
          I only want to enter a long when the falling changes to rising
          Plus I only want to take x1 trade per direction change

          Comment


            #6
            Then the easiest is the CrossOver rule on one indicator, you would not need two indicators to implement this. The CrossOver rule would also help you getting only one trade per rising / falling sequence.

            Comment


              #7
              I tried this.
              (CrossAbove(DoubleMA(54,NinjaTrader.Indicator.Doub leMA_internal.DMAType.EMA,54,NinjaTrader.Indicator .DoubleMA_internal.DMAType.EMA).RisingPlot,

              DoubleMA(54,NinjaTrader.Indicator.DoubleMA_interna l.DMAType.EMA,54,NinjaTrader.Indicator.DoubleMA_in ternal.DMAType.EMA).FallingPlot, 2))

              But it didn't work.
              Thanks for your help

              Comment


                #8
                vast524, please try with a regular standard MA in NinjaTrader, I believe the DoubleMA is not suited for Strategy Wizard use.

                Comment


                  #9
                  Thanks. But it is not what I want.
                  Oh well, will try anyway.

                  Comment


                    #10
                    To work with the DoubleMA you could always work in the full NinjaScript editor for the Strategy Code.

                    Comment


                      #11
                      That is what I have been doing. I gave up on the wizard.
                      Anyway, thanks for the help

                      Comment


                        #12
                        I'm not sure I follow - if you're in the full NinjaScript editor you can just code the condition out and you do not need to reference the plots or colors of the DoubleMA indicator:

                        Code:
                         
                        if (CrossAbove(WMA(WMA(18), 18), WMA(WMA(20), 20), 1))
                        EnterLong();

                        Comment

                        Latest Posts

                        Collapse

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