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!
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
NinjaTrader
Scalper Indicator
Collapse
X
-
Scalper Indicator
I am testing Gumphrie's Scalper Indicator. It would be really useful if an alert was sounded when the arrow on the trigger bar is printed. My own programming skills aren't up to it. Can anyone help please?Tags: None
-
Captain ,open with edit and add this in red in the lines 124 ,160
if ((Close[0] < TriggerBarLow) && (0!=ExtremeBar))
{
ExtremeBar = ExtremeBar + counter;
HighPainted = true;
counter=-1;
scalpSeries.Set(CurrentBar-ExtremeBar);
ExtremeBar=0;
PlaySound(@"C:\Program Files\NinjaTrader 6.5\sounds\Reversing.wav");
}
and
if ((Close[0] > TriggerBarHigh) && (0!=ExtremeBar))
{
ExtremeBar = ExtremeBar + counter;
HighPainted = false;
counter=-1;
scalpSeries.Set(CurrentBar-ExtremeBar);
ExtremeBar=0;
PlaySound(@"C:\Program Files\NinjaTrader 6.5\sounds\Reversing.wav");
}
compile and enjoy
Comment
-
Cyborg, thanks for taking the time to help but I get the error message
The name 'Playsound' does not exist in the current context
Comment
-
Maybe try something like this (although play sound should basically do the same thing):
Code:Alert("Scalp Alert", Priority.High, "Scalp Alert", @"C:\Program Files\NinjaTrader 6.5\sounds\OrderPending.wav", 0, Color.White, Color.Red);
Comment
-
-
Originally posted by captainquincy View PostCyborg, thanks for taking the time to help but I get the error message
The name 'Playsound' does not exist in the current context
Originally posted by captainquincy View PostMany thanks Elliot Wave. That's compiled OK. I'll wait until Monday to test it.
Comment
-
With this indicator it doesnt update.But it seems to do this with other indicators to.
Like if you leave the chart sitting come back an hour later it still has the same long bar signal printed and the price has moved down.Then you go to indicators click apply then 3 signals display since the last one.Anyway to fix this?Not updating refreshing?Starting to wonder if this is a bug in NT because its not just with this indicator.
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by cre8able, Today, 01:16 PM
|
2 responses
9 views
0 likes
|
Last Post
by cre8able
Today, 01:40 PM
|
||
Started by chbruno, 04-24-2024, 04:10 PM
|
3 responses
48 views
0 likes
|
Last Post Today, 01:29 PM | ||
Started by samish18, Today, 01:01 PM
|
1 response
7 views
0 likes
|
Last Post Today, 01:25 PM | ||
Started by WHICKED, Today, 12:56 PM
|
1 response
9 views
0 likes
|
Last Post Today, 01:17 PM | ||
Started by WHICKED, Today, 12:45 PM
|
1 response
11 views
0 likes
|
Last Post Today, 01:08 PM |
Comment