View Full Version : MA/EMA with alert/sound
unitrade
03-25-2009, 04:23 AM
hello,
i am serching for the above indicator. but cant find anything. can someone help me out?
thanks
NinjaTrader_Bertrand
03-25-2009, 04:30 AM
Hi unitrade, I'm not sure what you are looking for exactly, but there are several in our sharing section - http://www.ninjatrader-support2.com/vb/local_links_search.php?action=show&literal=1&search=MA&desc=1
An alert can be easily added in our NinjaScript programming language - http://www.ninjatrader-support.com/HelpGuideV6/Alert.html
Here are some great tutorials to get you going - http://www.ninjatrader-support.com/HelpGuideV6/Overview18.html
As a last resort you can contact those NinjaScript consultants - http://www.ninjatrader.com/webnew/partners_onlinetrading_NinjaScript.htm
unitrade
03-25-2009, 04:44 AM
i searched all the links but didnīt find what i need.
all i need is an ma/ema combined with the possibility to activate a sound when price is going throug the ma. perfectly whith the possibility to choose on close bar or not.
i am testing price alert indicator but not shure if this indicator makes a sound.
thanks
NinjaTrader_Bertrand
03-25-2009, 05:32 AM
If you don't find what you are looking for you could create a strategy for this with our Strategy Wizard, you can set your conditions and then isssue an Alert. Here's an overview over the interface - http://www.ninjatrader-support.com/HelpGuideV6/WizardScreens.html
unitrade
03-25-2009, 09:45 AM
What do you think about my emabell strategy?
There is something wrong with order confirmation. I dont know how to delete.
NinjaTrader_Josh
03-25-2009, 09:58 AM
unitrade,
Not sure what you mean exactly. Your strategy does not place any trades. It only plays a sound. Remember that your strategy would be a real-time strategy only too. It would not do anything historically.
Your condition checks ask > EMA(14) and bid < EMA(14) at the exact same time. I would imagine this to be a very rare case scenario to come across.
unitrade
03-25-2009, 10:05 AM
if i apply this strategy i get
order confirmation: althoug you have order confirmation enabled.....
i need an indicator or a strategy that gives me a sound when a bar is going through an ema. up and down.
that i dont have to sit in front the hole time.
what would you do? i am a complete newbe.
NinjaTrader_Josh
03-25-2009, 10:12 AM
When you apply a strategy onto a chart you will receive a warning that says order confirmations will not be received from this strategy. You press OK and the strategy will begin running.
unitrade
03-25-2009, 10:25 AM
o.k. thanks
unitrade
03-26-2009, 02:08 AM
I tried several things but nothing works.
This should work but it doesnt.
work on close
CrossAbove(Close, EMA(14),1)
CrossBelow(Close, EMA(14),1)
PlaySound
I also tried ask/bid/close = ema
Whats wrong? Its the first time i create or program a code. So, there could be a lot wrong. Need your help.
NinjaTrader_Bertrand
03-26-2009, 03:19 AM
unitrade, please make a separate condition for the Long Alert and for the Short Alert. If this doesn't help, please post some screenshots on your exact setup so we can advise, thanks!
unitrade
03-26-2009, 05:00 AM
with seperate conditions it works.
btw: why does it work with seperate conditions (up/down)
but not with one
calculate on bar close: no
close[0] == ema(14)[0]
i thought this is the right one if the bar hits the ema.
NinjaTrader_Bertrand
03-26-2009, 05:22 AM
Hi, if you put both in one condition they can cancel each other out. For your condition, the Close price will most likely never be exactly equal to the MA value due to rounding, so you want to work with the CrossAbove / CrossBelow.
unitrade
03-26-2009, 05:49 AM
many thanks. it works. my first strategy. :D
what could i do or program to get alerts at resistance levels.
means: point a to b are 200 points. i want to use fibolevels to alert me at 38,2, 50...
is this possible to create?
NinjaTrader_Bertrand
03-26-2009, 05:57 AM
You are welcome, this would involve advanced custom programming. You can have a look at those posted Fibonacci tools - http://www.ninjatrader-support2.com/vb/local_links_search.php?action=show&literal=1&search=fibonacci&desc=1