PureBytes Links
Trading Reference Links
|
Yuki,
If scCMF(14) is an equation that can be solved for zero, it is
possible.
For instance, from the Toronto MetaStock Users site is a
formula for MACD:
// By Jerry G. of
http://www.torontometastockusers.com<FONT face=Verdana
size=2>
A1=<FONT color=#8b0000
size=2>Param("Fast
Period",<FONT color=#800080
size=2>12,<FONT color=#800080
size=2>2,<FONT color=#800080
size=2>100,<FONT color=#800080
size=2>1); <FONT face=Verdana color=#008000
size=2>// Short Period<FONT face=Verdana
size=2>
B1=<FONT color=#8b0000
size=2>Param("Slow
Period",<FONT color=#800080
size=2>26,<FONT color=#800080
size=2>2,<FONT color=#800080
size=2>100,<FONT color=#800080
size=2>1); <FONT face=Verdana color=#008000
size=2>// Long Period<FONT face=Verdana
size=2>
T1=<FONT color=#8b0000
size=2>Param("Signal
Period",<FONT color=#800080
size=2>9,<FONT color=#800080
size=2>2,<FONT color=#800080
size=2>100,<FONT color=#800080
size=2>1); <FONT face=Verdana color=#008000
size=2>// Signal Period<FONT face=Verdana
size=2>
X1=<FONT color=#800080
size=2>2/(<FONT color=#800080
size=2>1<FONT
face=Tahoma>+A1);
Y1=<FONT color=#800080
size=2>2/(<FONT color=#800080
size=2>1<FONT
face=Tahoma>+B1);
top=<FONT color=#8b0000
size=2>EMA(<FONT color=#ff0000
size=2>C,B1)*(<FONT color=#800080
size=2>1-Y1)-<FONT color=#8b0000
size=2>EMA(<FONT color=#ff0000
size=2>C,A1)*(<FONT color=#800080
size=2>1<FONT
face=Tahoma>-X1);
<FONT
face=Verdana size=2>
//Close required for trigger line
crossover
S1=(<FONT color=#8b0000
size=2>EMA(<FONT color=#8b0000
size=2>MACD<FONT
face=Tahoma>(A1,B1),T1)+top)/(X1-Y1);
<FONT
face=Verdana size=2>
//Close required for 0 value
MACD
S2=top/(X1-Y1);<FONT face=Verdana
color=#8b0000 size=2>
Plot<FONT
size=2>(S1,"Close for Trigger Line Cross"<FONT
size=2>,3,<FONT
size=2>1<FONT
face=Tahoma>);
Plot<FONT
size=2>(S2,"Close for 0 Line Cross"<FONT
size=2>,4,<FONT
size=2>1<FONT
face=Tahoma>);
-CS
<BLOCKQUOTE
>
----- Original Message -----
<DIV
>From:
Yuki
Taga
To: <A title=amibroker@xxxxxxxxxxxxxxx
href="">amibroker@xxxxxxxxxxxxxxx
Sent: Monday, February 24, 2003 9:08
PM
Subject: [amibroker] looking into the
future
All:I have a trend qualifier that I use with pretty
decent success forshort-term trading on some brokerage stocks. The
qualifier is reallysimple:If 2 of the 3 major brokerage stocks
have scCMF(14) values greaterthan zero, the trend is up, else it is
down.One of the drawbacks of any indicator with a fairly lengthy look
backperiod, of course, is that it may not do what you expect on any
onegiven day. i.e., composite stocks down sharply, but the
indicatormay actually rise slightly on that day, because of the look
backSo my question:It it possible, via a computer, to
calculate tomorrow's value of aparticular indicator based on hypothetical
price values? (I'm prettysure this could be done, but I don't know
how to do it, other than byhand, which can be a very long and laborious
process.) To cut to thechase, would it even be possible to input a
desired situation on aparticular stock -- say, cross(0, scCMF(14)) -- and
then get thecomputer (AB, preferably, via some kind of scan) to give me
the priceaction that would need to take place to achieve this
situation?Yuki
^_^mailto:yukitaga@xxxxxxxxxxxxxPost
AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: <A
href="">http://groups.yahoo.com/group/amiquote/messages/)Check
group FAQ at: <A
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Your use of Yahoo! Groups is subject to the <A
href="">Yahoo! Terms of Service.
Yahoo! Groups Sponsor
ADVERTISEMENT
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
|