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

Oscillator of Moving Average (OsMA) indicator

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

    Oscillator of Moving Average (OsMA) indicator

    Hello All,

    Appreciate if any of you can help me create an Oscillator of Moving Average (OsMA) indicator.

    I don't have any programming knowledge. But I did some research and here are couple of useful links.

    ForexRealm is a cryptocurrency and investment-focused blog, providing valuable insights and information on the world of crypto trading and investment strategies.




    I also found a script on MetaTrader which I am attaching that can be used for converting into a NinjaTrader Indicator.

    Thank you for your help in advance.

    Mai
    Attached Files

    #2
    Mai, welcome to our support forums at NinjaTrader - you can give this OsMA indicator posted on the forums some time ago a try - http://www.ninjatrader-support2.com/...7&d=1236178596
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Bertrand, this is exactly what I was looking for. Thanks for your help. I will try to enhance the script to incorporate colors (Red and Green) based on the oscillator values, and submit it back to the community.

      Best,

      Mai

      Comment


        #4
        Great, thanks for reporting back!
        BertrandNinjaTrader Customer Service

        Comment


          #5
          Hello, anyone have this indicator for Ninjatrader 8 ???

          Comment


            #6
            Hello contrax,

            Thank you for your post.

            Attached is the OsMA for NinjaTrader 8. Keep in mind this is simply the Diff plot of the MACD.
            Attached Files

            Comment


              #7
              Originally posted by NinjaTrader_PatrickH View Post
              Hello contrax,

              Thank you for your post.

              Attached is the OsMA for NinjaTrader 8. Keep in mind this is simply the Diff plot of the MACD.

              Excellent! Thank you!

              Comment


                #8
                Originally posted by NinjaTrader_PatrickH View Post
                Hello contrax,

                Thank you for your post.

                Attached is the OsMA for NinjaTrader 8. Keep in mind this is simply the Diff plot of the MACD.
                The Indicator is excellent! Is possible to have double colour for the up and other colour for the down? If not its ok! Thank you for ur support!

                Comment


                  #9
                  Hello contrax,

                  Thank you for your response.

                  Keep in mind we do not provide programming services. However, this is a simple addition to the code that I have attached here.

                  If you are interested in learning NinjaScript please refer to the links below:
                  Please let me know if you have any questions.
                  Attached Files

                  Comment


                    #10
                    Originally posted by NinjaTrader_PatrickH View Post
                    Hello contrax,

                    Thank you for your response.

                    Keep in mind we do not provide programming services. However, this is a simple addition to the code that I have attached here.

                    If you are interested in learning NinjaScript please refer to the links below:
                    Please let me know if you have any questions.

                    Thank you PatrickH, and yes i know and thank you again for ur time and support.

                    The indicator its fine but the colour that im looking is for when the value is going up (example, red and green colours), when the value is going up, Green, and when the value is going down, Red.

                    Right now the indicator change the color Above and Bellow of Zero.

                    I want when the current bar is above of previous bar, want the green colour... And if the current bar is bellow from previous bar, red colour.

                    If is easy and u have time, im going to appreciate it PatrickH. If not, its ok with the indicator, Thank you a lot!!!

                    Comment


                      #11
                      Hello contrax,

                      Thank you for your response.

                      This is a simple change to line 106 as seen below:
                      Code:
                      				if (Diff[0] > Diff[1])
                      					PlotBrushes[0][0] = UpBrush;
                      				else if (Diff[0] < Diff[1])
                      					PlotBrushes[0][0] = DownBrush;
                      				else
                      					PlotBrushes[0][0] = PlotBrushes[0][1];
                      I have attached the edit to this post as well.
                      Attached Files

                      Comment


                        #12
                        Originally posted by NinjaTrader_PatrickH View Post
                        Hello contrax,

                        Thank you for your response.

                        This is a simple change to line 106 as seen below:
                        Code:
                        				if (Diff[0] > Diff[1])
                        					PlotBrushes[0][0] = UpBrush;
                        				else if (Diff[0] < Diff[1])
                        					PlotBrushes[0][0] = DownBrush;
                        				else
                        					PlotBrushes[0][0] = PlotBrushes[0][1];
                        I have attached the edit to this post as well.

                        Excellent PatrickH!!!!! Amazing!! Thank you! Thats all

                        Comment

                        Latest Posts

                        Collapse

                        Topics Statistics Last Post
                        Started by timmbbo, Today, 08:59 AM
                        1 response
                        2 views
                        0 likes
                        Last Post NinjaTrader_ChelseaB  
                        Started by KennyK, 05-29-2017, 02:02 AM
                        2 responses
                        1,281 views
                        0 likes
                        Last Post marcus2300  
                        Started by fernandobr, Today, 09:11 AM
                        0 responses
                        3 views
                        0 likes
                        Last Post fernandobr  
                        Started by itrader46, Today, 09:04 AM
                        1 response
                        6 views
                        0 likes
                        Last Post NinjaTrader_Clayton  
                        Started by bmartz, 03-12-2024, 06:12 AM
                        5 responses
                        33 views
                        0 likes
                        Last Post NinjaTrader_Zachary  
                        Working...
                        X