PDA

View Full Version : Using different timeframes AND session begin / end


Brian1
03-06-2009, 12:07 PM
Could someone please shed some light on using multiple timeframes, with DIFFERENT start / end times?

My Instrument (YM Dow Mini Futures) allows a lot of overnight trading. I am attempting to use yesterday's High & Low based on 24 hours, and do some comparisons with yesterday's Floor Trader hours (9:30a - 4:15p Eastern).

I have an indicator that does the calculation, and it bases the Session begin and end on the chart's Session, when I include this:

... Initialize()

Add(MyYestHiLoIndicator())


My primary chart's Session is based on Floor Trader hours. How can I see the 24 hr High & Low figures?


Thanks in advance,

Brian1

NinjaTrader_Josh
03-06-2009, 12:31 PM
Brian1,

You have to have your chart to use 24 hr sessions. Then you can limit it the way you want with a time filter in your actual code. That is the only way to have both sessions available.

if(ToTime(Time[0]) > 93000 && ToTime(Time[0]) < 160000)

Brian1
03-06-2009, 12:40 PM
Thanks Josh for the reply.

So I see that my primary timeframe is 24 hrs. Is there a way to narrow the visual timeframe of my primary chart? Or must I simply always have the 24 hr chart shown, to use this Strategy?

NinjaTrader_Josh
03-06-2009, 12:42 PM
You will need the full 24 hrs. No way to limit it visually.

Brian1
03-06-2009, 12:59 PM
Ok. Thanks a lot, Josh.

Brian1