Announcement

Collapse
No announcement yet.

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.

    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 -

        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

          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.

              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

                  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 -

                      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?

                          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?

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                              0 responses
                              596 views
                              0 likes
                              Last Post Geovanny Suaza  
                              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                              0 responses
                              343 views
                              1 like
                              Last Post Geovanny Suaza  
                              Started by Mindset, 02-09-2026, 11:44 AM
                              0 responses
                              103 views
                              0 likes
                              Last Post Mindset
                              by Mindset
                               
                              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                              0 responses
                              556 views
                              1 like
                              Last Post Geovanny Suaza  
                              Started by RFrosty, 01-28-2026, 06:49 PM
                              0 responses
                              554 views
                              1 like
                              Last Post RFrosty
                              by RFrosty
                               
                              Working...
                              X