- ago
Hi,
is it possible to download all indicators as a list?

Thanks
regards MaSto
0
134
Solved
7 Replies

Reply

Bookmark

Sort
Cone8
 ( 3.68% )
- ago
#1
CODE:
using System; using WealthLab.Backtest; using WealthLab.Core; using WealthLab.Indicators; namespace WealthScript12 { public class MyStrategy : UserStrategyBase {       public override void Initialize(BarHistory bars)       {          foreach (var item in IndicatorFactory.Instance.Smoothers)          {             WriteToDebugLog($"{item.Abbreviation,-20}\t{item.Name,-40}\t{item.Parameters}");          }          foreach (var item in IndicatorFactory.Instance.Oscillators)          {             WriteToDebugLog($"{item.Abbreviation,-20}\t{item.Name,-40}\t{item.Parameters}");          }       } public override void Execute(BarHistory bars, int idx) { } } }
1
Best Answer
- ago
#2
sorry, unfortunately I can't program
0
Cone8
 ( 3.68% )
- ago
#3
All the Indicators are in a list in the Indicators section, and, you can use the Filter to "search" by text. What's the purpose of the list if you're not using it in a program?

Anyway, I updated it above for "no programming".
1. Just open a new C# coded strategy,
2. replace the code with this,
3. Run Strategy it on any (one) symbol,
4. Copy the result from the Debug Log.
0
Glitch8
 ( 6.41% )
- ago
#4
Just copy the code above, open a new C# Coded Strategy and remove the default code it comes up with, and paste Cone's code. Click Run Backtest and the results will be written to the Debug Log tab.
0
- ago
#5
Thank you, it works. I have received the list. But without the description.
I need the list to document how the indicators work.
It's clearer for me this way.

0
- ago
#6
You can embellish the output with indicator's HelpDescription text like this:
CODE:
WriteToDebugLog($"{item.Abbreviation,-20}\t{item.Name,-40}\t{item.Parameters}\t{item.HelpDescription}");
0
- ago
#7
Thanks, it works.
0

Reply

Bookmark

Sort