Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Drawing's and audio alerts not working

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

    Drawing's and audio alerts not working

    I made a few strategys and I am new to this. The strategy compiled, but my charts are not showing my up and down arrows and the audio alerts are not working also. I looked at my log and have no errors. I did a test stradtegy following your video wizard and it did the same,

    #2
    I suggest adding Print() statement to see if the code which should place arrows is triggered.

    Comment


      #3
      I do not see print () statement

      Originally posted by Viper3 View Post
      I made a few strategys and I am new to this. The strategy compiled, but my charts are not showing my up and down arrows and the audio alerts are not working also. I looked at my log and have no errors. I did a test stradtegy following your video wizard and it did the same,
      Please tell me where the print statement is located. One more thing why are the audio alerts not working

      Comment


        #4
        - Print() statement: http://www.ninjatrader-support.com/H...eV6/Print.html
        - playing sound files: http://www.ninjatrader-support.com/H...PlaySound.html

        Please make sure the sound file you want to play exists.

        Comment


          #5
          Keep in mind, Audio is only played in real-time and will not work against historical data.
          RayNinjaTrader Customer Service

          Comment


            #6
            Why

            Originally posted by Viper3 View Post
            Please tell me where the print statement is located. One more thing why are the audio alerts not working
            Thanks for the help. It seems to me that the Ninja Strategy wizard should add the add on's for me. Why is it not doing this........

            Comment


              #7
              What do mean by add ons?
              RayNinjaTrader Customer Service

              Comment


                #8
                Add on's

                Originally posted by NinjaTrader_Ray View Post
                What do mean by add ons?
                Drawing's like up arrows and down arrows and thanks I did not know that you had to me live for audio.........alerts

                Comment


                  #9
                  This is available through the wizard. Here is some information from our Help Guide.

                  RayNinjaTrader Customer Service

                  Comment


                    #10
                    Still nothing

                    Originally posted by NinjaTrader_Ray View Post
                    This is available through the wizard. Here is some information from our Help Guide.

                    http://www.ninjatrader-support.com/H...gOnAChart.html
                    I have done everything you have asked. Plus I did this over the weekend and nothing. All I want to do is add up arrow and down arrows with audio alerts and I am running in real time. I am using Indicator HMA and when it cross's KAMA, I am not using any User Defined Inputs which is the second page of the wizard, I have spent hours working on this please walk me thru this.

                    Comment


                      #11
                      Here is an example.

                      Sorry for your frustration. Unfortunately we are unable to provide support to the level of education and analyzing programming code. We will provide multi-day NinjaScript training sometime in the fall.

                      What I always suggest is start with something basic, then add layers of capability step by step.

                      Attached is a stripped down strategy that works as expected that plots an arrow at every cross above condition. It also outputs text to the output window using Print(). This was done with the wizard. Please take this example as a working reference and build on top of it.

                      Import via File > Utilities.
                      Attached Files
                      RayNinjaTrader Customer Service

                      Comment


                        #12
                        1. Tools->New NinjaScript->Strategy
                        2. "New Strategy" window opens. Click "Next >"
                        3. Name: HMAxKAMA
                        Display Name: HMAxKAMA
                        Description: Plots when the HMA crosses KAMA.
                        Calculate on Bar Close: Unchecked
                        Click "Next >"
                        4. In the "User Defined Inputs" delete "MyInput0"
                        Click "Next >"
                        5. In the top box of "Set 1" click "Add"
                        6. In the "Condition Builder" do this on the left hand side:
                        -Select Indicator
                        -Select HMA
                        In the middle:
                        -Select CrossAbove
                        In the right:
                        -Select Indicator
                        -Select KAMA
                        (Leave "Look back period" as 1 in the middle)
                        7. In the bottom box of "Set 1" click "Add"
                        8. Select Drawing->Up arrow->Press the "+" next to "Y" then press the "..."->Choose where you want the arrow drawn (I chose Indicator HMA)
                        9. Click "Add" in the bottom half of "Set 1" again. This time choose "Misc"->"Play a sound" and select a sound file ONLY FROM the default folder (Program Files\NinjaTrader 6\sounds)
                        10. Repeat steps 5 through 9 but this time do it in "Set 2" and select "CrossBelow" in the "Condition Builder" and on step 8 choose a "Down arrow"
                        11. Click "Next >"
                        12. Click "Next >"
                        13. Click "Finish"
                        14. Open a new chart (File->New->Chart...)
                        15. Right click->Strategies (or press Ctrl+S)
                        16. Select "HMAxKAMA" from the left hand side and click "New" -> click "OK" -> click "OK" on popup.
                        17. Strategy will draw arrows and play alert sounds when the conditions are met.

                        Hope this helps as a step-by-step supplement to how Ray created the strategy he posted.
                        I have included the Strategy created for this walkthrough. To install click "File" -> "Utilities" -> "Import NinjaScript..." -> "Yes" -> select the zip file.
                        Attached Files
                        Josh P.NinjaTrader Customer Service

                        Comment


                          #13
                          Strategy is working...... thanks

                          Originally posted by uacvax View Post
                          1. Tools->New NinjaScript->Strategy
                          2. "New Strategy" window opens. Click "Next >"
                          3. Name: HMAxKAMA
                          Display Name: HMAxKAMA
                          Description: Plots when the HMA crosses KAMA.
                          Calculate on Bar Close: Unchecked
                          Click "Next >"
                          4. In the "User Defined Inputs" delete "MyInput0"
                          Click "Next >"
                          5. In the top box of "Set 1" click "Add"
                          6. In the "Condition Builder" do this on the left hand side:
                          -Select Indicator
                          -Select HMA
                          In the middle:
                          -Select CrossAbove
                          In the right:
                          -Select Indicator
                          -Select KAMA
                          (Leave "Look back period" as 1 in the middle)
                          7. In the bottom box of "Set 1" click "Add"
                          8. Select Drawing->Up arrow->Press the "+" next to "Y" then press the "..."->Choose where you want the arrow drawn (I chose Indicator HMA)
                          9. Click "Add" in the bottom half of "Set 1" again. This time choose "Misc"->"Play a sound" and select a sound file ONLY FROM the default folder (Program Files\NinjaTrader 6\sounds)
                          10. Repeat steps 5 through 9 but this time do it in "Set 2" and select "CrossBelow" in the "Condition Builder" and on step 8 choose a "Down arrow"
                          11. Click "Next >"
                          12. Click "Next >"
                          13. Click "Finish"
                          14. Open a new chart (File->New->Chart...)
                          15. Right click->Strategies (or press Ctrl+S)
                          16. Select "HMAxKAMA" from the left hand side and click "New" -> click "OK" -> click "OK" on popup.
                          17. Strategy will draw arrows and play alert sounds when the conditions are met.

                          Hope this helps as a step-by-step supplement to how Ray created the strategy he posted.
                          I have included the Strategy created for this walkthrough. To install click "File" -> "Utilities" -> "Import NinjaScript..." -> "Yes" -> select the zip file.
                          Learned a lot today and I want to thank eveyone for all your help.

                          Cheers,

                          Comment

                          Latest Posts

                          Collapse

                          Topics Statistics Last Post
                          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                          0 responses
                          633 views
                          0 likes
                          Last Post Geovanny Suaza  
                          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                          0 responses
                          364 views
                          1 like
                          Last Post Geovanny Suaza  
                          Started by Mindset, 02-09-2026, 11:44 AM
                          0 responses
                          105 views
                          0 likes
                          Last Post Mindset
                          by Mindset
                           
                          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                          0 responses
                          567 views
                          1 like
                          Last Post Geovanny Suaza  
                          Started by RFrosty, 01-28-2026, 06:49 PM
                          0 responses
                          568 views
                          1 like
                          Last Post RFrosty
                          by RFrosty
                           
                          Working...
                          X