Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

DoubleMA

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

    DoubleMA

    I like the DoubleMA because it will color the trend.

    I have a problem. When I apply the indicator to YM, the DMA will not plot correctly. See the attached.

    Click image for larger version

Name:	ym.jpg
Views:	1
Size:	404.9 KB
ID:	893973

    #2
    The rounding seems to be off for YM as it has a higher decimals number...you would need to check into the code generating the rounding factor to be applied or contact the original author for input.
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Rollins, the creator, does not receive private messages. Any help?

      Comment


        #4
        Unfortunately you would then need to review the code and debug it for the YM instrument then. You could of course also a consultant to take a look and tweak it for you -

        BertrandNinjaTrader Customer Service

        Comment


          #5
          I took a quick look and added a fix which I believe works ok for YM and does not impact others, please try the attached.
          Attached Files
          BertrandNinjaTrader Customer Service

          Comment


            #6
            Sorry to bug you again but I got an error code saying that the .cs was created in an NT version not compatable with mine. I use 6.5.1000.15.Click image for larger version

Name:	YM2.jpg
Views:	1
Size:	22.9 KB
ID:	856284

            Comment


              #7
              Correct, this was an NT 7 file - you can add the needed code snippet yourself to your 65 code as the decimals are set -

              Code:
              if (Instrument.MasterInstrument.Name == "YM")
              				decimals = 1;
              That should help you out.
              BertrandNinjaTrader Customer Service

              Comment


                #8
                Without the ability to import yours, I cannot view the script to see where to put the snipet. Can you give me a screenshot of where to put the snipet in 6.5?

                Comment


                  #9
                  Please try the attached for 6.5, should be quicker this way - should be the same as NT7 version resultwise.
                  Attached Files
                  BertrandNinjaTrader Customer Service

                  Comment


                    #10
                    Got this error.

                    Click image for larger version

Name:	YM3.jpg
Views:	1
Size:	133.6 KB
ID:	856288

                    Comment


                      #11
                      Then you will need to ensure you're present NinjaScript files are error free and that they compile well, please see here for tips to get to compilable state -

                      BertrandNinjaTrader Customer Service

                      Comment


                        #12
                        I opened an indicator to compile all indicators using F5. It appears to only complile the indicator that I edited? It did not run a compile on all indicators?

                        Something I am doing wrong?

                        Comment


                          #13
                          When you open one script and hit F5 all would be compiled, this is a must as it will be all put into one assembly.

                          Were you able to import my file then afterwards?
                          BertrandNinjaTrader Customer Service

                          Comment


                            #14
                            I dont think all were being compiled. I got no error messages. I deleted DoubleMA. Tried to reinstall the original one from the forum. I am still getting the same error message below.

                            I use DMA for trading and am shutdown.

                            Comment


                              #15
                              Ok, please try deleting the DoubleMA and MAV it would use, then open any indicator and press F5 to recompile all again, then restart NT fresh and reimport my file downloaded to your desktop, still the same issue at hand?
                              BertrandNinjaTrader Customer Service

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by futtrader, Today, 01:16 PM
                              0 responses
                              0 views
                              0 likes
                              Last Post futtrader  
                              Started by Segwin, 05-07-2018, 02:15 PM
                              14 responses
                              1,789 views
                              0 likes
                              Last Post aligator  
                              Started by Jimmyk, 01-26-2018, 05:19 AM
                              6 responses
                              838 views
                              0 likes
                              Last Post emuns
                              by emuns
                               
                              Started by jxs_xrj, 01-12-2020, 09:49 AM
                              6 responses
                              3,294 views
                              1 like
                              Last Post jgualdronc  
                              Started by Touch-Ups, Today, 10:36 AM
                              0 responses
                              13 views
                              0 likes
                              Last Post Touch-Ups  
                              Working...
                              X