Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

MQL to NinjaScript translation request: StepMA 7.1

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

    #16
    Code:
         else{    
             UpBuffer[shift]=EMPTY_VALUE; DnBuffer[shift]=EMPTY_VALUE;
             }
    I'm not sure but I don't think this is needed in NinjaTrader. When I tried to convert a few indicators in the past from MQL, I remember there were a number of things that had no parallel in C#,

    Comment


      #17
      Originally posted by Elliott Wave View Post
      Code:
           else{    
               UpBuffer[shift]=EMPTY_VALUE; DnBuffer[shift]=EMPTY_VALUE;
               }
      I'm not sure but I don't think this is needed in NinjaTrader. When I tried to convert a few indicators in the past from MQL, I remember there were a number of things that had no parallel in C#,
      You're correct, that line is not needed for NT.

      In terms of Color_Code

      1 = Plot the Average Line w/o color indication of trend
      2 = Plot the Average Line w/ color indication of trend w/ Percentage input offset
      3 = Plot the Average Line w/ color indication of trend w/o Percentage input offset

      I made a small modification to the MA_Mode input. The only options are SMA and WMA.

      I updated the code on the original post.
      mrlogik
      NinjaTrader Ecosystem Vendor - Purelogik Trading

      Comment


        #18
        Originally posted by Elliott Wave View Post
        Code:
             else{    
                 UpBuffer[shift]=EMPTY_VALUE; DnBuffer[shift]=EMPTY_VALUE;
                 }
        I'm not sure but I don't think this is needed in NinjaTrader. When I tried to convert a few indicators in the past from MQL, I remember there were a number of things that had no parallel in C#,
        I think the closest in NinjaScript would be the Reset() method which is part of the DataSeries Class.

        Comment


          #19
          NT does not require an output plot to be set on every bar.

          This line is not needed for NT at all.

          I made a few small updates thanks to whitegun. The file from my original post has been updated.
          mrlogik
          NinjaTrader Ecosystem Vendor - Purelogik Trading

          Comment


            #20
            Warning. As currently coded, this indicator will repaint the previous bar. I have seen several instances, on a 1-minute chart of the TF, where a red line will be repainted as blue.

            Comment


              #21
              that is true. It has to in order to connect the different colored lines
              mrlogik
              NinjaTrader Ecosystem Vendor - Purelogik Trading

              Comment


                #22
                StepMA_Stoch_NK indicator request

                Hi !
                Could somebody transform this indicator from MQL4 to Ninja language please? Original .mql4 file posted here: http://codebase.mql4.com/download/8670
                Attached Files

                Comment


                  #23
                  Hello,

                  I will take a look at this one and translate it, time permitting.
                  DenNinjaTrader Customer Service

                  Comment


                    #24
                    Hello,

                    I am just looking at the code now.

                    Do you have a version of this indicator that has readable notes in it? These are the notes:

                    //+---+ +------------------------+


                    With proper notes it will be much easier and quicker to translate for you.
                    DenNinjaTrader Customer Service

                    Comment


                      #25
                      StepMA_Stoch_NK

                      Originally posted by NinjaTrader_Ben View Post
                      Hello,

                      I am just looking at the code now.

                      Do you have a version of this indicator that has readable notes in it? These are the notes:

                      //+---+ +------------------------+


                      With proper notes it will be much easier and quicker to translate for you.
                      Hi!
                      This indicator was created by russian guy, all notes was made in russian. I've tried to find english version, but seems that doesn't exist. I'll translate all russian notes for you.

                      Comment


                        #26
                        Hello,

                        That would be very helpful! Once you post the Russian translation I'll give it a try as a internal training tools. I'm a NinjaScript expert in training!
                        DenNinjaTrader Customer Service

                        Comment


                          #27
                          Originally posted by NinjaTrader_Ben View Post
                          Hello,

                          That would be very helpful! Once you post the Russian translation I'll give it a try as a internal training tools. I'm a NinjaScript expert in training!
                          Done! (text file attached).
                          Hope i didn't missed anything.
                          Attached Files

                          Comment


                            #28
                            Hello,

                            Thanks! I will work on this as a training tool, time permitting.
                            DenNinjaTrader Customer Service

                            Comment


                              #29
                              Hello,

                              Due to time constraints and other commitments I will be unable to complete your translation for you as a training tool. Sorry for any inconvenience. I recommend consulting one of our NinjaScript consultants here:
                              http://www.ninjatrader.com/webnew/partners_onlinetrading_NinjaScript.htm
                              DenNinjaTrader Customer Service

                              Comment


                                #30
                                does anyone have a strategy based on this?

                                Thanks

                                Comment

                                Latest Posts

                                Collapse

                                Topics Statistics Last Post
                                Started by asmmbillah, Today, 08:13 AM
                                0 responses
                                2 views
                                0 likes
                                Last Post asmmbillah  
                                Started by Bionian, Today, 07:07 AM
                                1 response
                                4 views
                                0 likes
                                Last Post NinjaTrader_Jason  
                                Started by averoos, Today, 05:33 AM
                                0 responses
                                5 views
                                0 likes
                                Last Post averoos
                                by averoos
                                 
                                Started by RobotSyndicate, Today, 04:27 AM
                                0 responses
                                4 views
                                0 likes
                                Last Post RobotSyndicate  
                                Started by Ray12345, Today, 04:10 AM
                                0 responses
                                5 views
                                0 likes
                                Last Post Ray12345  
                                Working...
                                X