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

stochastic cross strategy

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

    stochastic cross strategy

    Hi,

    I am looking to create a basis stochastic strategy that sells when the stochastic crosses above 80 and buys when it crosses below 20, having some trouble creating this in the wizard, could anyone share some help or pointers, thanks

    #2
    Hello dannypark100,

    The Stochastics has two plots: the D plot and the K plot. As you have not specified which of these I've created a screenshot that shows this with the K plot selected in the Plot field.

    Attached a screenshots of how this would look.

    Also below is a link to a video tutorial on using the Strategy Wizard.
    https://www.youtube.com/watch?v=FmBi...56536A44DD7105
    Attached Files
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      This is very close to what I am trying to do.

      What would be the procedure be if I wanted to enter a short trade when the K and D cross over the 80 and enter a long trade when the K and D cross below the 20 ?

      Would I just add the same condition for the K then say set 2 for the D cross so both would have to cross to enter a trade?

      I mean the K cross would be set as set 1 and then the D cross set as set 2 so both conditions would have to be met to enter a trade ?


      I think this is what DannyPark100 meant ?

      Many thanks
      Last edited by fredfred123; 07-14-2017, 08:53 AM.

      Comment


        #4
        Hello fredfred123,

        You would need to add two conditions to that condition set.

        The first would select Stochastics on the left with the plot set to K, the operator in the center set to CrossAbove, and Misc -> Numeric value selected on the right -> with 80 as the value.

        The second would select Stochastics on the left with the plot set to D, the operator in the center set to CrossAbove, and Misc -> Numeric value selected on the right -> with 80 as the value.

        The action for that action set would be Order management -> Enter short position.


        Then in a different condition set you would add two conditions.

        The first would select Stochastics on the left with the plot set to K, the operator in the center set to CrossBelow, and Misc -> Numeric value selected on the right -> with 20 as the value.

        The second would select Stochastics on the left with the plot set to D, the operator in the center set to CrossBelow, and Misc -> Numeric value selected on the right -> with 20 as the value.

        The action for that action set would be Order management -> Enter long position.
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Thank you very much.

          I will give that a go!

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Waxavi, Today, 02:10 AM
          0 responses
          2 views
          0 likes
          Last Post Waxavi
          by Waxavi
           
          Started by TradeForge, Today, 02:09 AM
          0 responses
          4 views
          0 likes
          Last Post TradeForge  
          Started by Waxavi, Today, 02:00 AM
          0 responses
          2 views
          0 likes
          Last Post Waxavi
          by Waxavi
           
          Started by elirion, Today, 01:36 AM
          0 responses
          4 views
          0 likes
          Last Post elirion
          by elirion
           
          Started by gentlebenthebear, Today, 01:30 AM
          0 responses
          4 views
          0 likes
          Last Post gentlebenthebear  
          Working...
          X