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

Translating variables

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

    Translating variables

    Hi,

    I'm trying to learn my strategy to recognise an up and down swing in a momentum indicator. So for I could only find how to give the indicator a numbervalue, but as the trends are hard and soft the value is variable. How can I translate this in strategywizard?

    Also, I'm using MAenvelopes. But the wizard only shows the MA55 part and not the bands. As the bands are crucial to my strategy I need to translate candles crossing the bands up and down. Does anyone know how I can translate this aswell?

    Thanks

    #2
    Hello Robert87,

    Thanks for your post and welcome to the forums!

    I'm not entirely certain I understand your momentum question. If the question is that you have created an indicator and it assigns a numeric value, to use that value in a strategy (strategy wizard) that numeric value would need to be exposed such as a plot value.

    For the Ninjatrader MAEnvelopes indicator, I have attached an example strategy wizard condition builder screen where I show the selections made to enter short when price crosses below and closes below the upper MAEnvelope line.

    You can make a similar condition builder in another set for the other side and change the center to CrossAbove and change the MaEnvelope's plot to "Lower"
    Attached Files
    Paul H.NinjaTrader Customer Service

    Comment


      #3
      Thank you Paul, the MA example will work just fine!

      I found examples of momentum indicators like the RSI in wich you need to indicate a rising by adding a value. For example: when RSI line crosses 30 enter ...
      Im using a MACD differential where the rising or falling will not necessarily cross a certain value like the 30 line, because the value is variable. Please excuse my English.

      Comment


        #4
        Hello Robert87,

        Thanks for your reply.

        I'm glad the example will be of assistance.

        If you are using the MACD are you wanting to use the MACD line crossing its average line? Can you post a screenshot of a chart with the MACD condition(s) you are trying to use?

        Note: To post a screenshot, you need to click on the "Go Advanced" button below your reply then select "Manage attachments", choose file and upload and when ready press the submit reply button.
        Paul H.NinjaTrader Customer Service

        Comment


          #5
          Thanks for your quick respond.

          I'm at work now so I could only post an old picture of my former broker/program. The indicator is simulair.
          Attached Files
          Last edited by Robert87; 07-27-2015, 10:11 AM.

          Comment


            #6
            Hello Robert87,

            Thanks for your reply.

            Regrettably I am unable to view your attachment, the link appears broken.

            Alternatively you can attach the picture to an e-mail and send it to Platformsupport[at]Ninjatrader[dot]com Put Atten: Paul and a link to this thread in the subject line.

            Or try reposting when you are able to.
            Paul H.NinjaTrader Customer Service

            Comment


              #7
              I think it will work now. If not, I will send the e-mail.
              Attached Files

              Comment


                #8
                Sorry, still cannot open it.
                Paul H.NinjaTrader Customer Service

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by Touch-Ups, Today, 10:36 AM
                0 responses
                5 views
                0 likes
                Last Post Touch-Ups  
                Started by geddyisodin, 04-25-2024, 05:20 AM
                8 responses
                61 views
                0 likes
                Last Post NinjaTrader_Gaby  
                Started by jxs_xrj, 01-12-2020, 09:49 AM
                4 responses
                3,289 views
                1 like
                Last Post jgualdronc  
                Started by Option Whisperer, Today, 09:55 AM
                0 responses
                5 views
                0 likes
                Last Post Option Whisperer  
                Started by halgo_boulder, 04-20-2024, 08:44 AM
                2 responses
                24 views
                0 likes
                Last Post halgo_boulder  
                Working...
                X