I guess there is something already available.
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
Simple Indie for close of bar
Collapse
X
-
Simple Indie for close of bar
I´m looking for a simple indicator which will make a sound on close of bar, if the bar is the opposite colour of the previous bar.
I guess there is something already available.Tags: None
-
Hello ScottieDog,
You would not be able to check the color a bar but you can check to see if the Close price is greater than or less than the open price which is going to determine if it is the up bar or a down bar.
I am not aware of a Indicator that will do this but it should be fairly simple.
For Example:
Code:if(Close[0]>Open[0]) { PlaySound(@"C:\Program Files (x86)\NinjaTrader 7\sounds\Alert1.wav"); } if(Close[0]<Open[0]) { PlaySound(@"C:\Program Files (x86)\NinjaTrader 7\sounds\Alert2.wav"); }
JCNinjaTrader Customer Service
-
-
Comment
-
Hello ScottieDog,
Thanks for the image and the clarification on that. Yes, you are correct it would be every bar but a Doji. It was just an example of how you would check for a condition.
Basically, you would have to just add another variable to see if what the previous bar was. Here is a quick indicator that I made that will do something like this that you may try.
It should be able to do what you would like or can be easily modified for any minor changes.
Let me know how it works for you.Attached FilesJCNinjaTrader Customer Service
Comment
-
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by stafe, 04-15-2024, 08:34 PM
|
7 responses
31 views
0 likes
|
Last Post Today, 11:19 AM | ||
Started by adeelshahzad, Today, 03:54 AM
|
4 responses
29 views
0 likes
|
Last Post
by adeelshahzad
Today, 10:51 AM
|
||
Started by merzo, 06-25-2023, 02:19 AM
|
10 responses
823 views
1 like
|
Last Post Today, 10:38 AM | ||
Started by frankthearm, Today, 09:08 AM
|
5 responses
17 views
0 likes
|
Last Post Today, 10:19 AM | ||
Started by jeronymite, 04-12-2024, 04:26 PM
|
3 responses
43 views
0 likes
|
Last Post
by jeronymite
Yesterday, 10:10 PM
|
Comment