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

[amibroker] Re: SHOW ME where THE MONEY went



PureBytes Links

Trading Reference Links

The Avol and dvol in the ATC formula should be Acash & Dcash of 
course.

Regds Gerard


--- In amibroker@xxxxxxxxxxxxxxx, "Gerard Carey" <gcfinance@xxxx> 
wrote:
> I'm attempting to create an ATC Indicator plotting the cash inflows 
&
> outflows of advancing and declining stocks. Initially I'll use
> Volume*Close to get the cash totals. 
> 
> So here's my problem. I've got the 'CASH FLOW DIRECTION' scan that
> follows to calculate the advancing & declining volumes but now I've 
got
> brain fade. I can't seem to AFL the volume into cash.
> I'd appreciate some help.
> 
> //IN AA
> /* CASH FLOW DIRECTION.  Calculates the dollar inflows/outflows of
> advancing & declining stocks */
> Acash=IIf(C>Ref(C,-1),(V*O),0) ;
> Dcash=IIf(C<Ref(C,-1),(V*O),0) ;
> AddToComposite(Avol,"~cash+","x");
> AddToComposite(dvol,"~cash-","x");
> 
> If you can help me with that I'll 'IB'it as follows;
> 
> //IN IB
> /* CASH FLOW DIRECTION.  Plots inflows, outflows */ 
> 
> A1=Foreign("~cash+","x"); 
> A2=Foreign("~cash-","x");
> A3=A1-A2; // A3 & A4 are just in case I wish to plot %'s
> A4=A1+A2;
> 
> //If it's erratic maybe I'll DEMA it a little. 
> 
> Plot(DEMA(A1,5),"",colorGreen,styleLine); 
> Plot(DEMA(A2,5),"",colorRed,styleLine);
> 
> Any input would be much appreciated.
> 
> Regds Gerard
>  
> 
> -- 
> http://www.fastmail.fm - Access all of your messages and folders
>                           wherever you are


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Free shipping on all inkjet cartridge & refill kit orders to US & Canada. Low prices up to 80% off. We have your brand: HP, Epson, Lexmark & more.
http://www.c1tracking.com/l.asp?cid=5510
http://us.click.yahoo.com/GHXcIA/n.WGAA/ySSFAA/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/