PureBytes Links
Trading Reference Links
|
Udo,
I will agree with you, BUT, it is *applied math* here, not pure stuff.
You acted the best, my comment was for the [probable] realistic
application.
OBV() is huge, in one way or another, and it will be >C almost for
ANY OBV()>0, as it will be <C for the negative OBV values.
Consequently, the user would probably think that "it is a Buy" and it
would be nothing but a math trap.
Thank you for your prompt reply.
Dimitris Tsokakis
--- In amibroker@xxxxxxxxxxxxxxx, Udo.Harke@xxxx wrote:
> Dimitris,
>
> yes, you a absolutely right! The code is absurd!
>
> However, in mathematics you can do all kinds of weird things that
do not happen in reality. (We can be glad that this is indeed the
case :-) .)
> My point was simply to correct the code presented by Dick: I was
not referring to any meaningful items that kind of code should fall
back on!
>
> Regards,
>
> Udo
>
> -----Ursprüngliche Nachricht-----
> Von: DIMITRIS TSOKAKIS
> An: amibroker@xxxxxxxxxxxxxxx
> Gesendet: Samstag, den 24. Mai 2003 13:21 Uhr
> Betreff: [amibroker] Re: Programing Question
>
>
> Dick, Udo,
> the code is correct, the condition OBV() > c or OBV() < c is
absurd.
> Since it is connected with an AND to the MACD condition, will
give
> quite false results.
> Perhaps you need something else for OBV().
> DT
> --- In amibroker@xxxxxxxxxxxxxxx, Udo.Harke@xxxx wrote:
> > Hello Dick,
> >
> > your programming code should be as follows:
> >
> > Buy = Cross(MACD(), 0) AND OBV() > c;
> >
> > Sell = Cross(0, MACD()) AND OBV() < c;
> >
> > Best regards,
> >
> > Udo
> >
> > -----Ursprüngliche Nachricht-----
> > Von: drlblast
> > An: amibroker@xxxxxxxxxxxxxxx
> > Gesendet: Freitag, den 23. Mai 2003 22:53 Uhr
> > Betreff: [amibroker] Programing Question
> >
> >
> > I'm trying break into this AFL programing language with very
> simple
> > Back Test but keep getting Syntax errors. I'm looking for
MACD
> that
> > has moved above zero and the OBV above the close price.
Here's
> the
> > formula.
> > Buy = Cross(MACD(),0)AND OBV > C));
> > Sell = Cross(0,MACD())AND OBV < C));
> >
> > What am I doing wrong?
> >
> > Dick H
> >
> >
> > Yahoo! Groups Sponsor
> > ADVERTISEMENT
> >
> >
> >
> >
> > Send BUG REPORTS to bugs@xxxx
> > Send SUGGESTIONS to suggest@xxxx
> > -----------------------------------------
> > 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.
>
>
> Yahoo! Groups Sponsor
> ADVERTISEMENT
>
>
>
>
> Send BUG REPORTS to bugs@xxxx
> Send SUGGESTIONS to suggest@xxxx
> -----------------------------------------
> 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.
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get A Free Psychic Reading! Your Online Answer To Life's Important Questions.
http://us.click.yahoo.com/Lj3uPC/Me7FAA/CNxFAA/GHeqlB/TM
---------------------------------------------------------------------~->
Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
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 http://docs.yahoo.com/info/terms/
|