| Coding Forum Collaborate, receive help, or discuss coding related issues. |
![]() | | Tweet | |
| | #1 | ||
![]() | Multi Data Stream Analysis (EasyLanguage) Data Used to specify a particular data series in a multi-symbol chart; each data series in a multi-symbol chart has a unique Data Number. Usage DataN Where: N - the Data Number of the data series Or (for MultiCharts): Data( N ) Where: N - a numerical expression specifying the Data Number of the data series Example High Of Data2 will return the high price of a bar in the data series with the Data Stream #2 High Of Data( 2 ) will return the high price of a bar in the data series with the Data Stream #2 source: EasyLanguage manual
__________________ Only an idiot would reply to a stupid post | ||
| |
|
| The Following 2 Users Say Thank You to Tams For This Useful Post: | ||
aaa (11-21-2009), TIKITRADER (12-21-2009) | ||
| | #2 | ||
![]() | Re: Multi Data Stream Analysis (EasyLanguage) I don't understand Is it a way 2 access to a second symbol in a chart ? Or an other resolution of the same symbol in a chart ? if it's a 2 stupid question, please don't answer aaa ------------------------------------------ Data (Reserved Word) Disclaimer Reserved word used to reference information from a specified data stream. Remarks Data is normally used with a number between 1-50 that allows the specification or which data set is being referred to in terms of price values and functions calculations. Examples Close of Data3 returns the Close price of Data stream 3. Low of Data10 returns the Low price of Data stream 10. | ||
| |
|
| | #3 | ||
![]() | Re: Multi Data Stream Analysis (EasyLanguage) the additional data stream can be of a different symbol and/or resolution. for MultiCharts users, the resolution can also be mixed: i.e. time based chart with non-time based chart e.g. 5 min data1 with 15 min data2 5 min data1 with 2401 contract volume bar data2 5 min data1 with 500 tick data2
__________________ Only an idiot would reply to a stupid post | ||
| |
|
| The Following 3 Users Say Thank You to Tams For This Useful Post: | ||
| | #4 | ||
![]() | Re: Multi Data Stream Analysis (EasyLanguage) So, if you apply the indicator to a 5-min chart, update-intrabar turned off... then even if Data2 is a 1-tick chart, you will still only run once every 5 minutes, and Close Data2 will be the most recent close for the 1-tick chart, even if you've missed hundreds of 1-tick bars in between. For this same reason, certain optimizations like AverageFC (which assumes it will "see" every bar it needs to, and only once), and any algorithm that needs to "see" every tick will generally not work across data streams and are best avoided. Things are a bit more intuitive when you have update intrabar on, but it still pays to keep this in mind. Most errors I come across in multi-data indicators stem from this issue. | ||
| |
|
| The Following 5 Users Say Thank You to RichardTodd For This Useful Post: | ||
aaa (11-28-2009), Charlton (11-21-2009), DugDug (12-05-2009), Tams (11-21-2009), TIKITRADER (12-21-2009) | ||
| | #5 | ||
![]() | Re: Multi Data Stream Analysis (EasyLanguage) ) You can hide the 1 tick bars if you don't need them. The problem with this approach is irregular scaling, the charts X scale is done in regards to data1. | ||
| |
|
| The Following 3 Users Say Thank You to BlowFish For This Useful Post: | ||
| | #6 | ||
![]() | Re: Multi Data Stream Analysis (EasyLanguage) 2 illustrate what have been said, here are graphs showing the problem of bar interval it is not smooth + we have 2 wait the end of the bar 2 draw the avg Is it the same problem that ADE which send the info only at the end of the bar ? On chart 3 An other solution is to plot a 240 ( 60/5) * 20) avg directly on the 5 mn chart but it is not accurate ![]() ![]() Last edited by aaa; 11-28-2009 at 06:34 AM. | ||
| |
|
| | #7 | ||
![]() | Re: Multi Data Stream Analysis (EasyLanguage) the resultant calculations are the same, but the visual presentation is different. Here's the code for data2 application. note that you should not use FC functions when calculating secondary data. Code: inputs: Price( Close data2 ), Length( 9 ); variables: MA( 0 ) ; MA = Average( Price, Length ) ; Plot1( MA, "Avg" ) ;
__________________ Only an idiot would reply to a stupid post | ||
| |
|
| The Following 2 Users Say Thank You to Tams For This Useful Post: | ||
aaa (11-28-2009), TIKITRADER (12-21-2009) | ||
| | #8 | ||
![]() | Re: Multi Data Stream Analysis (EasyLanguage) 1 way is 2 plot directly the avg from data2 to data 1 That's what I've done here (always with step) http://www.traderslaboratory.com/for...html#post82170 I've read that there is a way 2 compute an avg from a hiher time w/o data2 with a limitation = it must B a multiple May B on a 1 mn chart take the close of all the 5th mn and then compute the avg of the last 20 * 5 mn close ? And then add each mn close from 1 to 4 th mn to the close of the last 5 mn ? PS Sorry I'm not good with maths I'm quite sure that TAMS will ask a mock up | ||
| |
|
![]() |
| Thread Tools | |
| Display Modes | Help Others By Rating This Thread |
| |
| ∧ Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| ADE - All Data Everywhere (EasyLanguage) | Tams | Trading Indicators | 22 | 05-01-2010 01:48 AM |
| Multi Time Frame Indicator | dhelmin | Coding Forum | 11 | 08-25-2009 07:14 PM |
| TradeStation Chart Analysis Refresh for 3rd Party Data | sneo | Coding Forum | 0 | 10-22-2008 12:35 AM |
| September 26, 2008 Market Analysis - Some ES Data Also | Soultrader | Market Analysis | 0 | 09-25-2008 10:37 PM |
| Multi Monitor Software | AbeSmith | General Discussion | 2 | 07-10-2007 03:01 PM |