Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Need Help w/Mama ninjascript

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

    Need Help w/Mama ninjascript

    I am having trouble setting up the condtions in ninjascript for when the fast limit crosses above and below the slow limit in mama indicator

    #2
    Hello racevedoz,

    Thank you for writing in and welcome to the NinjaScript Support Forum!

    I'm not quite sure what you mean about checking if the fast limit crosses above or below the slow limit. These two items are parameters that would be passed to the MAMA indicator itself. The indicator plots two lines: the Fama line and the default MAMA line. Are you asking how to check if the Fama line is crossing above/below the MAMA line?

    Are you referring to the Strategy Wizard or are you coding this manually through the NinjaScript Editor?
    Last edited by NinjaTrader_ZacharyG; 08-04-2016, 07:53 AM.
    Zachary G.NinjaTrader Customer Service

    Comment


      #3
      Yes, I'm referring to the strategy wizard

      Comment


        #4
        This is my condition 1 , Cross Above(Mama(0.5, Myinput 0).Fama, Mama(Myinput0,.005) Fama,1)

        Comment


          #5
          Hello racevedoz,

          If you wish to check if the Fama line is crossing above or below the MAMA line, follow the steps below:
          • In the Condition Builder, select the MAMA indicator in the left column
          • Enter the parameters to your liking. Ensure that the Fama plot is selected
          • Select CrossAbove (or CrossBelow) as your comparison in the middle column
          • Select the MAMA indicator in the right column, set your parameters, and select MAMA as the plot


          If you wish to check if the MAMA line is crossing above/below the Fama line instead, select MAMA for the first column's plot and Fama for the last column's plot.

          Please, let us know if we may be of further assistance.
          Attached Files
          Zachary G.NinjaTrader Customer Service

          Comment


            #6
            I just don't know how to create the crossover conditions in the strategy wizard

            Comment


              #7
              Ok, let me try that

              Comment


                #8
                I did just that and I get an error code,

                Comment


                  #9
                  Hello racevedoz,

                  Please take a screenshot of the error you are seeing as well as the conditions you have built and attach it to your reply.

                  To send a screenshot with Windows 7 or newer I would recommend using Window's Snipping Tool.

                  Click here for instructions

                  Alternatively to send a screenshot press Alt + PRINT SCREEN to take a screenshot of the selected window. Then go to Start--> Accessories--> Paint, and press CTRL + V to paste the image. Lastly, save as a jpeg file and send the file as an attachment.

                  Click here for detailed instruction
                  Zachary G.NinjaTrader Customer Service

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by TheWhiteDragon, 01-21-2019, 12:44 PM
                  4 responses
                  541 views
                  0 likes
                  Last Post PaulMohn  
                  Started by GLFX005, Today, 03:23 AM
                  0 responses
                  2 views
                  0 likes
                  Last Post GLFX005
                  by GLFX005
                   
                  Started by XXtrader, Yesterday, 11:30 PM
                  2 responses
                  11 views
                  0 likes
                  Last Post XXtrader  
                  Started by Waxavi, Today, 02:10 AM
                  0 responses
                  7 views
                  0 likes
                  Last Post Waxavi
                  by Waxavi
                   
                  Started by TradeForge, Today, 02:09 AM
                  0 responses
                  14 views
                  0 likes
                  Last Post TradeForge  
                  Working...
                  X