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

Help Needed to Create NT Indicators

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

    Help Needed to Create NT Indicators

    Hello, I need someone to code 2 indicators for NT. I have no experience with coding for NT so I have no ability to help with this. If these indicators are not simple to code I would appreciate an experienced coder letting me know what they would charge to code these 2 indicators for me and the time frame needed... these indicators will be used on tick based charts if it matters...

    (1) An indicator that sounds an alarm once each time a new tick bar opens or if the ticks are jumping too fast to catch the open then the indicator needs to sound the alarm as quickly as possible when a new bar is formed...The indicator needs to be able to have the alarm sound changed if needed...

    (2) An indicator that sounds an alarm once when the high or low of the immediate previous bar is taken (by 1 tick) by the current tick bar. Then the indicator resets and repeats every bar for the breakout of next previous bar by the current bar. The alarms for the high and low breakouts need to be different sounds that can be changed if needed...

    I have tried the tick countdown alarm posted here to use in place of indicator 1 but the problem is that if you have the countdown set to 5 then in a fast market the alarm does not sound because as the tics countdown the tics may jump from 20 and skip to the next bar. If you set the countdown to 50 it may still get jumped over or you may have the alarm sound 50 times. This just not work for my needs...

    Thank you for reading this and I would really appreciate someones help to code these 2 indicators and am willing to pay for these if needed...Thank you...

    Joe
    jcansler2 [AT] cmaaccess [DOT] com
    Last edited by NinjaTrader_JC; 09-13-2013, 07:25 AM.

    #2
    I will be following up with you directly at the requested email
    LanceNinjaTrader Customer Service

    Comment


      #3
      Converting MT4 Indicator to Ninja Trader 7

      Good Day everyone,

      I would really appreciate if a skilled person could help with this task.
      I would like to be able to apply the Murrey Math Line X Indicators from MT4 to my Ninja Trader platform.
      I am at this time using on NT the MurreyMathV701 Indicator for NT but as you will see on the screen-shot below I would like to be able to adjust the parameters for Intraday on a 5mn chart.
      Please see below all attach files with the code source from MT4 the MurreyMathV701.zip Indicator for NT and both screen-shot from MT4 and NT.
      Any help would be greatly appreciate.
      I can be reached at : [email protected]

      nicosxm
      Attached Files

      Comment


        #4
        Hello,

        Thank you for your post. Consider also contacting one of our consultants here as they should be able to further assist you with this: http://www.ninjatrader.com/Ecosystem/NonBroker.php#81
        LanceNinjaTrader Customer Service

        Comment


          #5
          Problem with modifiung Indicator properties

          I developed an indicator, which calculate signals for potentially placing orders for scalping. I used the wizard to create the Indicator with no parameters and no plots. I added DrawText command and verified that the Indicator does what it need to do. I then added a Strategy, which calls the indicator and reference its properties.

          Originally the Indicator used DataSeriuos, as properties, with serialized commands such as:
          #region Properties

          // This is where we expose the results
          [Browsable(false)]
          [XmlIgnore()]
          public IntSeries PeriodCurBarNumber
          {
          get {return periodCurBarNumber;}
          }

          [Browsable(false)]
          [XmlIgnore()]
          public DataSeries PerivousPeriodHigh
          {
          get {return perivousPeriodHigh;}
          }

          [Browsable(false)]
          [XmlIgnore()]
          public DataSeries PerivousPeriodLow
          {
          get {return perivousPeriodLow;}
          }
          #endregion
          Since I only need to reference the last value ([0]), I decided to replace the IntSeries & DataSeries with int and double. Doing so, I changed the properties code to:
          #region Properties

          // This is where we expose the results
          // [Browsable(false)]
          // [XmlIgnore()]
          public int CurBarInPeriod
          {
          get {return curBarInPeriod;}
          }

          // [Browsable(false)]
          // [XmlIgnore()]
          public double ShortSignal
          {
          get {return shortSignal;}
          }

          // [Browsable(false)]
          // [XmlIgnore()]
          public double LongSignal
          {
          get {return longSignal;}
          }
          #endregion
          The properties doesn't transfer, and I ony get zero (0) values.

          I looked at the MADC example and tried to change the
          HTML Code:
          #region NinjaScript generated code. Neither change nor remove.
          , but after compiling, the code return to its original state.

          Can you help please?

          My email is [email protected]

          Regards.

          Comment


            #6
            Hello,

            I would need to see the complete source files in order to further know why a property would not return what you expect.

            We cannot support any modification of the #region NinjaScript generated code. Neither change nor remove section.

            Your NinjaScript / C# Code will always be logically processed and evaluate according to your set logic – this can of course lead to unexpected results at times, thus we would suggest to simplify and debug your code to better understand the event sequence it would go through



            Source files located in (MY)Documents\NinjaTrader 7\bin\Custom\Strategy or Indicator

            Let me know how I can best further assist.
            LanceNinjaTrader Customer Service

            Comment


              #7
              Problem with modifying Indicator properties

              Hello NinjaTrader_Lance and thank for your quick response.

              I attach my sources of both the Indicator and the Strategy which call it. At the moment they are communicating over 4 arrays (IntSeries CurBarInPeriod, DataSeries LongSignal, DataSeries ShortSignal, IntSeries SignalType), but it can be more efficient if it would be just 4 simple parameters (Int, Double, Double, Int).

              Thanks again for your support.
              Attached Files

              Comment


                #8
                Hello,

                Thank you for the files and clarification. Exposing a set variable works a little different than a series.

                Use this as it will allow you to update the values

                Code:
                [Browsable(false)]
                        [XmlIgnore()]
                        public double ExposedVariable
                        {
                			// We need to call the Update() method to ensure our exposed variable is in up-to-date.
                            get { Update(); return exposedVariable; }
                        }
                Here is a great example of exposing values that are not plots: http://www.ninjatrader.com/support/f...ead.php?t=4991

                Let me know if I can further assist.
                LanceNinjaTrader Customer Service

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by judysamnt7, 03-13-2023, 09:11 AM
                4 responses
                59 views
                0 likes
                Last Post DynamicTest  
                Started by ScottWalsh, Today, 06:52 PM
                4 responses
                36 views
                0 likes
                Last Post ScottWalsh  
                Started by olisav57, Today, 07:39 PM
                0 responses
                7 views
                0 likes
                Last Post olisav57  
                Started by trilliantrader, Today, 03:01 PM
                2 responses
                21 views
                0 likes
                Last Post helpwanted  
                Started by cre8able, Today, 07:24 PM
                0 responses
                10 views
                0 likes
                Last Post cre8able  
                Working...
                X