Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
Does anyone know if there is anything anywhere that will measure the difference betwwen two moving averages . then give an indication when its above a value say >8 tics/pips or whatever
Can you help answer these questions from other members on NexusFi?
The standard MACD indicator measures the difference between two moving averages.
So MACD(12,26,9) shows the difference between the 12 MA and the 26 MA
The histogram that is often plotted as part of the MAC indicator represents the actual difference between the two averages, which is why when the averages cross, the difference is 0.
I have 2 exponential MA , EMA 10 and 26 what im trying to do is get ninja trader to give me a warning when the seperation between the two reaches 8 on the most recent closed candle. This will be a trigger for a possible entry .
Not to be harsh but it's not possible for you to develop with Ninjatrader without knowing C# and their API (Ninjascript is just their API which is built with C#). There are a number of C# books to teach you the basics. If you want to do something really simple you can use the wizard. If you think C# is too complicated for you then you can take a look at EasyLanguage. EL is 1000x simpler than C#. I'm a professional software developer and I much prefer EL for the simple stuff (see my EL example posted above).
If you've never done any programming before you should count on several months to learn the basics of C#. It's not easy.
Finally, if programming is not your forté then I would also suggest the possibility that you don't program at all. Choose your indicators carefully (fewer is better, price & volume are 90% of what you need) and then do your backtesting by hand. I use an indicator on multiple timeframes and I couldn't test it in an automated strategy (limitation of how it was made with Tradestation). So I backtested it by hand. Took me weeks. But I learned a lot so it was well worth it and I now trade this strategy every day.
Many of the strategies I see in this forum are based on having multiple indicators and you enter a trade when the colors all line up. I'm still not convinced that this is possible but I'm trying them out to see if I can make them work but so far I'm not successful.
Yes, learning NINJA API is difficult, my approach to any new language and API is take some examples and simply rewrite it. If is is indicator and I need new definition, I download other indicator, copypaste entire code, change name and change only one line with computation of the indicator.
To make it more simple, Try to download some complex indicator that uses more advanced techniques you need to use in your indicator (e.g. if you need to look values in history, simply look at indicator that uses these values - not to reinvent the wheel).