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

No Trade Zone

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

    No Trade Zone

    When the market goes sideways, as shown in attached picture, I'd like to make it a no trade zone in a strategy. What would be the best way to accomplish/program this?

    Thanks,

    Terence
    Attached Files

    #2
    Hello Terence,

    What are the exact rules you want to code into a script?

    Are you looking for the highest high not to be more than a certain amount of ticks from the lowest low within a specific amount of bars?

    You can also contact one of our professional NinjaScript Consultants who would be eager to create or modify this script at your request or assist you with your script. Please let me know if you would like our business development follow up with you with a list of professional NinjaScript Consultants who would be happy to create this script or any others at your request.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_ChelseaB View Post
      Hello Terence,

      What are the exact rules you want to code into a script?

      Are you looking for the highest high not to be more than a certain amount of ticks from the lowest low within a specific amount of bars?

      You can also contact one of our professional NinjaScript Consultants who would be eager to create or modify this script at your request or assist you with your script. Please let me know if you would like our business development follow up with you with a list of professional NinjaScript Consultants who would be happy to create this script or any others at your request.
      Hello Chelsea,

      You can see in the square I placed on the picture that the market is sideways at this time however it is still causing the MacD to cross over in a sideways market which isn't good. Trying to figure out a way to stop trading when it get's sideways.

      Thought someone might have a quick "here is what you need to do" answer.

      Merry Christmas Chelsea. Here is to a healthy 2017.

      Peace,

      Terence.

      Comment


        #4
        Hello Segwin,

        What are the exact rules that define something as "sideways"?
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Originally posted by NinjaTrader_ChelseaB View Post
          Hello Segwin,

          What are the exact rules that define something as "sideways"?
          I would say the highs and lows stay pretty much the same for X amount of time.

          Comment


            #6
            Hello Segwin,

            Programming rules are exact.

            Are you wanting a condition that looks for the high and low of 10 bars in a row to be exactly the same?

            Are you wanting the high of the previous 10 bars in a row to not be greater than the current bars high plus 3 ticks and the low of the previous 10 bars in a row to not be less than the current bars low minus 3 ticks?

            What are the exact rules you are looking for?
            Chelsea B.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by trilliantrader, Today, 08:16 AM
            0 responses
            3 views
            0 likes
            Last Post trilliantrader  
            Started by AttiM, 02-14-2024, 05:20 PM
            9 responses
            174 views
            0 likes
            Last Post NinjaTrader_BrandonH  
            Started by funk10101, Today, 08:14 AM
            0 responses
            2 views
            0 likes
            Last Post funk10101  
            Started by adeelshahzad, Today, 03:54 AM
            1 response
            13 views
            0 likes
            Last Post NinjaTrader_BrandonH  
            Started by RookieTrader, Today, 07:41 AM
            1 response
            5 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Working...
            X