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

RE: [amibroker] Re: finding the value of a cross condition



PureBytes Links

Trading Reference Links

Ken,
 
How would you interpolate a value.....the day before the cross=987.86 and
the day after  =995.61....
 
Anthony
-------Original Message-------
 
From: amibroker@xxxxxxxxxxxxxxx
Date: Thursday, April 03, 2003 17:40:34
To: amibroker@xxxxxxxxxxxxxxx
Subject: RE: [amibroker] Re: finding the value of a cross condition
 
Anthony: I suppose you could interpolate algebraically from the values
the day after the cross and the day before the cross.  What would you do
with the value?
 
Ken
 
-----Original Message-----
From: Anthony Faragasso [mailto:ajf1111@xxxxxxxx] 
Sent: Thursday, April 03, 2003 3:48 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: Re: [amibroker] Re: finding the value of a cross condition
 
Thank you Dimitri....I was just going to post the following:
 
 
 
I was debugging in AA and came up with the following solution;
 
 
 
AddColumn(ValueWhen(Cross(fast,slow),fast),"");
 
AddColumn(ValueWhen(Cross(fast,slow),slow),"");
 
My next question was going to be....is it possible to find the value of
the
exact cross value...I assume not....so I must decide to use either the
fast
or slow value......
 
Again, thank you ....BTW...did you receive my post today.......is it
helpful
? I have another Idea.....
 
 
 
Anthony
 
 
 
 
 
 
 
 
 
-------Original Message-------
 
 
 
From: amibroker@xxxxxxxxxxxxxxx
 
Date: Thursday, April 03, 2003 15:40:54
 
To: amibroker@xxxxxxxxxxxxxxx
 
Subject: [amibroker] Re: finding the value of a cross condition
 
 
 
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
 
ADVERTISEMENT
 
 
 
 
 
 
 
 
 
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 the Yahoo! Terms of Service. 
 
 
 
 
 
 
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/ 
 
 
 
 
 
Yahoo! Groups Sponsor
ADVERTISEMENT
 
 
 
 
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 the Yahoo! Terms of Service. 
 
 

------------------------ Yahoo! Groups Sponsor ---------------------~-->
FREE Cell Phones with up to $400 Cash Back!
http://us.click.yahoo.com/_bBUKB/vYxFAA/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/