How do I use a function that I have coded to work on a Hourly bar in a 5min study?
The issue is that Daily bars do not limit themselves to the session times applied to them.
If I create a chart using hourly bars and set the period to 24hrs and apply the session, I get the bars OHLC that I'm looking for. A daily bar using sessions.
I then want to use this daily OHLC in a function. All good so far. When I do plots on this 24hr chart using my function it gives me the correct signals.
Now I want to use these pseudo daily signals in a 5min chart.
Can I reference a function that is being applied to subchart2 against a study in subchart1?
Or something similar?
It is unclear: Are you asking about TradeStation (you are in the TradeStation section), but your platform in your profile says NinjaTrader.
Can you post your ELD or PLA code?
In general, you simply use data1 to submit orders and data2 (and more, as needed) to hold the dataseries values for the particular timeframe you want (5m, daily, whatever).
Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.
Need help? 1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first. 2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses. 3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make. 4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance. 5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers. 6) Help using the forum? Watch this video to learn general tips on using the site.
If you want to support our community, become an Elite Member.
The following user says Thank You to Big Mike for this post:
On Christmas day I bought MultiCharts. Did I get the Two for One. No :-( Separate story.
In Australia the predominant futures contract is the SPI that trades from 9:50AM to 4:30PM (Day Session) and ~5:30PM to 7:30AM (Night Session)
My first problem is creating Daily bars using the Day Session that I can use in a function and apply to my intraday strategie.
Basically, if the last few days setup in an appropriate manner, then I would go Long the next day.
Sort of using a mix of LBR and Taylor.
So the daily bars give me a direction to trade my 5min bars the next day.
The below code generates a 1=Buy next day at open, -1=sell next day at open, 0=Stand aside.
Favorite Futures: spot fx, currency futures, GC, ES
Posts: 30 since Nov 2010
Thanks: 6 given,
Neil, not sure I have got you properly enough, but have you checked the settings for your instruments in QuoteManager? There are plenty of settings for defining custom trading hours. Then I think you should use not 24h but some other time cycle relevant to the trading hours of your exchange. In this case you will have N-minutes and daily bars exactly corresponding to each other.
Sorry if this sounds dubious, honestly I didn't quite catch the essence of your issue.
The following user says Thank You to Doctor Leo for this post:
Thanks for responding.
My data feed is via Interactive brokers. From IB you can get the usual tick,minute data and "Daily" bars.
These Daily bars from IB are for a full 24Hr period. IB does not have sessions.
With both NinjaTrader and Multicharts. When you select a "Daily" chart using either NinjaTrader or Multicharts, they use the Daily bars they have down loaded from IB.
Even though they both have Session parameters that can be applied to the Daily chart, they don't use them.
This would mean the application (NinjaTrader and Multicharts) programmers would have to work a little bit harder by looking at the chart and the way the user has set their parameters then
a) See if a session has been applied to it
b) See if the chart is a daily chart
c) if it is a daily chart, build the Daily bars from minute data using the applied session template, not from the daily bars downloaded from IB.
Last edited by NW27; January 5th, 2011 at 03:04 PM.