• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

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 superkolleech, Today, 12:46 AM
            1 response
            11 views
            0 likes
            Last Post MojoJojo  
            Started by davidwade, Today, 02:51 AM
            0 responses
            3 views
            0 likes
            Last Post davidwade  
            Started by aviat72, 04-26-2020, 09:41 PM
            10 responses
            92 views
            0 likes
            Last Post kissandfly  
            Started by healthooa, Today, 01:28 AM
            0 responses
            7 views
            0 likes
            Last Post healthooa  
            Started by harjinderjit, Yesterday, 08:24 PM
            0 responses
            20 views
            0 likes
            Last Post harjinderjit  
            Working...
            X