[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Easy language to MS translation HELP



PureBytes Links

Trading Reference Links


Michel,You'll find below 
:
(1) what PK AMA custom indicator could be in Metastock 
(translated from your EL code)(2) the US Omega list instructionsps - You 
could also browse the egroups.com site for other "tradestation" or "metastock" 
lists.AlainKaufman AMA 
code{ Kaufman AMA indicator }
PriceSeries:=Input("Prices series - 
0:O|1:H|2:L|3:C",0,3,3);Periods:=Input("Periods",1,32767,10);FEndF:=Input("Fast 
end factor",0,1,0.666);SEndF:=Input("Slow end 
factor",0,1,0.0645);
<FONT 
size=2>Pr:=If(PriceSeries=0,OPEN,If(PriceSeries=1,HIGH,If(PriceSeries=2,LOW,CLOSE)));
<FONT 
size=2>Signal:=Abs(Pr-Ref(Pr,-Periods));Dnoise:=Abs(Pr-Ref(Pr,-1));Noise:=Sum(Dnoise,Periods);EffRatio:=If(Noise>0.,Signal/Noise,0.);FERatio:=FEndF*EffRatio+SEndF*(1-EffRatio);SmoothF:=Power(FERatio,2);
PKAMA:=Pr*SmoothF+(1-SmoothF)*PREV;PKAMA;
 
The trading system coding is straigthforward<FONT 
size=2>
1°) Buy - Reference the KAMA custom indicator in Bollinger 
bands top formula to evaluate BBH
2°) Sell - Reference the KAMA custom indicator in Bollinger 
bands bottom formula to evaluate BBL
Subscription 
requests
All subscription or unsubscription requests should be mailed 
either to:<FONT 
size=2>omega-list-request@xxxxxxxxxx  or 
to:<FONT 
size=2>omega-digest-request@xxxxxxxxxxdepending 
on whether you want to subscribe or unsubscribe to/fromthe real-time list or 
the digest version of the list.  The contentof both lists is the same, 
but the digest is sent roughly once a day.In your mail's Subject: line, 
say either subscribe or unsubscribe.Please note, you will receive a note 
saying you were not removed fromthe list if you are subscribed to the digest 
and try to unsubscribefrom the list.You will be asked to confirm 
your intention to subscribe, to preventyour being maliciously subscribed to 
unwanted lists.You will be removed from the list or digest immediately 
upon receiptof an unsubscribe request.  You will receive a notice 
saying you havebeen unsubscribed; no further action is 
necessary.----- Original Message -----From: "Michel 
Amelinckx" <<FONT 
size=2>Michel.Amelinckx@xxxxxxxxxx>To: 
<<FONT 
size=2>metastock@xxxxxxxxxxxxx>Sent: Monday, 
November 27, 2000 5:10 PMSubject: RE: Easy language to MS translation 
HELP> John, apart the excitement about my E-mail format there was 
no reply.  I> guess there's no one here who is mastering Easy 
Language AND MS Language.> Maybe I should try a Tradestation user group, 
although I don't know any.>> ONE last cry for help, is there 
anyone who is willing to help me translate> an Easy language code in 
MS.>> I thank you in advance>> > -----Original 
Message-----> > From: <A 
href="mailto:owner-metastock@xxxxxxxxxxxxx";><FONT 
size=2>owner-metastock@xxxxxxxxxxxxx> > 
[mailto:owner-metastock@xxxxxxxxxxxxx]On Behalf Of jhmtn> > Sent: 
maandag 27 november 2000 9:44> > To: <A 
href="mailto:metastock@xxxxxxxxxxxxx";><FONT 
size=2>metastock@xxxxxxxxxxxxx> > Subject: Re: 
Easy language to MS translation HELP> >> >> > 
GlacierMichel,> >> > Did someone post the solution to your 
question ????> >> > If so, I missed it and would like to see 
in> > Metastock functions what this Easy Language> > code 
looks like.  It seems to be the "Adaptive> > Bollinger Band" 
idicator.> >> > Thanks, ............. John> 
>> > ----- Original Message -----> > From: Michel 
Amelinckx> > To: <FONT 
size=2>metastock@xxxxxxxxxxxxx> > Sent: 
Friday, November 24, 2000 5:37 PM> > Subject: RE: Easy language to MS 
translation HELP> >> >> > Thanks for the 
help!!!> > -----Original Message-----> > From: <A 
href="mailto:owner-metastock@xxxxxxxxxxxxx";><FONT 
size=2>owner-metastock@xxxxxxxxxxxxx> > 
[mailto:owner-metastock@xxxxxxxxxxxxx]On> > Behalf Of Michel 
Amelinckx> > Sent: donderdag 23 november 2000 0:50> > To: 
Metastock User List (E-mail)> > Subject: Easy language to MS 
translation HELP> >> >> > Hello,> > Is 
there someone who is willing to help me to translate this> > system 
coded in> > easy language to MS.  Many THANKS in advance> 
>> >> > }> > 
inputs:BBLength(38),BBStdDev(3),> > 
BBHPrice(ADAPTIVE(H,10)),BBLPrice(ADAPTIVE(L,10));> >> > 
vars:BBH(0),BBL(0);> >> > 
BBH=BollingerBand(BBHPrice,BBLength,BBStdDev);> > 
BBL=BollingerBand(BBLPrice,BBLength,-BBStdDev);> >> > if c 
>bbh then buy;> > if c<bbl then sell;> >> > 
{> > P.S. The adaptive function part is Perry Kaufmans:> > 
}> > inputs:price(numericseries),period(numericsimple);> 
>> > vars: noise(0),signal(0),dif(0),efratio(0),> 
>        
smooth(1),fastend(.666),slowend(.0645),am(0);> >> > 
{CALCULATE EFFICIENCY RATIO}> > <A 
href="mailto:dif=@xxxxxxxx(price"><FONT 
size=2>dif=@xxxxxxxx(price - price[1]);> > 
if(currentbar <= period) then am =price;> > if(currentbar > 
period)then begin> >         
signal = @AbsValue(price - price[period]);> 
>         noise = 
@summation(dif,period);> 
>         efratio = 
signal/noise;> >         
smooth = @Power(efratio*(fastend - slowend) + slowend,2);> >> 
> {ADAPTIVE MOVING AVERAGE}> 
>        am = am[1] + smooth*(price - 
am[1]);> >      Adaptive=am;> 
>         end;> > 
Greeting> >> > Mickey> >> 
>>>