StockFetcher Forums · Filter Exchange · Triple Momentum ROC<< 1 ... 3 4 5 6 7 >>Post Follow-up
glgene
613 posts
msg #72872
Ignore glgene
3/17/2009 8:45:58 PM

Tried it, and it produced a resulting number of 99.89. Can't be. Stock price of QQQQ is less than $30.

Look back at my note (2 msg. ago). According to Elder, you've got to use the 1-2 step process (for his example):

1) First, calculate an EMA(13) of price,
then,
2) Calculate an ROC(21) of the 13-day price EMA.

I think your SMROC(13,21) doesn't do the above. It doesn't address price at all. Just a smoothed ROC. I'm baffled that it came up with 99.89.

I went to Yahoo, and did a calculation of 13-day EMA price. It's $27.36. Price closed today at $29.33

I simply don't know how to SF script the 1-2 process above.

SOS.

Zack

chetron
2,817 posts
msg #72874
Ignore chetron
3/17/2009 9:19:17 PM

LOOKING UP THE FORMULA AT INVESTOPEDIA, IT LOOKS LIKE SF IS GOING IN THIS DIRECTIONISH


Fetcher[

SET{VEMA13,EMA(13) 21 DAY AGO}
SET{VAR1,EMA(13) / VEMA13}
SET{VAR2,VAR1 * 100}

DRAW VAR2 LINE AT 100


SMROC(13,21) crossed above 100 within the last 1 day

]



chetron
2,817 posts
msg #72875
Ignore chetron
modified
3/17/2009 9:27:46 PM

ALL TOGETHER NOW.......................



Fetcher[

SET{VEMA13,EMA(13) 21 DAY AGO}
SET{VAR1,EMA(13) / VEMA13}
SET{VAR2,VAR1 * 100}

DRAW VAR2 LINE AT 100

SYMLIST(QQQQ)
SET{VAR11,EMA(13) - VEMA13}
SET{VAR12,VAR11 / VEMA13}

DRAW VAR12 LINE AT 0

DRAW SMROC(13,21) LINE AT 100

]



glgene
613 posts
msg #72876
Ignore glgene
3/17/2009 9:38:35 PM

OK, I'll put my "slow" magnifying glass to it.

Still need to put QQQQ in a Symlist

Symlist(QQQQ)

since that is the basis for the original project. Simply buy/sell QQQQ at buy/sell signals of TripleMomROC.

That would put QQQQ around 99 on your chart. Look at QQQQ's climb the last few days. It would have missed all the gain.

????


Zack

glgene
613 posts
msg #72877
Ignore glgene
3/17/2009 9:53:32 PM

I checked XLF with your scripting. It's at 99.81, short of a buy at 100. That means it would have just missed about a 40% run-up.

Put XLF in a symlist and you'll see what I mean.

Where did the number 100 come from?

Zack



chetron
2,817 posts
msg #72878
Ignore chetron
3/17/2009 10:01:09 PM

THE 100 WAS IN THE INVESTOPEDIA FORMULA. I DON'T KNOW WHY.


Fetcher[



SET{VAR1,ROC(5) + ROC(15)}
SET{xroc,ROC(25) + VAR1}

SET{xroc_osc,INDPOSITION(xroc,60) * 100}


SET{VEMA13,EMA(13) 21 DAY AGO}
SET{VAR31,EMA(13) / VEMA13}
SET{VAR2,VAR31 * 100}

DRAW VAR2 LINE AT 100

SYMLIST(QQQQ)
SET{VAR11,EMA(13) - VEMA13}
SET{ZSMROC,VAR11 / VEMA13}

DRAW ZSMROC LINE AT 0

DRAW SMROC(13,21) LINE AT 100


DRAW xroc_osc
DRAW xroc
ADD COLUMN xroc_osc
ADD COLUMN xroc
ADD COLUMN ZSMROC

CLOSE ABOVE .1
VOLUME ABOVE 1000000

]



chetron
2,817 posts
msg #72879
Ignore chetron
modified
3/17/2009 10:03:14 PM

MAYBE XROC_OSC BOUNCING OFF THE ZERO LINE IS A BUY? THAT WOULD HAVE GOT XLF?????????????

100 A SELL????????????????



glgene
613 posts
msg #72880
Ignore glgene
3/17/2009 10:17:36 PM

Chetron,

Here is what I've done so far --- with MUCH your scripting help. I just added some fluff to it (displays, columns) for possible confirming signals (RSI, MACD-Histogram). Note that I added this to the script:

add column SMROC(13,21) ....... from your first msg. tonight. It's at the 6th line of scripting.

Look at the multitude of Symlist results: Practically all at 99+. Looks suspicious. XLF has had a superb run-up, and it would have been missed. ?????

Zack


Fetcher[
SET{VAR1,ROC(5) + ROC(15)}
SET{XROC,ROC(25) + VAR1}

SET{VAR3,INDPOSITION(XROC,60) * 100}

draw FI(3)
draw FI(3) line at 0
add column SMROC(13,21)
DRAW VAR3
DRAW XROC
ADD COLUMN VAR3
add column roc(5) {ROC(5)}
add column roc(15) {ROC(15)}
add column roc(25) {ROC(25)}
add column separator
ADD COLUMN XROC

add column xroc 1 day ago {1-d Ago}
add column separator
add column rsi(14)
add column rsi(14) 1 day ago {1-d Ago}
add column separator
add column MACD histogram {MACD-h}
add column MACD histogram 1 day ago {1-d Ago}
draw macd histogram
draw ADX(14)
draw xroc line at 4
draw ma(50)
draw ema(50)
draw rsi(14)
draw rsi line at 50
draw smroc(13,21)

SYMLIST(QQQQ)
symlist(dia)
symlist(spy)
symlist(xlf)
symlist(xlk)
symlist(xli)
symlist(xlu)
symlist(xle)
symlist(big)
symlist(xlp)
symlist(xly)
symlist(xlb)
symlist(xlg)
symlist(eem)
symlist(moo)
symlist(rsp)
symlist(gld)
symlist(slx)
symlist(xlv)
symlist(qcor)


CLOSE ABOVE .1
VOLUME ABOVE 10000
sort column 3 descending
]



Eman93
4,750 posts
msg #72884
Ignore Eman93
3/18/2009 1:39:04 AM

This is pretty cool, it worked for BIG only one draw down day I started on the day it crossed 100 and just eyeballed the results.

Have you been using this? How is it working?

glgene
613 posts
msg #72887
Ignore glgene
3/18/2009 7:54:33 AM

This script is simply in the development stages. Haven't actually used it yet. Want to try and wrap up the smoothed ROC first (if that's doable). Chetron has been absolutely invaluable with this project!!

The book I got this from (written by Gerald Appel) says it (ROC crossover) has been backtested only with the NAZ index, but it says it should be suitable with other indices as well. It makes no comments about individual stocks, so that's just guesswork (I guess!).

I added RSI and MACD columns to be able to look at other indicator info at the same time as XROC. Also put Force Index into the graph (just learning about that) and ADX info.

I put BIG in the mix from a friend who bought that stock about a week ago. Thought he might be interested in seeing how it does with XROC.

Notice that I put 1-day ago info next to certain columns. Again, that's just to add more "look" at a stock's short-term performance. I figure, if you've got the columnar space, why not use it?

I'll keep working on it. Let me know if you (or anybody else reading this) have any suggestions for improvement.

Zack



StockFetcher Forums · Filter Exchange · Triple Momentum ROC<< 1 ... 3 4 5 6 7 >>Post Follow-up

*** Disclaimer *** StockFetcher.com does not endorse or suggest any of the securities which are returned in any of the searches or filters. They are provided purely for informational and research purposes. StockFetcher.com does not recommend particular securities. StockFetcher.com, Vestyl Software, L.L.C. and involved content providers shall not be liable for any errors or delays in the content, or for any actions taken based on the content.


Copyright 2022 - Vestyl Software L.L.C.Terms of Service | License | Questions or comments? Contact Us
EOD Data sources: DDFPlus & CSI Data Quotes delayed during active market hours. Delay times are at least 15 mins for NASDAQ, 20 mins for NYSE and Amex. Delayed intraday data provided by DDFPlus


This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.