| 
 PureBytes Links 
Trading Reference Links 
 | 
Anthony ,
In AA
fast=EMA(C,10); 
slow=EMA(C,20); cond=Cross(fast,slow);
Filter=Cond;
AddColumn(fast,"fast");
AddColumn(slow,"slow");
or, in IB
fast=EMA(C,10); 
slow=EMA(C,20); 
Plot(fast,"",1,1);
Plot(slow,"",9,1);
Plot(Cross(fast,slow)*fast,"",5,2);
Plot(Cross(fast,slow)*slow,"",4,8);
Remember that Cross(fast,slow) is binary, 1 or 0.
Note also that you read the values AFTER the cross. [If you want 
values BEFORE the cross, use Ref() function]
DT
--- In amibroker@xxxxxxxxxxxxxxx, "Anthony Faragasso" <ajf1111@xxxx> 
wrote:
> How can I find the value of a cross condition. I do not what the H, 
l, C, or
> Open...but the value when the 2 lines cross....is it possible...
>  
> example:
>  
> fast=ema(c,10);
> slow=ema(c,20);
>  
> cond=cross(fast,slow);
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Save Smiley. Help put Messenger back in the office.
http://us.click.yahoo.com/4PqtEC/anyFAA/i5gGAA/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/ 
 
 |