Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Automated Trading System

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

    Automated Trading System

    Hi,

    How can I put the following in the New Strategy Wizard:

    When the fast SMA crosses above the slow SMA I want the system to buy, but wait until the difference between de fast and slow SMA is 4 ticks.

    Thanks,
    Daan

    #2
    Hello Daan,

    For this you may be able to offset the value of one of these SMA indicators. Help for defining crossovers and offsetting values is available here:


    Define SMA fast on the left with the 4 tick offset.
    Set CrossAbove in the middle.
    Define SMA slow on the right.
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Are you sure?

      Any other details I should apply? Any configuration in the "Data Series"?

      Comment


        #4
        Give it a try and let us know if you run into any snags setting it up or running.
        Ryan M.NinjaTrader Customer Service

        Comment


          #5
          It doesn't work when I only set the "Offset" of the fast SMA. This is what I've got:

          Fast SMA
          Period: 3
          Offset Type: ticks
          Offset: 4

          Slow SMA
          Period: 13
          Offset Type: ticks
          Offset: 0

          Middle
          CrossAbove

          Should I change any details within the "New Strategy" setup? How should I define the "Data Series"?

          Thanks,
          Daan
          Last edited by Daan Pothof; 02-21-2011, 02:04 PM.

          Comment


            #6
            Can you please clarify what isn't working exactly?
            Ryan M.NinjaTrader Customer Service

            Comment


              #7
              It does buy the contract when the two lines cross, but it doesn't wait until they differ 4 ticks from each other.

              Comment


                #8
                That offset will raise the value of the fast indicator so that the condition won't be true until the sma fast value + 4 ticks crosses above the slow.

                If you want to setup a two-step process where a second condition is only evaluated after the first, you can sequence these using user variables. There's a sample available that you can import and then edit to see how it's setup exactly using the strategy wizard:
                Ryan M.NinjaTrader Customer Service

                Comment


                  #9
                  But how does it work in this specific instance?

                  Comment


                    #10
                    Sorry - I'm not sure what you're looking for. If you are looking for strategy development services, our NinjaScript constultants can be hired to develop strategies for you:


                    We are happy to point in the right direction to documentation and are willing to help you work through many issues, but please provide some feedback on what you've tried, what you expected it to do, and what you are seeing instead.
                    Ryan M.NinjaTrader Customer Service

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by DJ888, 04-16-2024, 06:09 PM
                    6 responses
                    18 views
                    0 likes
                    Last Post DJ888
                    by DJ888
                     
                    Started by Jon17, Today, 04:33 PM
                    0 responses
                    1 view
                    0 likes
                    Last Post Jon17
                    by Jon17
                     
                    Started by Javierw.ok, Today, 04:12 PM
                    0 responses
                    6 views
                    0 likes
                    Last Post Javierw.ok  
                    Started by timmbbo, Today, 08:59 AM
                    2 responses
                    10 views
                    0 likes
                    Last Post bltdavid  
                    Started by alifarahani, Today, 09:40 AM
                    6 responses
                    41 views
                    0 likes
                    Last Post alifarahani  
                    Working...
                    X