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

BB_Squeeze_Alert

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

    BB_Squeeze_Alert

    I've been using the indicator BB_Squeeze_Alert which sounds an alert when coming out of the squeeze (red to green dot). I would like the alert to sound when going into the squeeze (green to red dot). Could someone help me as I don't know how to program? I've attached the file. Thanks.
    Attached Files

    #2
    unclelou, as a last resort you can contact a NinjaScript consultant from the link below to work those modifications in for you - http://www.ninjatrader.com/webnew/pa...injaScript.htm
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Change to Squeeze alert

      Hi

      Looking at the code in the indicator I believe the relevant section is below

      if
      (BBhigh <= KChigh || BBlow >= KClow)
      {
      DrawDot(barcounter.ToString(),
      0,0,SqueezeColor);
      Signal.Set(
      1);
      }
      if(BBhigh > KChigh || BBlow < KClow)
      {
      DrawDot(barcounter.ToString(),
      0,0,ActionColor);
      Signal.Set(-
      1);
      }
      // Generates an alert on signal change...
      if(Signal.Get(CurrentBar - 1) == 1 && Signal.Get(CurrentBar) == -1) {

      I believe that all you have to do is to change the == 1 and == -1 in the last line to == -1 and == 1 to achieve what you want. Open the file in the Ninja script editor and then save it with a new name eg BBSqueezeAlertMod. Then try changing the above. Press F5 to compile and all should be well If no one else comes back you I will look at this later today when I have access to Ninja.


      May I suggest that you look at the examples in the user guide on custom indicators lessons. You may not wish to learn C# programming in total but amending other peoples scripts to do what you want is in most cases relatively simple!

      Comment


        #4
        Hi,

        Trying to create a sound alert. Tried some stuff with changing this code. I give up. I do not need the alert.

        Created another problem though.

        Want to delete this attempt to create a script. "SqueezeSoundAlert."

        It will not let me delete it as it says there are errors in it as in the picture enclosed.

        If I cannot delete it, I cannot use the import/export utility.

        Help, Please.

        Thank you for your help. I do love using NinjaTrader.

        Not a programmer, although I can usually figure out to get things working.

        I had another strategy going, before deleting it, with the name "BB_Squeeze_Alert."

        The message when I try to delete the strategy is enclosed also.

        Is it possible to edit the attempted script to a simple program, which will compile, and then delete it?

        Thank you.
        Attached Files
        Last edited by westcoastjoe; 12-15-2014, 02:13 AM.

        Comment


          #5
          You have probably done some strange things .... and now you are being punished.

          Your strategy file is referenced (used) by another file.


          To solve the problem, please use the Windows Explorer to remove the file C:\UsersJFR\Documents\NinjaTrader 7\bin\Custom\Strategy\SqueezeSoundAlert.cs.

          After having removed that file please edit any of your indicators or strategies and compile. You will get at least one more error message. Please also remove all files that are listed in the error message by using Windows Explorer.

          Continue this process until there are no more error messages.

          Comment


            #6
            Thanks, Harry.

            Compiling was not quite the solution, but your suggestion to throw away gave me an idea.

            And BTW, of course I was doing some strange things. LOL Copying and pasting. Changing strategy names, et cetera. That is how I passed a programming course many years ago. LOL

            So I went into
            C:\UsersJFR\Documents\NinjaTrader 7\bin\Custom\Strategy\SqueezeSoundAlert.cs., threw away SqueezeSoundAlert and, by "Date Modified," a referenced strategy.

            That did it. I could then use import and export freely once again.

            No more error messages once the two files were thrown away.

            Thanks once again.

            Comment


              #7
              Price Guard

              Hello,

              I don't think I have permissions to start a new thread.

              A few years ago, I picked up "PriceGuard" from a website, since de-activated. I find it very useful.

              Some people have asked about it.

              Here is the code. It seems I cannot export it from NinjaTrader, although it is available for me to use as an indicator.

              If someone could code it, and set it up as an indicator download, that would be very helpful to some people.

              I could mess around and get it to work through New Ninjascript, but as one can see on this thread, I got into a mess recently doing that kind of jury rigging.

              Thanks,

              Joe
              Attached Files

              Comment


                #8
                Joe, this would not be the 'true' source code of the study, to me it appears you have the priceguard study installed as assembly / dll on your platforn? The source code of those addons could not be accessed / edited nor exported unfortunately.
                BertrandNinjaTrader Customer Service

                Comment


                  #9
                  Yes PriceGuard is code-protected, and so we cannot know anything inside the tool.
                  ninZa
                  NinjaTrader Ecosystem Vendor - ninZa.co

                  Comment


                    #10
                    Thank you, Guys.

                    Bertrand, a few years ago, PriceGuard was available from the person who made it, for free. The website is still there, although it is inactive, and the download is not functioning.

                    As I was going through some stuff, I came across the text of the that code.

                    I had installed it originally, a few years ago.

                    No problem. I find it a very useful indicator.

                    Was just trying to give a little back to this website that has been so good to me.

                    Joe
                    Attached Files

                    Comment


                      #11
                      Bertrand,

                      I don't know about dll, et cetera. Since I cannot export it, perhaps that is so.

                      I do believe I have the original compressed folder somewhere on one of my older computers.

                      Joe

                      Comment


                        #12
                        Originally posted by westcoastjoe View Post
                        Bertrand,

                        I don't know about dll, et cetera. Since I cannot export it, perhaps that is so.

                        I do believe I have the original compressed folder somewhere on one of my older computers.

                        Joe
                        It seems to be a price alert tool. I also have a very similar tool called Total Alert, also Free.
                        Please read the description here: http://ninza.co/product/total-alert

                        The file is attached below (code protected).
                        Hope it helps many traders.

                        Thanks.
                        Pi
                        Attached Files
                        ninZa
                        NinjaTrader Ecosystem Vendor - ninZa.co

                        Comment


                          #13
                          Thanks, Pi

                          Will check it out.

                          Joe

                          Comment

                          Latest Posts

                          Collapse

                          Topics Statistics Last Post
                          Started by DayTradingDEMON, Today, 09:28 AM
                          3 responses
                          19 views
                          0 likes
                          Last Post NinjaTrader_ChelseaB  
                          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 navyguy06, Today, 09:28 AM
                          1 response
                          7 views
                          0 likes
                          Last Post NinjaTrader_Gaby  
                          Started by cmtjoancolmenero, Yesterday, 03:58 PM
                          8 responses
                          34 views
                          0 likes
                          Last Post NinjaTrader_ChelseaB  
                          Working...
                          X