If you insist on knowing, as you are using only 5-minute bars, no matter how many sessions, it would not matter how many bars you have to load: it will be the same number, regardless of how many sessions you are running, albeit each session will have to load the bars for itself. It is still just the same data, being read from the same data files, so the bars will just be loaded from a cache, either by NinjaTrader or by the operating system.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
CloseD Series Function
Collapse
X
-
Originally posted by futurenets View Post
If you insist on knowing, as you are using only 5-minute bars, no matter how many sessions, it would not matter how many bars you have to load: it will be the same number, regardless of how many sessions you are running, albeit each session will have to load the bars for itself. It is still just the same data, being read from the same data files, so the bars will just be loaded from a cache, either by NinjaTrader or by the operating system.Last edited by koganam; 03-07-2016, 01:01 PM.
-
I realize this may be frustrating for you but please bear with me, this discussion has been very useful ...
I just want to be aware of approx. how many 5 minute bars would actually need to be downloaded
EURUSD 24 hours session has 24*60/5 = 288 5 minute bars
daily MA at session 0 would need session 1 to session 100 bars = 288 * 100 = 28,800
daily MA at session 1 would need session 2 to session 101 bars = 28,800 + (288 * 1) = 29088
daily MA at session 2 would need session 3 to session 102 bars = 28,800 + (288 * 2) = 29376
...
daily MA at session 100 would need session 101 to session 200 bars = 28,800 + (288 * 100) = 57600
daily MA at session 200 would need session 201 to session 300 bars = 28,800 + (288 * 200) = 86400
etc.
is this correct? not even considering calculating daily MA Length > 100 (eg 200 day MA) or MA weekly/monthly yet.
also if I have a daily chart that's running alongside my 5 minute chart, could the 5 minute chart reference the daily chart? if this was possible I could possibly create an equivalent CloseD series function?
previously from NTYou would create a script that runs on the other chart (the daily in this example) and then expose that data series - making sure it is synced to the primary series in the script and set to the desired value.Last edited by futurenets; 03-08-2016, 03:40 AM.
Comment
-
Originally posted by futurenets View PostI realize this may be frustrating for you but please bear with me, this discussion has been very useful ...
I just want to be aware of approx. how many 5 minute bars would actually need to be downloaded
EURUSD 24 hours session has 24*60/5 = 288 5 minute bars
daily MA at session 0 would need session 1 to session 100 bars = 288 * 100 = 28,800
daily MA at session 1 would need session 2 to session 101 bars = 28,800 + (288 * 1) = 29088
daily MA at session 2 would need session 3 to session 102 bars = 28,800 + (288 * 2) = 29376
...
daily MA at session 100 would need session 101 to session 200 bars = 28,800 + (288 * 100) = 57600
daily MA at session 200 would need session 201 to session 300 bars = 28,800 + (288 * 200) = 86400
etc.
is this correct? not even considering calculating daily MA Length > 100 (eg 200 day MA) or MA weekly/monthly yet.
also if I have a daily chart that's running alongside my 5 minute chart, could the 5 minute chart reference the daily chart? if this was possible I could possibly create an equivalent CloseD series function?
previously from NT but not sure how to do this?
This same idea has been brought up before. Here is the thread. http://ninjatrader.com/support/forum...494#post427494
Comment
-
-
sorry about that mix up ...
daily MA at session 0 (day 0) would need 288 bars = 288
daily MA at session 1 (day 1) would need = 288 * 2 = 576
daily MA at session 2 (day 2) would need = 288 * 3 = 864
...
daily MA at session 100 (day 100) would need = 288 * 101 = 29,088
daily MA at session 200 (day 200) would need = 288 * 201 = 57,888
etc.
is this the correct number of 5 minute bars required to plot a daily MA?Last edited by futurenets; 03-08-2016, 10:01 AM.
Comment
-
this is what I need
This same idea has been brought up before. Here is the thread. http://ninjatrader.com/support/forum...494#post427494
any sample code?Last edited by futurenets; 03-08-2016, 10:21 AM.
Comment
-
if you have time koganam I'd like to know your thoughts on running a daily chart alongside a 5 minute chart with an array outside the namespace to hold previous 200 (or something) daily closing values. I understand this can be referenced by other charts.
Again thanks for all your help (and patience), really useful.
Comment
-
Originally posted by futurenets View Postthis is what I need
thanks for your help koganam
any sample code?
Other than for visual purposes of confirmation, I do not care one hoot about displaying data on a chart, and I would most certainly never put data on a chart for the sole purpose of reading it back. It is beyond my ability to comprehend why anyone wants to do so, but to each one's own.
Comment
-
Originally posted by futurenets View Postif you have time koganam I'd like to know your thoughts on running a daily chart alongside a 5 minute chart with an array outside the namespace to hold previous 200 (or something) daily closing values. I understand this can be referenced by other charts.
Again thanks for all your help (and patience), really useful.
ref: http://ninjatrader.com/support/forum...d.php?p=451755
Comment
-
Originally posted by futurenets View Postsorry about that mix up ...
daily MA at session 0 (day 0) would need 288 bars = 288
daily MA at session 1 (day 1) would need = 288 * 2 = 576
daily MA at session 2 (day 2) would need = 288 * 3 = 864
...
daily MA at session 100 (day 100) would need = 288 * 101 = 29,088
daily MA at session 200 (day 200) would need = 288 * 201 = 57,888
etc.
is this the correct number of 5 minute bars required to plot a daily MA?Last edited by koganam; 03-08-2016, 01:17 PM.
Comment
-
sorry I disagree,
inside or outside OOP protocol there are better ways than this. accessing a single value (in this case previous days closing price) on another chart once during each trading session is perfectly ok (albeit unsupported by NT).
As far as I'm concerned this is my equivalent of CloseD with very little effort (and much better than relying on 57,000 bars arriving without any problems).
I'll probably create a GLOBALS indicator until such time a formal solution is introduced by NT.Last edited by futurenets; 03-09-2016, 05:37 AM.
Comment
-
Originally posted by futurenets View Postsorry I disagree,
inside or outside OOP protocol there are better ways than this. accessing a single value (in this case previous days closing price) on another chart once during each trading session is perfectly ok (albeit unsupported by NT).
As far as I'm concerned this is my equivalent of CloseD with very little effort (and much better than relying on 57,000 bars arriving without any problems).
I'll probably create a GLOBALS indicator until such time a formal solution is introduced by NT.
However, to each his/her own. I shall now exeunt, as there is little, indeed nothing, that I can contribute further to this. You seem to think that this is a matter of opinion rather than analysis. I present analysis, with reasoning. You prefer to hand out an edict of your opinion. So mote it be.
All the best.Last edited by koganam; 03-09-2016, 07:03 AM.
Comment
-
your statement is incorrect, possibly over simplified (but understandable). thanks koganam for your input. my solution is working fine so no need to discuss further. find me and send your cv.Last edited by futurenets; 03-09-2016, 08:50 AM.
Comment
-
for future reference:
How to make two charts share variable values
Why would I wish to do this? Lets say I have a Weekly chart with a 50EMA on it and I wish to know the current value to plot on my 100 tick chart. I do not wish of course to take the usual course of adding at least 50 weeks of data onto my 100 tick chart ...Attached FilesLast edited by futurenets; 03-10-2016, 03:52 AM.
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Aviram Y, Today, 05:29 AM
|
0 responses
1 view
0 likes
|
Last Post
by Aviram Y
Today, 05:29 AM
|
||
Started by quantismo, 04-17-2024, 05:13 PM
|
3 responses
25 views
0 likes
|
Last Post Today, 05:23 AM | ||
Started by ScottWalsh, 04-16-2024, 04:29 PM
|
7 responses
34 views
0 likes
|
Last Post Today, 05:15 AM | ||
Started by cls71, Today, 04:45 AM
|
0 responses
6 views
0 likes
|
Last Post
by cls71
Today, 04:45 AM
|
||
Started by mjairg, 07-20-2023, 11:57 PM
|
3 responses
216 views
1 like
|
Last Post
by PaulMohn
Today, 04:22 AM
|
Comment