How can WL8 retrieve data for a single symbol from the clicked DataSet ONLY? Currently, it sometimes pulls data from the selected DataSet on the left, but other times it fetches from a different DataSet that is checkmarked in the "Historical Providers."
Rename
In Build 115 it should now always pull from the clicked symbol if you execute a strategy by clicking a symbol in the tree. I haven't got it to fail, but it's possible you're using a different procedure?
Here's the code I'm using to validate:
Here's the code I'm using to validate:
CODE:
public override void Initialize(BarHistory bars) { if (bars.DataSet != null) WriteToDebugLog("Bars DataSet=" + bars.DataSet.Name); BarHistory es = GetHistory(bars, "ES"); PlotBarHistory(es, "ES"); if (es?.DataSet != null) WriteToDebugLog("ES DataSet=" + es.DataSet.Name); }
I tested your script, and it correctly logs that the data is from the DataSet I clicked. However, the chart displays a different DataSet at the bottom, and the data shown on the chart does not match the DataSet I clicked but instead corresponds to the one named at the bottom.
If they are ASCII DataSets they will just display "ASCII" at the bottom.
I'm not able to reproduce this. In fact, I created 3 copies of ASCII files in 3 different directories, and verified in the debugger that WL8 loads the data from the correct folder (CSV, CSV2 or CSV3) depending on which symbol is clicked.
Maybe we can set up a Zoom call so you can walk me through what's happening at your end? You can email me at dion@wealth-lab.com if interested.
I'm not able to reproduce this. In fact, I created 3 copies of ASCII files in 3 different directories, and verified in the debugger that WL8 loads the data from the correct folder (CSV, CSV2 or CSV3) depending on which symbol is clicked.
Maybe we can set up a Zoom call so you can walk me through what's happening at your end? You can email me at dion@wealth-lab.com if interested.
Here are my settings that define this behavior:
The "Historical Providers" section includes several ASCII DataSets, such as Q-Data, Yahoo, and WealthData.
Among these, only one ASCII DataSet is checkmarked.
Clicking on any Symbol within ASCII DataSets functions correctly.
Clicking on any Symbol within Q-Data typically, if not always, works as expected.
Clicking on "AAPL" inside "WD" under "S&P 500" displays a chart from ASCII.
The "Historical Providers" section includes several ASCII DataSets, such as Q-Data, Yahoo, and WealthData.
Among these, only one ASCII DataSet is checkmarked.
Clicking on any Symbol within ASCII DataSets functions correctly.
Clicking on any Symbol within Q-Data typically, if not always, works as expected.
Clicking on "AAPL" inside "WD" under "S&P 500" displays a chart from ASCII.
I'm not able to reproduce it here. If you want to schedule that Zoom call let me know via email.
Please look at the picture attached here. This is the last click on the "AAPL".
Did you previously click AAPL in the ASCII DataSet? That could be the issue, I'll work on cleaning that up.
No.
Clicking any previous Symbol has no effect on it.
Clicking any previous Symbol has no effect on it.
Ok then we should have that Zoom call so I can see what is happening exactly. Feel free to email to set it up.
I restarted WL8 > Opened Script > clicked on WD S&P 500 > clicked on AAPL and got a chart from ASCII, then clicked on "ABNB" ( I think it was showing as loading for a sec) and got a chart from "NASDAQ 100" as on the pic.
It appears that you first ran a backtest on the Nasdaq 100 DataSet.
After a portfolio backtest completes, when you click different symbols that are already in that portfolio, WL8 will bring up the data you've already loaded and is still loaded from the portfolio. It won't run a new backtest. So, seeing Nasdaq 100 in that case is expected.
In fact, the only way you'll see Nasdaq 100 in the status bar is if you ran the backtest on that DataSet at a portfolio level.
After a portfolio backtest completes, when you click different symbols that are already in that portfolio, WL8 will bring up the data you've already loaded and is still loaded from the portfolio. It won't run a new backtest. So, seeing Nasdaq 100 in that case is expected.
In fact, the only way you'll see Nasdaq 100 in the status bar is if you ran the backtest on that DataSet at a portfolio level.
I did not touch the Nasdaq 100 after opening WL8.
Here is what you can see on the "Portfolio backtest" tab.

Here is what you can see on the "Portfolio backtest" tab.
I also want to mention that WL8 should retain the selected DataSet in the tree on the left and continue pulling the Symbol from this DataSet when a Symbol is entered in the chart input. Now it does not work like that. Currently, it pulls the Symbol according to the "Historical Providers" checkmark disregarding the selected DataSet on the left.
Your Response
Post
Edit Post
Login is required