PDA

View Full Version : Programming Empirical Mode Decomposition Algo


Crumbs
02-25-2010, 07:03 PM
Hi,
How do I go about programming an algo based on the empirical mode decomp in this month's stocks & commodities? For example, I'd like to buy when the main line crosses over the upper band. I'm using the strategy wizard and I'm unsure of how to implement this.

Thank you.

NinjaTrader_Bertrand
02-26-2010, 06:01 AM
You would need to code up the main line and bands as indicators and then you could reference those in your conditions in the Strategy Wizard -

http://www.ninjatrader-support.com/HelpGuideV6/WizardScreens.html

http://www.ninjatrader-support.com/HelpGuideV6/ConditionBuilder-CrossOverConditions.html

Crumbs
02-26-2010, 09:37 AM
OK, if I wanted to trigger a buy when the +DI crosses over the -DI, must I separate these two plots into two separate indicators as well?

NinjaTrader_Bertrand
02-26-2010, 09:41 AM
No, the DI is already setup as indicator, you can just check for the different plots to cross in the wizard -

http://www.ninjatrader-support.com/HelpGuideV6/ConditionBuilder-ComparingPlotValuesOfMultiPlotIndicators.html

Crumbs
02-26-2010, 01:48 PM
OK Thanks for the help.

Here's something I could not find in the help section:

How do I compare different periods within a single strategy, i.e. a crossover in the 5min stochastics AND a crossover in the 15min stochastics?

NinjaTrader_Josh
02-26-2010, 01:59 PM
You can only do that through custom programming a multi-series strategy. Unfortunately this is not available through the Strategy Wizard.

http://www.ninjatrader-support.com/HelpGuideV6/helpguide.html?MultiTimeFrameInstruments