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

Offset Percent inquire

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

    Offset Percent inquire

    Hello Sir,

    I tired every thing but it is not working some thing is worng.

    I want to identify Moving average X percent decreased bars. Check the attached file and let me know what is worng why it is not working.

    awaiting

    thanks

    regards,
    Faraz
    Attached Files

    #2
    If you want to offset 4 percent you need to do 0.04 not 4.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Hi Josh,

      issue is it is not work at all not for 4 not for 0.4 or 0.04...


      awaiting

      Comment


        #4
        Not sure what you mean. What are you trying to do? 4 means a 400% offset. This is a very rare condition if not impossible for a SMA to differ that much within the time span of one bar.

        This is what your screenshot is saying right now:
        When the SMA of period 2 of the current bar is less than the 4x the SMA of period 2 of the previous bar, draw a square.

        Then you are drawing on your square 3 ticks below the Donchian Channel. Please ensure your chart has this price range visible for you to see the square.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          Originally posted by NinjaTrader_Josh View Post
          Not sure what you mean. What are you trying to do? 4 means a 400% offset. This is a very rare condition if not impossible for a SMA to differ that much within the time span of one bar.

          This is what your screenshot is saying right now:
          When the SMA of period 2 of the current bar is less than the 4x the SMA of period 2 of the previous bar, draw a square.

          Then you are drawing on your square 3 ticks below the Donchian Channel. Please ensure your chart has this price range visible for you to see the square.

          Dear Josh,

          I mean that I have tried it on 0.04, 0.4 and 4 but it is not working at all on any Percentage. Infact I think it is not recognizing the Percent numbers which i put in the strategy. I am going to attach the strategy you test it your self. Run it on 233 tick chart on ES contract.

          awaiting
          Attached Files

          Comment


            #6
            Hi mohdfraz, please make sure your condition evaluates to true, i.e. the percentage you look is achieved within one bar. Also for your falling SMA condition you would need to check for a negative offset value, try something like -0.0004.
            BertrandNinjaTrader Customer Service

            Comment


              #7
              thanks alot Bertrand puting negative value worked.

              Have a great day

              regards/ Faraz

              Comment


                #8
                Great it works Faraz!
                BertrandNinjaTrader Customer Service

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by mmenigma, Today, 02:22 PM
                1 response
                3 views
                0 likes
                Last Post NinjaTrader_Jesse  
                Started by frankthearm, Today, 09:08 AM
                9 responses
                35 views
                0 likes
                Last Post NinjaTrader_Clayton  
                Started by NRITV, Today, 01:15 PM
                2 responses
                9 views
                0 likes
                Last Post NRITV
                by NRITV
                 
                Started by maybeimnotrader, Yesterday, 05:46 PM
                5 responses
                26 views
                0 likes
                Last Post NinjaTrader_ChelseaB  
                Started by quantismo, Yesterday, 05:13 PM
                2 responses
                21 views
                0 likes
                Last Post quantismo  
                Working...
                X