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

Daily High and Daily Low

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

    Daily High and Daily Low

    Click image for larger version  Name:	DAILY.png Views:	0 Size:	11.7 KB ID:	1221091

    I would like to insert a condition in the strategy builder, when the current price is equal to the daily high I buy, when it is equal to the daily low I sell. I didn't find this in the conditions screen.
    Click image for larger version  Name:	conditions.png Views:	0 Size:	30.1 KB ID:	1221092

    #2
    Hello marcusjunior,
    1. On the left select Price -> Close to select the current market price.
    2. In the center select Equals.
    3. On the right select Indicator -> CurrentDayOHL -> select CurrentLow from the Value plot drop-down.
    Below I am providing a link to a forum post with helpful resources on getting started with NinjaScript and C#.
    https://ninjatrader.com/support/foru...pts#post786040

    Be sure to watch the 'Automate Your Trading with NinjaTrader's Strategy Builder' training video.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_ChelseaB View Post
      Hello marcusjunior,
      1. On the left select Price -> Close to select the current market price.
      2. In the center select Equals.
      3. On the right select Indicator -> CurrentDayOHL -> select CurrentLow from the Value plot drop-down.
      Below I am providing a link to a forum post with helpful resources on getting started with NinjaScript and C#.
      https://ninjatrader.com/support/foru...pts#post786040

      Be sure to watch the 'Automate Your Trading with NinjaTrader's Strategy Builder' training video.
      Thank you very much Chelsea , I'll follow the link

      Comment


        #4
        Originally posted by NinjaTrader_ChelseaB View Post
        Hello marcusjunior,[LIST=1]
        As well as links to the help guide with example conditions that can be setup in the Strategy Builder.
        Conditions examples —https://ninjatrader.com/support/help...on_builder.htm
        Actions examples — https://ninjatrader.com/support/help...us/actions.htm​.
        these two links don't work. Do you have updates?

        Comment


          #5
          Hello marcusjunior,

          I can confirm these links work and are links to the help guide.

          Are you clicking the link or are you copying and pasting the link?

          You can also right-click the link and select open link in new tab.
          Chelsea B.NinjaTrader Customer Service

          Comment


            #6
            Originally posted by NinjaTrader_ChelseaB View Post
            Hello marcusjunior,

            I can confirm these links work and are links to the help guide.

            Are you clicking the link or are you copying and pasting the link?

            You can also right-click the link and select open link in new tab.
            I understand, it is not available in my language, but it is available in English. Thanks.

            Comment


              #7
              Originally posted by NinjaTrader_ChelseaB View Post
              Hello marcusjunior,
              1. On the left select Price -> Close to select the current market price.
              2. In the center select Equals.
              3. On the right select Indicator -> CurrentDayOHL -> select CurrentLow from the Value plot drop-down.
              Below I am providing a link to a forum post with helpful resources on getting started with NinjaScript and C#.
              https://ninjatrader.com/support/foru...pts#post786040

              Be sure to watch the 'Automate Your Trading with NinjaTrader's Strategy Builder' training video.
              Hi Chelsea

              I would like to compare the sum of the first five buy orders with the sum of the first five sell orders in the order book. Is it possible in the strategy builder or just the command line?​
              I assume it's 'MarketDepth' but I don't know how to sum the first five buy levels and compare to the sum of the five sell offers.
              https://ninjatrader.com/support/help...arketdepth.htm
              Last edited by marcusjunior; 10-28-2022, 12:30 PM.

              Comment


                #8
                Hello marcusjunior,

                This would not be available in the Strategy Builder. You would need to unlock the script and code by hand.

                Yes, this would be the OnMarketDepth() override.

                Below is a link to the help guide.


                And to a reference sample.


                You would need to store all of the levels to a collection. You can then loop through the collection.
                Chelsea B.NinjaTrader Customer Service

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by rjm1903, Today, 04:14 PM
                0 responses
                5 views
                0 likes
                Last Post rjm1903
                by rjm1903
                 
                Started by sidlercom80, 04-05-2021, 09:27 AM
                7 responses
                177 views
                0 likes
                Last Post Unsuitable  
                Started by Zinger357, Today, 04:08 PM
                0 responses
                4 views
                0 likes
                Last Post Zinger357  
                Started by sy2023, 09-15-2023, 08:51 PM
                4 responses
                248 views
                0 likes
                Last Post Crusade12  
                Started by JosephHansen, Today, 12:35 PM
                0 responses
                5 views
                0 likes
                Last Post JosephHansen  
                Working...
                X