I've used the Indicators_Base download to find most of the info needed (enumerators, indicator logic and methods etc) to code some custom indicators. There used to be a link to Indicators_Base.zip, but I can't find it. Then use a few of the indicator source files as examples (http://forexsb.com/wiki/indicators/source/start) This used to be a zip too, I don't have the link.
Indicators look like a lot of code, but it helped me most to see the C# code in 6 parts:
- Slot types - Open (can use with Bar Opening) or OpenFilter (only with Bar Closing), and Close and CloseFilter
- Parameters - at top, with "IndParam.ListParam" and "IndParam.NumParam"
- Calculate(), with for-loop to run indicator code on each bar
- Components - get arrays from for loop to display info on side of chart, and entry/exit signals
- SetDescription() - makes a string to show on strategy overview
- ToString() - shows indicator description info on chart
In the Calculate section, usually I only need int, double, sometimes bool, and arrays of them, and a few members of the Math class -- ie even a very small amount of C# language is enough to do a lot.
One of the key parts is the Indicator Logic (eg, "the _ rises", "the _ falls", etc) in the parameters. In the Component section, usually the string is matched with an Indicator logic, which you can find in the lower half of Indicators_Base\Indicator.cs.
I've attached my copy of Indicators_Base.zip until I find and can post the link to it. I've learned C# from working with the indicators too, maybe I can help with some things and look forward to learning some new things.
Post's attachmentsIndicators_Base.zip 12.11 kb, file has never been downloaded.
You don't have the permssions to download the attachments of this post.