I am a trader using Metastock. I need this formula, now in easylanguage code (a Tradestation language), to be translated into C++ language. It must then be suitable to be used as a callable subroutine (an ExtFml) in Metastock language. The programmer must obviously be fluent in C++ as well as easylanguage, and preferably also familiar with Metastock and its ExtFml formats.
EASYLANGUAGE CODE FOR VOSS PREDICTIVE FILTER
Inputs:
Period(20),
Predict(3);
Vars:
Order(0), F1(0), G1(0), S1(0), Bandwidth(.25),
count(0),
SumC(0),
Filt(0),
Voss(0);
If CurrentBar = 1 Then Begin
Order = 3*Predict;
F1 = Cosine(360 / Period);
G1 = Cosine(Bandwidth*360 / Period);
S1 = 1 / G1 - SquareRoot( 1 / (G1*G1) - 1); End;
//Band Limit the input data with a wide band BandPass Filter
Filt = .5*(1 - S1)*(Close - Close[2]) + F1*(1 + S1)*Filt[1] - S1*Filt[2];
If CurrentBar <= 5 Then Filt = 0;
//Compute Voss predictor
SumC = 0;
For count = 0 to Order - 1 Begin
SumC = SumC + ((count + 1) / Order)*Voss[Order - count];
End;
Voss = ((3 + Order) / 2)*Filt - SumC;
Plot1(Filt);
Plot2(Voss);
I have quality experience in C++ and other languages like LISP/ PROLOG this is much similar to Meta stock. Please send more details in chat, so we can proceed.
sir i am fluent c++ language . I can do it easily.I work in c++ for 1.5 years. I am student of computer science.I hope i complete your work. please try me. thank u.