Power Basic DLL Examples

Building Dynamic Link Libraries (DLLs) for your own custom indicators is possible with the NeuroShell Trader Professional or DayTrader Professional. You can use a programming language to build a DLL when the indicator gets too complex for the Indicator Wizard. There are two compilers we have used to build DLLs: Microsoft C and the Power Basic DLL compiler.

Building DLLs in C is more complex than building a Power Basic DLL if for no other reason than that Power Basic is a far more simple to use compiler. The learning curve is much shorter. On top of that, unless you are a pretty experienced programmer, Basic is a much easier language, but still provides all the functionality we can imagine you may need to build indicators for the Trader.

We therefore believe that even beginning programmers can successfully use Power Basic and create their own simple DLLs in less than an hour.

To get you started, we have built three simple indicators in one DLL. You can look at the source code in a text editor to see how easy it is. The source code is movavg.bas, and the compiled DLL is movavg.dll.

There are also three Trader template files for the three indicators in this DLL. They are called movavg.tpl, truerange.tpl, and numdayssincehigh.tpl. Put these template files and the DLL in your Trader template directory, and you are ready to go. The three indicators will be in the Custom Indicators category when you restart the Trader.

If you decide to build DLLs with Power Basic, either for your own use or to sell as a NeuroShell Trader addon vendor, you can purchase the Power Basic DLL Compiler at www.powerbasic.com.

Click here to download a self extracting file containing the source code, template files, and the compiled DLL. The source code is self-documenting.

Was this article helpful?

Related Articles