Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Can't change EMA value

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

    Can't change EMA value

    I'm having a problem with a EMA crossover strategy. I created User defined inputs EMA9 and EMA39 with those periods and 15 min intervals. I set up the Strategy and it looks right as far as this newbie can tell (I followed along with the video), however when I put it into my 15 min chart and run it the EMA9 changes to 15 period and tests with that value and puts a 15 EMA on the chart. I'm not able to change it back so that it stays at 9. How can I prevent that from changing and keep the 9 value I want? I'm hoping I attached two screen captures.
    Click image for larger version

Name:	n1.JPG
Views:	1
Size:	51.8 KB
ID:	890887

    Click image for larger version

Name:	n2.JPG
Views:	1
Size:	86.7 KB
ID:	890888

    #2
    Hello Bkout,

    Thank you for your post.

    You need to change the default value under the "user defined inputs" page of the Strategy Wizard.

    In the strategy parameters, you can also change the 15 to a 9 to change the period.

    You need to change the chart time period from a 15 min chart to whatever time period you want before you set up the strategy.
    Ray S.NinjaTrader Customer Service

    Comment


      #3
      RJ, Thanks for the response however I think something else is going on as I have the value set to 9 see below. When I change the 15 value to 9 in the Parameters area it pops back to 15 as soon as I click in another field. BTW using your existing SMA crossover I was able to change the SMA period values and have it hold. Strangely enough if I change the EMA9 to a value larger than 15 it holds,, but any value less than 15 pops back to 15 --- weird!
      Click image for larger version

Name:	n3.JPG
Views:	1
Size:	49.8 KB
ID:	849953


      Originally posted by NinjaTrader_RJStein View Post
      Hello Bkout,

      Thank you for your post.

      You need to change the default value under the "user defined inputs" page of the Strategy Wizard.

      In the strategy parameters, you can also change the 15 to a 9 to change the period.

      You need to change the chart time period from a 15 min chart to whatever time period you want before you set up the strategy.
      RJ,

      Thanks for the reply, however I think something else is going on as I had the value se to 9 -- see below

      Comment


        #4
        Yes, you have your minimum set to 15.
        You must lower your minimum below 9.
        Ray S.NinjaTrader Customer Service

        Comment


          #5
          ah -- OK -- doh! I thought Min. stood for MINUTE as in the bar interval -- thx!

          Comment


            #6
            Can't set EMA displaced value in wizard

            The EMA indicator inside the wizard does not display the displaced value.
            I tried to create EMA(5) displaced -3 Cross-over SMA(15).
            Please help. Thanks

            Comment


              #7
              Hi philxhong, correct - please use the 'Bars ago' instead for your crossover condition.
              BertrandNinjaTrader Customer Service

              Comment


                #8
                Bertrand, I used 3 bars ago on EMA(5) crossover SMA(15) EnterLongPosition
                0 bars ago on EMA(5) crossover SMA(15) EnterLongPosition
                I got the same result. I need one EnterLongPosition earlier than the other.
                Thanks for you help.

                Comment


                  #9
                  philxhong,

                  I am not sure what you are trying to do. The condition you are outlining right now takes the EMA(5) of 3 bars ago and compares it to the SMA(15) of the current bar. If a cross above of such a condition happens then it will trade. If not then it will not.
                  Josh P.NinjaTrader Customer Service

                  Comment


                    #10
                    Josh,
                    I am trying to make a trade when the EMA(5) displaced -3 crossover SMA(15).
                    Inside the wizard the EMA does not have the option for displacement. So how can I
                    make this happen? Thanks,

                    Comment


                      #11
                      Hi philxhong, you mean like in the attached screenshot? Bars ago set to 3 for your condition...
                      Attached Files
                      BertrandNinjaTrader Customer Service

                      Comment


                        #12
                        Hi Bertrand,
                        Yes, exactly like the screenshot but 3 bars ago dit not get me in a trade sonner than 0 bars ago.

                        Comment


                          #13
                          philxhong,

                          You need to understand what 3 bars ago means. 3 bars ago means it will look at the value of 3 bars ago counting from the current bar. You look at the 4th latest bar. It does not mean trade 3 bars into the past. It evaluates the condition based on the data from that bar and makes the trade on the current bar. You cannot trade in the past. If you wanted to trade back then you need to place the trade back then.
                          Josh P.NinjaTrader Customer Service

                          Comment

                          Latest Posts

                          Collapse

                          Topics Statistics Last Post
                          Started by Sawangold, 09-20-2022, 08:10 AM
                          1 response
                          61 views
                          0 likes
                          Last Post zacwhitesi  
                          Started by trdninstyle, Yesterday, 09:32 AM
                          32 responses
                          179 views
                          0 likes
                          Last Post NinjaTrader_ChelseaB  
                          Started by c4vito, 06-03-2021, 01:11 AM
                          7 responses
                          111 views
                          0 likes
                          Last Post NinjaTrader_Kimberly  
                          Started by ラリー, 09-05-2022, 02:02 PM
                          64 responses
                          526 views
                          0 likes
                          Last Post ラリー  
                          Started by sambathraj, 09-26-2022, 07:28 PM
                          3 responses
                          60 views
                          0 likes
                          Last Post NinjaTrader_ChelseaB  
                          Working...
                          X