Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Drawing's and audio alerts not working
Collapse
X
-
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,Tags: None
-
I do not see print () statement
Please tell me where the print statement is located. One more thing why are the audio alerts not workingOriginally posted by Viper3 View PostI 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,
Comment
-
- 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
-
-
Still nothing
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.Originally posted by NinjaTrader_Ray View PostThis is available through the wizard. Here is some information from our Help Guide.
http://www.ninjatrader-support.com/H...gOnAChart.html
Comment
-
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 FilesRayNinjaTrader Customer Service
Comment
-
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 FilesJosh P.NinjaTrader Customer Service
Comment
-
Strategy is working...... thanks
Learned a lot today and I want to thank eveyone for all your help.Originally posted by uacvax View Post1. 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.
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
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
364 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
105 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
567 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
568 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment