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

Re: [amibroker] CumAdvDel Scan Numbers Change



PureBytes Links

Trading Reference Links

Thanks Joe and Graham.  Your right. Different ticker start dates summing causes different ending numbers. Joe, I tried IWM and XOM and I get different numbers. Perhaps its because your start date when you run AA is short enough that the display gets same answer for both tickers?
 
Thanks again, I knew it was simple!
Dave
 
----- Original Message -----
From: Joe Landry
Sent: Sunday, November 27, 2005 5:56 PM
Subject: Re: [amibroker] CumAdvDel Scan Numbers Change

Dave, I just tried it out and the display did not change when I had different tickers in the ticker window.
 
I think that Cum function is dependent on the number of bars in the issue(ticker) displayed,
since it will go from the first bar and accumulate going forward in time to the last bar.
 
Could it be you had tickers with different number of bars? however when I tried it
didn't make any difference whether I had IWM or XOM as the display.   Could
not replicate what you're seeing.
 
JOE  
 
----- Original Message -----
Sent: Sunday, November 27, 2005 7:26 PM
Subject: [amibroker] CumAdvDel Scan Numbers Change

Hi Everyone
This is driving me nuts. Why does the cumulative number change for AdvDecl after I've run the scan, plotted it and change tickers. For example, I've run this in AA, Scan( I believe I swiped it from TJ somewhere). Its then plotted. But the numbers for AddDecLine change depending on which ticker is shown on adjacent window. Why should AddDecl change with different tickers if I don't rerun AA scan?
I most be dense. This has gotta be simple!
Thanks
Dave
 
AddToComposite(ROC(C,1)>0,"~UpBars","X");

AddToComposite(ROC(C,1)<0,"~DnBars","X");

AddToComposite(ROC(C,1)==0,"~NcBars","X");

Buy=Sell=Short=Cover=0;

Filter=1;

Difference = (Foreign("~UpBars","X") -Foreign("~DnBars","X")) / (Foreign("~NcBars","X") + 1);

DiffSqrt = IIf(Difference>0,sqrt(Difference), -sqrt(-Difference));

AddDecLine = Cum(DiffSqrt);

Plot(AddDecLine, "Cum AdvanceDecline",colorBlack,styleLine | styleThick);



Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com

For other support material please check also:
http://www.amibroker.com/support.html





YAHOO! GROUPS LINKS