Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- discounts are available after registering.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
Hi,
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?
Neil.
Can you help answer these questions from other members on NexusFi?
I think you can create your daily OHLC values easily from your 5 minute chart directly. There is no need taking them from the hourly chart.
By the way, it is not clear, what you are trying to achieve and what use you want to make of your daily signals. If you tell us, we might find a solution.
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).
Hi,
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.
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.
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.