Announcement
Collapse
No announcement yet.
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
-
-
I just tried this on 6.5 and do NOT get any error messages. Of course I did a cut & paste, so it was entered as "PlaySound" instead of "Playsound".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
If you have saved data, you don't have to wait until Monday to test, you can use Market Replay to test it at any time.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 Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
596 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
343 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
103 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
556 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
554 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment