Coding for creating Acceleration Bands
Author: Optionjunky
Creation Date: 8/16/2008 9:05 AM
profile picture

Optionjunky

#1
Hello
I want to use Acceleration Bands in WLPro5. I am the code as used on MetaStock and from thinkorswim but I can not make it work here. I have put the codes below. Can anyone help me. Thanks

MetaStock
CODE:
Please log in to see this code.



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

Eugene

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

Optionjunky

#3
Thank you Eugene
Can I put this in the indicator list as I will use this indicator often. I would like to place it in a new folder as opposed to the TASC and Standard lists. If so please advise as to how. I'm new to "programing" and new to wealth_lab so I appreciate your help.
profile picture

Eugene

#4
QUOTE:
Can I put this in the indicator list as I will use this indicator often. I would like to place it in a new folder as opposed to the TASC and Standard lists. If so please advise as to how.


It takes you to code the indicator, implementing the IndicatorHelper interface, debug & compile in Visual Studio (or SharpDevelop) and finally drop the assembly into the Wealth-Lab main folder. After restarting, indicator appears on the Indicator list. Since Community.Indicators and TASC Indicators went open source, any of these libraries will serve you as template.

However I could simplify the task for you and include Acceleration bands in Community.Indicators. Although it's too trivial (single-liner) to qualify for our Community.Indicators project, there's demand for it because it's been requested in the old days too.
profile picture

DartboardTrader

#5
QUOTE:

it's too trivial


I would tend to disagree. Many programmers tend to screw up even the most trivial implementations.
And there are many instances where a "one-liner" looks simple, but a misplacement of a parenthesis or operator can severely change the outcome.

So, a "trivial" indicators category might actually be a good thing to prevent a casual wealthscript writer from implementing a trivial indicator incorrectly.

Just like STL for C++ covers some of the most 'trivial' of data structures, and rightly so, because when an average developer is left to re-implement most algorithms, the simplest of boundary cases or calculations are usually implemented incorrectly.
profile picture

Eugene

#6
This is why it can be qualified as 'trivial':

QUOTE:
Community.Indicators is a library of custom technical indicators. We'll accept custom indicators that require logical operations to populate the DataSeries or those that involve a minimum of 4 simple math operations. In other words, let's keep the library clear of simplistic indicators that can be created easily on the fly.


Home - Community.Indicators

However, demand for this indicator existed in the WL3 days and still exists, thereby justifying us to break that rule and include it. This is on my ToDo list, I'll throw it in soon.
profile picture

Eugene

#7
Well, Community.Indicators has been updated to include Acceleration Bands. As always, its source code is open.

P.S.
After downloading and installing this library from our site,
Developer 5.1 users will have the ability to stay in touch with its updates (soon).
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).