PureBytes Links
Trading Reference Links
|
Here's that formula. It's actually separate formulas -
Paste this formula into an afl:
a = RSI(14)<40;
a1 = RSI(14)>40.1 AND RSI(14) < 60;
a2 = RSI(14) > 60.1;
AddToComposite (a, "~UpBars","X");
AddToComposite (a1, "~DnBars","X");
AddToComposite (a2, "~NcBars", "X");
Buy = 0;
Paste this formula into an indicator:
b = Foreign("~UpBars", "C");
b1 = Foreign("~DnBars","C");
b2 = Foreign("~NcBars", "C");
Plot (EMA(b,10), "QP RSI: under 40",4,4);
Plot (EMA(b1,10),"QP RSI: 40-60",6,4);
Plot (EMA(b2,10),"RSI over 60",5,4);
Plot (125,"",colorWhite,styleDashed);
Plot (25,"",colorWhite,styleDashed);
Once you've created both run a scan for the first formula against the watchlist you want (I use the S&P 500). Then the results will show up in the indicator
Jason
Pankaj Chawla <pankaj013@xxxxxxxxx> wrote:
Rakesh, Thanks for your reply. I tried looking for the IntroToATC pdf but couldnt find it.
Jason, Thanks to you too for the reply. It would be great if you could share the afl.
Thanks
Pankaj
On 10/25/05, larypowell <larypowell@xxxxxxxxxxxxx> wrote:
Jason, Would you please post the afl? Thank, Larry
Exactly - you need to use addtocomposite. I have a similar formula that you mentioned and I apply it to the S&P 500 to get a sense of market strength. I would post the formula now but it is on my machine at home. I can post it in about 12 hours from now if you still need it.
Check out add to composite. There is a manual on atc use by Herman van den Bergen called IntrotoATC .It is a pdf doc and should be in group archives. If you cant find it mail me and I will send it across to you.
R
On 10/25/05, Pankaj Chawla <pankaj013@xxxxxxxxx > wrote:
Given below is what am lookin for
I want to plot the NUMBER of issues(scrips) with rsi below 40 and also plot the NUMBER of issues with rsi above 40.
say if out of 100 issues.. there are 30 scrips matching rsi (10)<40, and 70 matching rsi(10) > 40.
how would i get those figures n how do i plot them as a indicator. I want to plot two lines one for each
match on a daily basis.
Hope am clear on what i want.
Thanks
Pankaj
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
SPONSORED LINKS
YAHOO! GROUPS LINKS
Yahoo! FareChase - Search multiple travel sites in one click.
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
|