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

Easy language to MS translation HELP



PureBytes Links

Trading Reference Links



Don't know what is going on, tried to sent 
this already for the 3 times to the list.
will sent chart on other message
Thanks a million, it's more than normal that I try to code the MS part 
myself.  Although I hope that you can correct me when I make a 
mistake.The original code is way down in this message, see below. For the 
example I took the QQQ sinds 01/01/2000.
As you can see I converted to HTML format so I can 
work with colors, hope you support it. I included the steps and the formula, so 
MAYBE someone can learn of it. (I HOPE it correct)
n:=Input("Time 
Periods",1,1000,10);dif:=Sum(Abs(CLOSE-Ref(CLOSE,-1)),n);signal:=Abs(CLOSE-Ref(CLOSE,-n));Efratio:=signal/dif;Efratio
Thanks Kent
Mickey> 
-----Original Message-----> From: owner-metastock@xxxxxxxxxxxxx> 
[<A 
href="mailto:owner-metastock@xxxxxxxxxxxxx";>mailto:owner-metastock@xxxxxxxxxxxxx]On 
Behalf Of Kent Rollins> Sent: maandag 27 november 2000 17:44> To: 
metastock@xxxxxxxxxxxxx> Subject: Re: Easy language to MS translation 
HELP>>> I will help you, but you will have to do the MS 
coding.>> Step 1: compute the efficiency ratio.>> 
dif = @AbsValue(price - price[1])
<FONT color=#0000ff 
size=3>dif:=Sum(Abs(CLOSE-Ref(CLOSE,-1)),n);<FONT 
size=2>>> This means 'dif' equals the absolute value of 'price' 
minus the prior> 'price'.  Let's assume 'price' is 'close' so create 
a MS statement to> compute that.>> signal = @AbsValue(price 
- price[period])
n:=Input("Time Periods",1,1000,10);
<FONT color=#0000ff 
size=3>signal:=Abs(CLOSE-Ref(CLOSE,-n));>> This means 
'signal' equals the absolute value of 'price'> minus 'price N 
bars> ago'.  Again, assume 'price' is 'close' and 'N' should be 
an> input into the> equation.  Let's assume N = 10.  
Create an MS statement for that.>> noise = 
@summation(dif,period)
this step I included in the first 
formula by adding SUM(...,n)>> Simple enough: add up the 
value of 'dif' over the last N bars.>> efratio = signal / 
noise
<FONT color=#0000ff 
size=3>Efratio:=signal/dif;Efratio>> Again, 
self-explanatory.  This is the Kaufman Efficiency> Ratio which is 
used> as an input into the Kaufman Adaptive Moving Average which 
we> will compute> next.  Show me a plot of the Efficiency 

Attachment: Description: "Kent>"

Attachment: Description: "Ratio in Metastock and we will> proceed to the next step.>> "