When using multiple datastreams in Easylanguage, there are some things you need to consider.
For instance, trying to combine delayed data with live data will cause the infamous warning that reads: “You may not mix symbols with different delays in the same window” .
In order to combine two datastreams, they must have the same delay. That is, they all need to be either delayed or live data.
To tell if the data is live or delayed, you may check the symbol name. If it contains “(D)” it’s delayed, while it should be live if it’s missing.
Below you see a delayed symbol.
Inserting the Second Data Stream.
To use a second data stream, you first need to insert the second symbol onto a chart window.
You do this by right-clicking the chart window and selecting “insert symbol“. In the window that pops up, you may insert the name the new symbol, and click “Ok.”
Now you should see that there is a second symbol applied to the chart window, like below.
If you want to edit the timeframe of any of the symbols, you right-click the chart and select “format symbol“. Then select the symbol you want to edit, and click “format”.
How to Reference the Second Datastream in Easylanguage
To reference the second data stream in Easylanguage, you type “data2” after the bar value you’re referencing. For instance, you get the close of the second data stream by typing “close data2”