Sentiment indicator on advancing/declining issues
Author: djmundus
Creation Date: 6/17/2018 7:44 PM
profile picture

djmundus

#1
I ask your forbearance... I'm not a developer. I can read bash and python OK, but .NET is new to me...

I would like to create a sentiment indicator that:

Divides the Advancing Issues/Declining Issues for a particular Exchange
Smoothes that value with an SMA or EMA
Finds the lowest value for the moving average.

How do I calculate that indicator?

Thanks in advance!

I haven't used Wealth-Lab since like 2004. The noobie developer in me misses the scripting language, but I'm excited to learn the new product.
profile picture

Eugene

#2
Welcome back. But don't miss the scripting language, it's still here yet way more powerful. Although your task can be accomplished in WealthScript, I'd resort to use Index-Lab with an extension as it's more straightforward:

QUOTE:
Divides the Advancing Issues/Declining Issues for a particular Exchange

1. This is Zweig's Advance/Decline indicator, also known as the "A/D Ratio". You can find it among many IndexDefinitions in the MS123 IndexDefinitions library. Restart WLP after installing and check out the User Guide on how to use Index-Lab, the syntax etc.

QUOTE:
Smoothes that value with an SMA or EMA
Finds the lowest value for the moving average.

2. Once your I-L DataSet from step #1 is created, you can access it in the script, then smooth it and find the lowest low like this:

CODE:
Please log in to see this code.
profile picture

Eugene

#3
QUOTE:
I'm not a developer. I can read bash and python OK, but .NET is new to me...

I don't know Python but love Bash scripting for Linux too :) In certain scenarios, a Bash one-liner can replace many dozen lines of C# equivalent code.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).