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

[amibroker] Re: Programing Question



PureBytes Links

Trading Reference Links

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 ---------------------~-->
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/