DIY8
- ago
Back to basics - how do I write 'custom logic' in WL 9? For example, create a strategy comparing average daily percentage price increase or loss for shares using linear regression of the last 20 days etc.

I see the indicators do not include linear regression now.
0
49
4 Replies

Reply

Bookmark

Jump to End
Cone8
- ago
#1
QUOTE:
how do I write 'custom logic' in WL 9?
That sounds like a simple Rotation strategy (New Strategy > Rotation), but you could also give the AI Strategy Generator a shot at it:



And, if you need that as a Condition in Blocks, see Building BLocks > Conditions > Symbol Ranking by Indicator.

QUOTE:
I see the indicators do not include linear regression now.
Search for it with the Filter -
0
DIY8
- ago
#2
Thanks Cone. No way can I create a strategy thus hoping I can manage it with AI. Attached screenshot mentions 'Load data'?
0
- ago
#3
You'll need to enable a data provider that can deliver the data you're trying to backtest. Watch this WL University video about data...

https://youtu.be/STRx7fDXg3w
0
Cone8
- ago
#4
Definitely watch the WL U. videos ^^^

But for this you're just a step away. Strategy Settings tab (hit F1 for help) > Portfolio Mode > select the DataSet > Run Backtest.

Also, for easily configurable options, you'd be better served by using a Rotation Strategy. New Strategy > Rotation, strike F1 for help with the settings.
0

Reply

Bookmark

Jump to Top