Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Alert not working in indicator
Collapse
X
-
Thank you so much! I really enjoy this indicator and is the only one I use, but I am not a programmer. Thank you again!!
-
-
Originally posted by eclipsed View PostHi
I am trying to get an alert to sound when an overbought/oversold condition exists in this indicator. It compiles successfully but does not work and I cannot see why,
Ideally I only want it to sound once but that is less important than sounding in the first place!
Could you look at the code to see what I am doing wrong please.
Thanks
Not concerned with the sound function, just the indicator with BUY, SELL and NO TRADE colors.
Please look at the beginning of this thread to see the indicator. CCITrend2
Thank youLast edited by bowas; 06-05-2018, 05:06 PM.
Leave a comment:
-
Hi Bertrand
It works for me now! After I modified it, I forgot to re-load the indicator - a bit fundamental really but many thanks for your help and sorry to trouble you.
Not sure about boolean flag codes though so will have to be satisfied with alarm repeats - it's not too frequent anyway.
Leave a comment:
-
eclipsed, the PlaySounds works for me here - are you sure the sounds itself work ok in your NT and the soundfile Alert1 is present in the respective install dir sounds folder?
Later on you might want to add logic to trigger the sound / alert only if the condition happens the first time and not on subsequent bars, this could be for example done with boolean flags in your code.
Leave a comment:
-
Alert not working in indicator
Hi
I am trying to get an alert to sound when an overbought/oversold condition exists in this indicator. It compiles successfully but does not work and I cannot see why,
Ideally I only want it to sound once but that is less important than sounding in the first place!
Could you look at the code to see what I am doing wrong please.
ThanksAttached FilesTags: None
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Stanfillirenfro, Today, 07:23 AM
|
8 responses
23 views
0 likes
|
Last Post Today, 10:02 AM | ||
Started by DayTradingDEMON, Today, 09:28 AM
|
2 responses
15 views
0 likes
|
Last Post Today, 09:56 AM | ||
Started by navyguy06, Today, 09:28 AM
|
1 response
6 views
0 likes
|
Last Post Today, 09:54 AM | ||
Started by cmtjoancolmenero, Yesterday, 03:58 PM
|
8 responses
32 views
0 likes
|
Last Post Today, 09:34 AM | ||
Started by helpwanted, Today, 03:06 AM
|
2 responses
22 views
0 likes
|
Last Post Today, 09:30 AM |
Leave a comment: