TC2000.com• Download software • Tutorial videos • Subscription & data-feed pricing • Class schedule
TC2000Brokerage.com• New account application • Trading resources • Margin rates • Stock & option commissions
Worden Discussion Forum » General Discussions » Stock and Market Talk » ETF world markets System
Obviously I have been careless in the presentation above so, dont take any of my numbers as fact. That said, I have tried to give the description as cleanly as time permits. There is a shared layout from danial bender which I re-released after (SF4) which is what I started with here. "return vs LPM" something like that. I can not seem to find the SHARE on SF5, assuming the index of a watchlist exists in SF4 I will try to recreate in SF4, and share from there. My intension was to use the World index etfs listed, Using sf5 beta above, You can (1) make an index from a watchlist. 2) I have been interested in the LPM which is similar to using the Sharpes Ratio divided by the standard deviation over time period 'm'. The Return/LPM gives an idea of the stocks positive moves also has an input for interest rate, such that if you If a stocks positive gains compared to the interest rate is Positve then the indicator will be moving up, if the stock were making new lows then the indicator would move down, sorting your list by best performers. GT greater than && and R/LPM - shapes like ratio and deviation LR linear regression If createe BUY rule based on If ( R/LPM 10MA GT 0 && 10ma R/LPM moving up 4of5 && LR 60 of price moving up ) OR ( Index > 45d ma && (LR25 of LPM > 0) && (LR60 of Price moving up) ) Exits are shown in the jpg's http://forums.worden.com/Default.aspx?g=posts&t=44320 R, and LPM are given below as Real code indicator, you can drag R on top of LPM to get the Ratio. ---- Sorry got to to ----- hope this is read able ============================= 'R = Return
' 90 days @ 1.5% interest
'# bars = userinput.integer = 90 Dim sumR As Single dim Rt as single
Rt = 0 sumR = 0
For x As Integer =1 To bars Rt = 100 * (price.close(x-1) - price.close(x)) / price.close(x) sumR = sumR + Rt Next x ' m ' R = Sigma [ (price.close(x) - price.close(x - 1)) / price.close(x) ] ' t=1
plot = sumR '=========================================== ' 90 days @ 1.5% interest
'# bars = userinput.integer = 90 '# tReturn = userinput.single = 1.5 '# degree = userinput.single = 2 dim Rt as single Dim sumTReturn As Single dim tmp as single
Rt = 0 sumTReturn = 0
for x as integer =1 to bars Rt = 100 * (price.close(x-1) - price.close(x)) / price.close(x) tmp = (tReturn - Rt) If ( 0 > tmp) Then ' Max 0, tmp tmp = 0 end if sumTReturn = sumTReturn + ( tmp ^ degree ) Next x ' m ' LPM = 1/m * Sigma [ ( max(0, (tReturn-Rt) ) ^ degree ] ' t=1
plot = (1 / bars) * (sumTReturn) '=======================================================
Surfice it to say. This is an attempt to capture Movements in World ETF's when the Index of the ETF's are above the index 45D moving average. Else cash. Timing the ETF buy based on the ETF's price percent gain as a function of its price deviation over a given period. This does not imploy the momentum strategy as described by Ben's thread. I will have to revisit that, try to stay as close to Ben's layout as possible, and update that thread.