• 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

How can I make day of week boolean value on strategy Builder?

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

    #16
    Hello rickyblah12,

    Thank you for your reply.

    I wanted to clarify, are you trying to make a day selection which will allow only 1 day of the week to trade or just make it so only what is selected is traded I.E. 2 or 3 days a week? The images seem to be cut off in the middle so they would not specifically help in this context, additionally, we would need to see the rest of the conditions you made to know how this should be working overall. For this question, it would likely be helpful if you can upload the whole script so we can see all of what you have done so far. Could you attach the strategy for review? https://ninjatrader.com/support/help...tAsSourceFiles

    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment


      #17
      the strategy is just a simple sma crossover strategy...n trade whatever days I select only

      Comment


        #18
        Hello rickyblah12,

        Thank you for the additional detail.

        Unfortunately, this would not help me to better understand what is happening with your last question.

        everything works fine the only problem is when only one box is checked the others will still take trades on those days
        ..how do i fix this
        You are asking about multiple conditions or sets from what I can gather however from the images provided I cannot see all of the details that I would need to formulate an answer. Would it be possible to attach the script so we can review the script together?

        Please let me know if I may be of further assistance.
        JesseNinjaTrader Customer Service

        Comment


          #19
          Originally posted by NinjaTrader_ChelseaB View Post
          Hello
          what u think chelsea

          Comment


            #20
            Hello rickyblah12,

            Below is a link to video demonstrating checking that a bool named Monday is checked and there is a cross above, to draw a dot if the condition is true. This example only draws dots when there is a cross above if the day of week is monday and if the bool named Monday is checked.

            https://drive.google.com/file/d/1U_k...w?usp=drivesdk
            Chelsea B.NinjaTrader Customer Service

            Comment


              #21
              Originally posted by NinjaTrader_ChelseaB View Post
              Hello rickyblah12,

              Below is a link to video demonstrating checking that a bool named Monday is checked and there is a cross above, to draw a dot if the condition is true. This example only draws dots when there is a cross above if the day of week is monday and if the bool named Monday is checked.

              https://drive.google.com/file/d/1U_k...w?usp=drivesdk
              ok thank you that video was very helpful...how would I make a drop down for a input I tried everything...for example if I want to choose between 3 different options for any indicator but on the strategy menu

              Comment


                #22
                Hello rickyblah12,

                For a drop-down you would need to unlock the script and add this code by hand. It would be a public DayOfWeek property.

                However, when I suggested a drop-down I was not fully understanding what you were wanting to achieve. The drop-down would be used for the user selecting a DayOfWeek value and comparing to see if the bar's DayOfWeek is equal to the selected value.
                Chelsea B.NinjaTrader Customer Service

                Comment


                  #23
                  the drop down is for something else

                  Comment


                    #24
                    Hello rickyblah12,

                    Enums properties will make a drop-down.
                    https://ninjatrader.com/support/help...ned_parame.htm

                    A DayOfWeek property would also result in a drop-down.
                    Chelsea B.NinjaTrader Customer Service

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by priceisking, Today, 05:33 PM
                    0 responses
                    3 views
                    0 likes
                    Last Post priceisking  
                    Started by vivekniwas, Today, 02:15 PM
                    1 response
                    14 views
                    0 likes
                    Last Post NinjaTrader_ChrisL  
                    Started by fibbee, Today, 02:06 PM
                    1 response
                    11 views
                    0 likes
                    Last Post NinjaTrader_Tyler  
                    Started by Spaggetti Ninjja, Today, 01:23 PM
                    1 response
                    9 views
                    0 likes
                    Last Post NinjaTrader_PatrickG  
                    Started by rexsole, Today, 12:34 PM
                    1 response
                    7 views
                    0 likes
                    Last Post NinjaTrader_PatrickG  
                    Working...
                    X