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
BB_Squeeze_Alert
Collapse
X
-
BB_Squeeze_Alert
I've been using the indicator BB_Squeeze_Alert which sounds an alert when coming out of the squeeze (red to green dot). I would like the alert to sound when going into the squeeze (green to red dot). Could someone help me as I don't know how to program? I've attached the file. Thanks.Tags: None
-
unclelou, as a last resort you can contact a NinjaScript consultant from the link below to work those modifications in for you - http://www.ninjatrader.com/webnew/pa...injaScript.htmBertrandNinjaTrader Customer Service
-
Change to Squeeze alert
Hi
Looking at the code in the indicator I believe the relevant section is below
if(BBhigh <= KChigh || BBlow >= KClow)
{
DrawDot(barcounter.ToString(),0,0,SqueezeColor);
Signal.Set(1);
}
if(BBhigh > KChigh || BBlow < KClow)
{
DrawDot(barcounter.ToString(),0,0,ActionColor);
Signal.Set(-1);
}
// Generates an alert on signal change...
if(Signal.Get(CurrentBar - 1) == 1 && Signal.Get(CurrentBar) == -1) {
I believe that all you have to do is to change the == 1 and == -1 in the last line to == -1 and == 1 to achieve what you want. Open the file in the Ninja script editor and then save it with a new name eg BBSqueezeAlertMod. Then try changing the above. Press F5 to compile and all should be well If no one else comes back you I will look at this later today when I have access to Ninja.
May I suggest that you look at the examples in the user guide on custom indicators lessons. You may not wish to learn C# programming in total but amending other peoples scripts to do what you want is in most cases relatively simple!
Comment
-
Hi,
Trying to create a sound alert. Tried some stuff with changing this code. I give up. I do not need the alert.
Created another problem though.
Want to delete this attempt to create a script. "SqueezeSoundAlert."
It will not let me delete it as it says there are errors in it as in the picture enclosed.
If I cannot delete it, I cannot use the import/export utility.
Help, Please.
Thank you for your help. I do love using NinjaTrader.
Not a programmer, although I can usually figure out to get things working.
I had another strategy going, before deleting it, with the name "BB_Squeeze_Alert."
The message when I try to delete the strategy is enclosed also.
Is it possible to edit the attempted script to a simple program, which will compile, and then delete it?
Thank you.Last edited by westcoastjoe; 12-15-2014, 02:13 AM.
Comment
-
You have probably done some strange things .... and now you are being punished.
Your strategy file is referenced (used) by another file.
To solve the problem, please use the Windows Explorer to remove the file C:\UsersJFR\Documents\NinjaTrader 7\bin\Custom\Strategy\SqueezeSoundAlert.cs.
After having removed that file please edit any of your indicators or strategies and compile. You will get at least one more error message. Please also remove all files that are listed in the error message by using Windows Explorer.
Continue this process until there are no more error messages.
Comment
-
Thanks, Harry.
Compiling was not quite the solution, but your suggestion to throw away gave me an idea.
And BTW, of course I was doing some strange things. LOL Copying and pasting. Changing strategy names, et cetera. That is how I passed a programming course many years ago. LOL
So I went into
C:\UsersJFR\Documents\NinjaTrader 7\bin\Custom\Strategy\SqueezeSoundAlert.cs., threw away SqueezeSoundAlert and, by "Date Modified," a referenced strategy.
That did it. I could then use import and export freely once again.
No more error messages once the two files were thrown away.
Thanks once again.
Comment
-
Price Guard
Hello,
I don't think I have permissions to start a new thread.
A few years ago, I picked up "PriceGuard" from a website, since de-activated. I find it very useful.
Some people have asked about it.
Here is the code. It seems I cannot export it from NinjaTrader, although it is available for me to use as an indicator.
If someone could code it, and set it up as an indicator download, that would be very helpful to some people.
I could mess around and get it to work through New Ninjascript, but as one can see on this thread, I got into a mess recently doing that kind of jury rigging.
Thanks,
JoeAttached Files
Comment
-
Thank you, Guys.
Bertrand, a few years ago, PriceGuard was available from the person who made it, for free. The website is still there, although it is inactive, and the download is not functioning.
As I was going through some stuff, I came across the text of the that code.
I had installed it originally, a few years ago.
No problem. I find it a very useful indicator.
Was just trying to give a little back to this website that has been so good to me.
Joe
Comment
-
Bertrand,
I don't know about dll, et cetera. Since I cannot export it, perhaps that is so.
I do believe I have the original compressed folder somewhere on one of my older computers.
Joe
Comment
-
Originally posted by westcoastjoe View PostBertrand,
I don't know about dll, et cetera. Since I cannot export it, perhaps that is so.
I do believe I have the original compressed folder somewhere on one of my older computers.
Joe
Please read the description here: http://ninza.co/product/total-alert
The file is attached below (code protected).
Hope it helps many traders.
Thanks.
PiAttached Files
Comment
-
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Allwest, Yesterday, 10:25 PM
|
2 responses
18 views
0 likes
|
Last Post Today, 04:18 AM | ||
Started by bmandonlidal, Today, 03:34 AM
|
0 responses
1 view
0 likes
|
Last Post
by bmandonlidal
Today, 03:34 AM
|
||
Started by LincolnOrtiz, Today, 03:10 AM
|
0 responses
2 views
0 likes
|
Last Post
by LincolnOrtiz
Today, 03:10 AM
|
||
Started by Dr Kerry, Today, 02:03 AM
|
0 responses
4 views
0 likes
|
Last Post
by Dr Kerry
Today, 02:03 AM
|
||
Started by AndriXF7, 12-06-2023, 10:09 AM
|
5 responses
163 views
1 like
|
Last Post
by Lunorri
Today, 01:56 AM
|
Comment