PureBytes Links
Trading Reference Links
|
Hello Tom,
you could also use it like this :
Tradesharks Total Market Scan :
This exploration scans your entire database for :
Price and volume change all items
Various Indicator signals ( long trades only )for all items ( 1 =
signal, 0= no signal = )
i.e. Stoch 8,3, MACD, ADX, DMI crossovers, EMA50 crossup, Varex buy,
etc.
Various shortterm reversal patterns ( longtrades )
Identifies whether a stock is in an Mediumterm uptrend ( 1 )
Displays RSI(14) and RS vs Index
Displays Support ( 1,2 ), Resistance ( 1,2 ) and the pivotpoint for
the next trading day,
Returns Sector and Industry ID for each stock ( Tomasz, therefore I'd
like to have the names rather than numbers ;-)
Sort by signals or other column-results by clicking the columnheaders
( why is there a limitation of 30 columns , Tomasz ? ;-( )
On a PII 400Mhz machine, the scan needs 1.10 minutes for 1500
stocks / indices an a database.
// TradeShark's total Market scan.
buyrange = 25;
sellrange = 75;
stochKworkaround = Stoch(8);
stochDworkaround = EMA( Stoch(8), 3);
ARSI = RSI(9);
BRSI = RSI(14);
AROC = ROC(10);
AULT = Ultimate();
AMAC = Signal();
stochKw = Stoch(14);
stochDw = EMA( Stoch(14),3);
p = (H+L+C)/3;
r1 = (2*p)-L;
s1 = (2*p)-H;
r2 = p +(r1 - s1);
s2 = p -(r1 - s1);
NumColumns = 29;
Filter = Close > 0;
Column0 = FullName();
Column0Name = "Name";
Column0Format = 1;
Column1= ADX(30) > 25 and PDI(30) > MDI(30);
Column1Name = "Uptrd";
Column1Format = 1;
Column2 = Close;
Column2Name = "Close";
Column2Format = 1.2;
Column3 = Close - Ref(Close,-1);
Column3Name = "PtChange";
Column3Format = 1.2;
Column4 = ROC(Close,1);
Column4Name = "%Change";
Column4Format = 1.2;
Column5 = V;
Column5Name = "Volume";
Column5Format = 1;
Column6 = ROC(V,1);
Column6Name = "%VolChange";
Column6Format = 1.2;
Column7 = RSI(14);
Column7Name = "RSI";
Column7Format = 1;
Column8 = RelStrength(",");
Column8Name = "RS";
Column8Format = 1;
Column9 = Stoch(8) < buyrange AND Cross(stochKworkaround,
stochDworkaround);
Column9Name = "STO X UP";
Column9Format = 1;
Column10 = Cross( MACD(12,26), Signal(12,26,9));
Column10Name = "MACD X up";
Column10Format = 1;
Column11 = Ref(Close,-1) < EMA(Close,50) and Close > EMA(Close,50 );
Column11Name = " Xup 50EMA";
Column11Format = 1;
Column12 = ADX(14);
Column12Name = "ADX";
Column12Format = 1;
Column13 = PDI(14)- MDI(14);
Column13Name ="DMI";
Column13Format = 1;
Column14 = Cross (PDI(14),MDI(14));
Column14Name = "DMI Bull X";
Column14Format = 1;
Column15 = Ref(Close,-3) == HHV(Close,20) and Close > Ref(Close,-1)
and Low > Ref(Low,-1);
Column15Name = "3DREV";
Column15Format = 1;
Column16 = GapUp();
Column16Name = "GapUp";
Column16Format = 1;
Column17= Close == HHV(Close,60);
Column17Name = "60dayHi";
Column17Format = 1;
Column18= Ref(PDI(14),-2)== LLV(PDI(14),10)and PDI(14) > Ref(PDI(14),-
2);
Column18Name = "PDIREV";
Column18Format = 1;
Column19 = ROC(Close,1) > 3 and ROC(V,1) > 100;
Column19Name = "PVBT";
Column19Format = 1;
Column20 = Ref(Close,-1) == LLV(Close,35) and Close > Ref(High,-2)
and Low > Ref(Low,-1);
Column20Name = "STREV";
Column20Format= 1;
Column21 = ARSI < 28 and BRSI < 33 and AROC < 0.4 and AULT < 40 and
AMAC < 0 and stochKw < 40 and ARSI > Ref(arsi,-1) and stochKw > Ref
(stochKw, -1);
Column21Name = "VAREX Buy";
Column21Format = 1;
Column22= (H+L+C)/3;
Column22Name = "PivotP";
Column22Format = 1.2;
Column23 = (2*p)-L;
Column23Name = "Res1";
Column23Format = 1.2;
Column24 =(2*p)-H;
Column24Name = "Sup1";
Column24Format = 1.2;
Column25 = p +(r1 - s1);
Column25Name = "Res2";
Column25Format = 1.2;
Column26 =p -(r1 - s1);
Column26Name = "Sup2";
Column26Format = 1.2;
Column27 = SectorID();
Column27Name = "Sector";
Column27Format =1;
Column28 = IndustryID();
Column28Name= "Industry";
Column28Format = 1;
regards
Stefan
--- In amibroker@xxxx, "Tomasz Janeczko" <amibroker@xxxx> wrote:
> Dear Tom,
>
> IndustryID does not require any arguments. It just returns the ID
of an industry to
> which given stock belongs.
> So you should write:
>
> buy = IndustryID() == 2;
>
> or for the range:
>
> buy = IndustryID() >= 2 AND IndustryID() <= 10;
>
>
> Best regards,
> Tomasz Janeczko
> ===============
> AmiBroker - the comprehensive share manager.
> http://www.amibroker.com
>
> ----- Original Message -----
> From: Tom Supera
> To: amibroker@xxxx
> Sent: Friday, November 02, 2001 2:41 PM
> Subject: [amibroker] use of industryID
>
>
> Hi,
> How can i use the new functions.
>
> Buy = IndustryID(2);
>
> I become always the error: too many arguments.
>
> Tom Supera
>
> Yahoo! Groups Sponsor
> ADVERTISEMENT
>
>
>
>
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service.
|