PDA

View Full Version : dual timeframes


starrynight
12-13-2008, 10:48 AM
Is it possible to create an automated system that enters the market long if a faster EMA crosses a slower EMA on a lower timeframe ONLY IF the stochastic is rising and not overbought on a higher timeframe . I need it to enter the market , place a stop below the entry bar , scale out multi contracts and exit when the two EMA's on the lower timeframe cross against my position ( and vice versa for a short trade ).

Any guidance and assistance is appreciated .:)

NinjaTrader_Bertrand
12-13-2008, 11:02 AM
Hi starrynight,
Unfortunately this is not possible in the wizard, but you can realize this with custom NinjaScript programming. This link shows you more - http://www.ninjatrader-support.com/HelpGuideV6/MultiTimeFrameInstruments.html

You might also be interested in this reference sample - http://www.ninjatrader-support2.com/vb/showthread.php?t=5787

starrynight
12-14-2008, 03:43 PM
Thanks for the help Bertrand , I got this far and cant figure out what its asking me for -


{region Properties ;
[Category("Parameters")];
publicint MyInput0;

get { return myInput0; }
set { myInput0 = Math.Max(1, value);
}}}}
#endregion

NinjaTrader_Bertrand
12-15-2008, 03:00 AM
Hi, not sure from that snippet, this defines one of your custom inputs....we have a reference sample for those here - http://www.ninjatrader-support2.com/vb/showthread.php?t=5782

starrynight
12-15-2008, 05:06 AM
That helps , I'll keep trying . The help guide is pretty extensive with instructions too .

Do you know if the introduction to Ninjascript strategy development session is scheduled soon ? are there any videos or recorded sessions I can access ? That would be a big help , thanks .

NinjaTrader_Bertrand
12-15-2008, 05:18 AM
There is one scheduled on 12/23 @ 5:30 PM EST - http://www.ninjatrader.com/webnew/trading_online_events.htm

Although this is more about the Strategy wizard...

Maybe you wait a bit with the dual timeframe ideas and start with some basic indicators and those tutorials here - http://www.ninjatrader-support.com/HelpGuideV6/Overview18.html