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

Where to start if I want to create a strategy on a trading set-up?

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

    Originally posted by belecona View Post
    Hello everyone

    I'm very grateful for your help and sharing so that my breakout strategy is close to completion.

    It's an unexpected lengthy and scary experience. My heart almost cracked into pieces when I saw the million $ loss on a monthly performance. It's a great learning lesson for me. Thanks for your time and guidance!

    Happy Holidays! Wishing you and your family a Healthy & Prosperous 2013!

    Beth
    I still suggest that you report the issue with the fills that make no sense.

    Comment


      Hello! This question will certainly make you "laugh"!

      Code:
      EnterLongStopLimit(highestHigh+TickSize,High[0],"");
      EnterShortStopLimit(lowestLow-TickSize,Low[0],"");
      I used the above to fix my scary strategy (based on a NinjaTrader sample). Would be great if you can enlighten me the role of High[0]/Low[0]. What does the script tell the system to do??

      Thank you. Have a relaxing weekend.

      Beth

      Comment


        Originally posted by belecona View Post
        Hello! This question will certainly make you "laugh"!

        Code:
        EnterLongStopLimit(highestHigh+TickSize,High[0],"");
        EnterShortStopLimit(lowestLow-TickSize,Low[0],"");
        I used the above to fix my scary strategy (based on a NinjaTrader sample). Would be great if you can enlighten me the role of High[0]/Low[0]. What does the script tell the system to do??

        Thank you. Have a relaxing weekend.

        Beth

        Comment


          Thanks Sledge. Is my code asking the system to enter a StopLimit order @HH+1 tick (or LL-1 tick) + displaying the current H/L? I noticed from the Orders tab a Stop section with price corresponded to the H/L. Please confirm my understanding. Thank you.

          Beth

          Comment


            Originally posted by belecona View Post
            Thanks Sledge. Is my code asking the system to enter a StopLimit order @HH+1 tick (or LL-1 tick) + displaying the current H/L? I noticed from the Orders tab a Stop section with price corresponded to the H/L. Please confirm my understanding. Thank you.

            Beth
            I hope this helps answer your question.





            Definition
            Generates a buy stop limit order to enter a long position.

            Code:
            EnterLongStopLimit(double limitPrice, double stopPrice, string signalName)
            Code:
            EnterLongStopLimit(highestHigh+TickSize,High[0],"");

            limitPrice is highestHigh+TickSize -- The limit price of the order.
            stopPrice is High[0] -- The stop price of the order.
            signalName is ""

            Comment


              Thanks Sledge for your clarification. I may modify my code now that I better understand the function of Stop Price.

              Night-night.

              Beth

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by elirion, Today, 09:32 PM
              0 responses
              5 views
              0 likes
              Last Post elirion
              by elirion
               
              Started by cre8able, Today, 09:15 PM
              1 response
              7 views
              0 likes
              Last Post bltdavid  
              Started by cummish, Today, 08:43 PM
              0 responses
              13 views
              0 likes
              Last Post cummish
              by cummish
               
              Started by Option Whisperer, Today, 07:58 PM
              4 responses
              21 views
              0 likes
              Last Post Option Whisperer  
              Started by ETFVoyageur, 05-07-2024, 07:05 PM
              13 responses
              87 views
              0 likes
              Last Post ETFVoyageur  
              Working...
              X