Good morning!
I connected my Binance account and now I have a Binance symbols dataset. It's over 2000 pairs. I'm only interested in pairs that are against BUSD e.g. BTCBUSD ETHBUSD. Is there a way to screen the list and create a new dataset that only contains those pairs?
Thanks.
I connected my Binance account and now I have a Binance symbols dataset. It's over 2000 pairs. I'm only interested in pairs that are against BUSD e.g. BTCBUSD ETHBUSD. Is there a way to screen the list and create a new dataset that only contains those pairs?
Thanks.
Rename
To screen them you can run this simple script and then copy the string from the debug log into New DataSet Wizard:
CODE:
using WealthLab.Backtest; using System; using WealthLab.Core; using WealthLab.Indicators; using System.Collections.Generic; using System.Linq; namespace WealthScript2 { public class MyStrategy : UserStrategyBase { public override void BacktestBegin() { foreach (DataSet ds in DataSetFactory.Instance.CustomDataSets) { if (ds.Name.ToLower() == this.ExecutionDataSetName.ToLower()) { string _filter = "USD".ToLower(); var _list = ds.Symbols.Where(s => s.ToLower().Contains(_filter)).ToList(); var _filteredSymbols = String.Join(", ", _list.ToArray()); WriteToDebugLog(_filteredSymbols); break; } } } public override void Initialize(BarHistory bars) { } public override void Execute(BarHistory bars, int idx) { } } }
Your Response
Post
Edit Post
Login is required