View Full Version : Welcome to the Coders Corner
David Samborsky
1st September 2009, 02:14 PM
Welcome to the Coders Corner. This is the place to post your Vitamin-C scripts and share them with others.
appletoast
28th September 2009, 03:18 PM
Hi David,
Thanks for the great software!
i have basically zero coding experience, but have been plugging away at metastock for half a decade. i can get around very well, but it doesn't seem like programming to me so i'm finding it challenging to get rolling with vitamin-c.
The moving average examples in the user guide are very helpful.
It would help me (and i'm guessing others) tremendously if you could post some additional code examples.
In particular, maybe you could post vitamin-c equivalents to some of the standard metastock functions such as, ref(,) barssince() hhv/llv sum(,) valuewhen(,,) highestsince(,,)
thanks in advance.
David Samborsky
28th September 2009, 03:53 PM
See Appendix-C of the User Guide for available functions and MetaStock equivalents. Only a small set of basic MetaStock functions are supported.
Essentially Vitamin-C was not designed to duplicate everything in the MetaStock environment although we will be adding more functions on request.
In a lot of cases you just code what you need in MetaStock and pass an MS formula to Vitamin-C as one of the User Array parameters. You then use Vitamin-C to do the nitty-gritty stuff that you can't do using the MSFL or that would require the MetaStock Developers Kit.
It should also be noted that Vitamin-C supports a special Array class type which behaves in a similar fashion to the way MetaStock processes data. The advantage of the Vitamin-C environment is that a lot of the array processing is done at lightning speed using hand optimized assembly language.
Regards
David ;)
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.