logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
snoopy  
#1 Posted : Monday, August 31, 2009 10:18:23 AM(UTC)
snoopy

Rank: Member

Groups: Registered, Registered Users, Subscribers
Joined: 4/25/2006(UTC)
Posts: 10

Vitamin-C for MetaStock sets new standards for MetaStock users !! For the first time you can transcend the limitations imposed by the MetaStock Formula Language(MSFL) without resorting to the obfuscation and complexities of the MetaStock Developer's Kit ! Vitamin-C offers full access to industry standard C/C++ code capabilties from within MetaStock in a user friendly environment. Now you can code the way that you always wanted to and focus on the end result rather than battle with the obstacles !

More details from http://www.compuvision.com.au






snoopy  
#2 Posted : Tuesday, September 1, 2009 9:50:46 AM(UTC)
snoopy

Rank: Member

Groups: Registered, Registered Users, Subscribers
Joined: 4/25/2006(UTC)
Posts: 10

Some people have emailed me about how the software actually works with MetaStock.

I will briefly explain by using a simple example of an Adaptive Moving Average.

Developed by Perry Kaufmann, this indicator is an EMA (exponential moving average) using an Efficiency Ratio to modify the smoothing constant, which ranges from a minimum of fast length to a maximum of slow length.

The following Vitamin-C script to implement this is saved to a file called 'AMA.c'

void AMA()
{
float lastvalue=User1[ 0 ]; // approximate previous value at the start
float newvalue;

for(int i=1;i<BarCount;i++) // loop for all bars
{
newvalue = User2[ i ] * User1[ i ] + ( 1 - User2[ i ] ) * lastvalue;
Result[ i ]=newvalue;
lastvalue=newvalue;
}

Result.SetFirstValidBar(1); // ignore the first bar
}


You then call this script from MetaStock using the following code and substituting User1, User2 with the approriate MSFL code.

ExtFml( "VitaminC.CallScript1",
"AMA.c", { name of script file }
"AMA()", { function name and no parameter }
User1, { User1 data array to smooth }
User2 { User2 data array smoothing factor }
);


There is no use of compilers or complex DLL code to deal with. You just write and save the script and run it from MetaStock.
kjiten  
#3 Posted : Thursday, January 7, 2010 9:14:59 PM(UTC)
kjiten

Rank: Newbie

Groups: Registered, Registered Users, Subscribers
Joined: 12/27/2009(UTC)
Posts: 3

Hi,
I want to know is the following possible with vitamin C.

1. To plot Daily RSI values on Intraday charts.

2. To highlight the days when some particular intraday event occurs like RSI crosses 70 on hourly charts. Then can we highlight such days?

Regards
Jiten
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.