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

Tab 1&2 Ture then Tab3 is True

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

    Tab 1&2 Ture then Tab3 is True

    Hello

    Chech attached in Strategy Wizard, When Tab1 and Tab2 is True then i want Tab 3 to become ture and place arow.

    I would be thankfull if you advise me in detail how to do it.

    thanks

    regards/Faraz
    Attached Files

    #2
    Hi mohdfraz, you can set user variables in your Set1 and Set2 as actions. Then you can check in Set3 if those user variables have your defined value for a 'true' condition, for example 1 and Draw the arrow. Just remember to reset the user variables in the actions field when you draw the arrow in Set3.

    Please see this link for more info - http://www.ninjatrader-support.com/H...nedInputs.html
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Hi Bertrand,

      the link u gave go no such example. it is advising how to use User input variables and i know that how to do that.

      secondly my tab 1 and tab 2 both got around 8 conditions when all tab 1 & 2 conditions r true then Tab 3 should become ture and place arrow.....

      Please advise again in more detail.

      awaiting

      Comment


        #4
        In Set 1, add an action of Variable0 = 1. In Set 2, add an action of Variable1 = 1. In Set 3, check Variable0 and Variable1 to be equal to 1. If they are 1 then you know Set 1 and 2 are true so you can now do Set 3.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          Hi Josh

          It did not worked, check the attached file i did as you discribed but no luck.

          awaiting

          regards
          Faraz
          Attached Files

          Comment


            #6
            Hi mohdfraz, you will need to move the Variables from Set1 and Set2 in the lower action / 'Do the following' field, otherwise they are never set.
            BertrandNinjaTrader Customer Service

            Comment


              #7
              Hi,

              It still did not worked. Please check the attached.
              Attached Files

              Comment


                #8
                Hi mohdfraz, move the check for the Variables from the right shot in the upper portion and it should work.
                BertrandNinjaTrader Customer Service

                Comment


                  #9
                  Hi,

                  Well i tried both on the right side Set 3 settings and on the left side Set 3 settings as well but it is not working. check the attached file again i did it again as per your insturctions but still it is not working. if you like i can send you the code and you can test it your self.

                  awaiting

                  regards/ faraz
                  Attached Files

                  Comment


                    #10
                    Hi mohdfraz, not sure what you are trying to achieve - your drawing could be realized with one set without the need for user variables. Feel free to attach your strategy here and I will be happy to take a look.
                    BertrandNinjaTrader Customer Service

                    Comment


                      #11
                      Ok check the attached strategy, I want when Set 1 and Set 2 is True, then in Set 3 become true and place arow.

                      This is a smal test logic i created just to understand how it can be possible other wise my main theory is bit lenghty.

                      awaiting

                      regards/ Faraz
                      Attached Files

                      Comment


                        #12
                        Ok, I see - please check my attached screenshot - you need to reset both variables in Set3 to 0 upon drawing the diamond...
                        Attached Files
                        BertrandNinjaTrader Customer Service

                        Comment


                          #13
                          Bertrand You are the MAN,, Thank you Thank you Thank you,,, Briliant work,,, Thanks alot you solved it...

                          And thanks to all Ninja Support team you guys are are very efficiant.

                          Have a great day.

                          Comment


                            #14
                            Thank you for your kind words, great it works!
                            BertrandNinjaTrader Customer Service

                            Comment

                            Latest Posts

                            Collapse

                            Topics Statistics Last Post
                            Started by Stanfillirenfro, Today, 07:23 AM
                            9 responses
                            23 views
                            0 likes
                            Last Post NinjaTrader_ChelseaB  
                            Started by George21, Today, 10:07 AM
                            0 responses
                            8 views
                            0 likes
                            Last Post George21  
                            Started by DayTradingDEMON, Today, 09:28 AM
                            3 responses
                            19 views
                            0 likes
                            Last Post NinjaTrader_ChelseaB  
                            Started by navyguy06, Today, 09:28 AM
                            1 response
                            6 views
                            0 likes
                            Last Post NinjaTrader_Gaby  
                            Started by cmtjoancolmenero, Yesterday, 03:58 PM
                            8 responses
                            32 views
                            0 likes
                            Last Post NinjaTrader_ChelseaB  
                            Working...
                            X