PDA

View Full Version : Manual to Automated 60min Price Bar/SMA strategy


telecompilot
06-18-2009, 07:45 PM
Hello Everyone,

Just downloaded Ninja on my computer and trying to convert my simple manual (Ameritrade) strategy from Ameritrade Strategy deck to automated Ninja.
It may sound too simple, but I want to build just 2 indicators:
- Bar[Close,60min]
- Simple MA[lenght=5,time=60min, offset=0]

Price close is checked every 60 minutes, starting from the 1st minute (Interval on Ameritrade Strategy desk is set for 1 minute)

The SMA part is ok, but can't figure our the Price Bar piece...
Could anybody help me with that, simple for pros, question??

Thanks a lot!
TL

NinjaTrader_Bertrand
06-19-2009, 04:32 AM
telecompilot, welcome to our forums! I'm not sure I follow exactly on your strategy setup, but the you can access the close price with Close[0] for example, the brackets denote the bars back you need. If you look to combine the 1 minute and 60 min timeframe in our strategy, you would need to code a MultiTimeFrame strategy, then this help guide guide section will help to familiarize yourself with the basics - http://www.ninjatrader-support.com/HelpGuideV6/MultiTimeFrameInstruments.html