PDA

View Full Version : Question about multiple timeframes


nybangali
08-13-2007, 01:30 AM
Hello:
My question is about multiple timeframes.
Let's say there are 2 timeframes - Weekly and Daily
Suppose I want to create a strategy where screen one is true when MACD on higher timeframe turns positive, and where screen two is true when ADX on lower timeframe is greater than 30.
What would I need to do.
Also, is there a way to make the timeframes variable... so instead of Weekly/Daily, it is a 15 min/5 min timeframe

NinjaTrader_Josh
08-13-2007, 01:36 AM
It is all possible. To work with multiple time frames first read http://www.ninjatrader-support.com/HelpGuideV6/helpguide.html?MultiTimeFrameInstruments.

To make the time frames variable you would simply need to code user selectable parameters. Be careful when you code though. The first time frame will always be whatever time frame the chart which you loaded the strategy onto is set at. If you want your strategy to work regardless of what time frame the chart/strategy analyzer is on and just solely based on your user inputs you should probably add two more time periods to your strategy. You would negate the first time period (the chart's time period) from all calculations in this instance.