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

Re: [amibroker] Indicators.dll ??



PureBytes Links

Trading Reference Links

Hello,

_I have uploaded a help file in 3rd party with a clean indicators.dll

_Stephane_
_




      CANDLESTICKS

 

SCblack()                     is Black Candlestick

SCwhite()                     is White Candlestick

SCMaruBlack               is MarubozuBlack

SCMaruWhite               is MarubozuWhite

SCdoji()                                    isDoji Candle

SCdojiLg()                    is DojiLongLegged Candle

scMp()                         is Median price ( H+L /2)

scTyp()                         is Typical price ( H+L+C/3)

scWC()                        is weigthed close ( 2*C +H+L /4)

SChammer()                 is Hammer

SCHammerWhite()        is HammerWhite

SChammerBlack()         is HammerBlack

SCInvHammer()             is Inverted Hammer

SCinvHammerBlack()     is inverted HammerBlack

SCinvHammerWhite()    is Inverted Hammer White

SCspinningTop()                       is SpinningTop

SCDojiStarBear()                      is DojiStarBear

SCDojiStarBull()                        is DojiStarBull

SCTassement()             is a candle with BodySmall based on abs(C-O) < 
Ref(MA(abs(C-O),3),-1)

SCOInside()                  is a candle where C and O are Inside H and 
L of previous day

SCp()                           is the ChaikinPrice 2*C-H-L

 

Examples:

 

PlotShapes(IIf(sCMaruWhite(), *shapeSmallCircle* + *shapePositionAbove* 
, *shapeNone*),*colorRed*); 

 

PlotShapes(IIf(sCDojiStarBear(), *shapeSmallCircle* , 
*shapeNone*),*colorBlue*);

 

OR

 

Plot(*Close*,"close",IIf(sCMaruWhite(),2,IIf(sCHammer(),3,IIf(sCInvHammer(),4,1))),64);

 

 

 


      INDICATORS.DLL

 

 

*_1. CMO ON ARRAY_*

*_ _*

The first  parameter is the array.

The second is the period of the CMO.

 

Plot(scCMO(RSI(9),9),"",3,1);

or

Plot(scCMO(*Close*,9),"",3,1); // it is the standard version

 

test=scCMO(*C*,9);

Plot(test,"",2,1|*styleOwnScale*);

Plot(*C*,"",1,64);

 

*_2. GAUSSIAN MOVING AVERAGE_*

*_ _*

The Gaussian average are computed according to Ehlers ( Easy Language Code)

One Pole:         f = ag + (1-a)f[1]

Two Poles:       f = a^2 g + 2(1-a)f[1] - (1-a)^2 f[2]

Three Poles:     f = a^3 g + 3(1-a)f[1] - 3(1-a)^2 f[2] + (1-a)^3 f[3]

Four Poles:      f = a^4 g + 4(1-a)f[1] - 6(1-a)^2 f[2] + 4(1-a)^3 f[3] 
- (1-a)^4 f[4]

 

The plugin takes two parameters

The first  parameter is the array.

The second is the period of the EMA

 

Plot(scGauss2ord(*C*,5),"",2,1);

Plot(scGauss3ord(*C*,5),"",3,1);

Plot(scGauss4ord(*C*,5),"",4,1);

*_ _*

*_3.DEMAND INDEX_*

 

*Demand index can be plotted:*

*Graph0*=scDI();

The default value is 19 (like in metastock) , but you can change it to 
any period of your choice

test=scDI(19);

Plot(test,"",2,1|*styleOwnScale*);

Plot(*C*,"",1,64);

 

 

 

*_4.ALPHA _**_BETA_*

*_ _*

*Beta is *scBETA(Index,*C*,periods)

Beta=(( Periods * Sum(ROC( *C*,1) * ROC(Index,1),Periods )) - (Sum(ROC

(*C*,1),Periods) * Sum(ROC( Index,1),Periods))) / ((Periods * 
Sum((ROC(Index,1)

^2 ),Periods)) - (Sum(ROC(Index,1 ),Periods)^2 ));

Plot(beta,"BETA",*colorWhite*,1);

*_ _*

Index= Foreign("999150","C");

Periods=Param("period",20,20,200,10);

Plot(scBETA(Index,*C*,periods),"",*colorBlue*,1);

Plot(scALPHA(Index,*C*,periods),"ALPHA",*colorRed*,1);*__*

 

 

 

*_5.PERFORMANCE_*

 

 

*MaxGraph* = 4;

LASTBARS=Param("period",20,20,*BarCount*-1,10);

start = IIf((Cum(1) > (LastValue(Cum(1)) - Lastbars)),1,0);

start=Hold(start==0,2) *AND* start;

 

val=ValueWhen( start,*C* );

Perf=100 * (*C*/Val - 1 );

// same as  (C-Val)/Val *100;

Plot(Perf,"",2,1);

 

Plot(scPerf(*C*,Lastbars),"",*colorBlue*,1);

 

 

 


    6.FORECASTING INDICATORS // not checked

 

 

*_6.1  RSI_*

* *

The first  parameter is the array.

The second is the period of the RSI

The third parameters is the forecasting level of the RSI**

 

Plot(scRSIFor(*C*,14,30),"",2,1);

Plot(*Close*,"",1,64);

 

This dll to gives you the value of the close for tomorrow in the purpose 
that

The rsi ( array, 14) reaches the level of 30

 

 

*_6.2  MOVING AVERAGE CROSSOVER_*

 

Plot(scEMAFor(12,26),"",2,1);

Plot(*Close*,"",1,64);

 

This dll to give you the value of the close for tomorrow in the purpose that

The Ema(C,12) must be == Ema (c,26) 

 

 

*_6.3 MACD_*

 

Plot(scMACDFor(12,26),"",2,1);

Plot(*Close*,"",1,64);

 

This dll to gives you the value of the close for tomorrow in the purpose 
that

The macd or the Ema(c,12)-Ema(c,26) must be == to the signal line ( by 
default the signal line is 9 bars EMA) 

 

 

*_7. EHLERS _*

*_ _*

 

*7.1 Hilbert Transform - InPhase & Quadrature*

 

Plot(sbHilbertT(scMp()),"Quadrature",1,1);

Plot(sbInPhase,"InPhase",4,1);

 

*7.2 Optimum Elliptic Filter*

 

       Plot(sbOEF(*Close*),"OEF",4,1);

       Plot(*C*,"Close",1,64);

 

*7.3 Signal to Noise Ratio*

 

                price = (*H*+*L*)/2;

       Plot(sbSNR(price),"SNR",4,1);

       Plot(6,"",1,1);

 

 

*7.4 MAMA & FAMA*

 

       price = (*H*+*L*)/2;

 

       Plot(sbMAMA(price,0.5,0.005),"MAMA",4,1);

       Plot(sbFAMA,"FAMA",6,1);

       Plot(*C*,"Close",1,64);

* *

*7.5 Centre of Gravity Oscillator*

 

price = (*H* + *L*) / 2;

Plot(sbCGO(price,10),"CGO",4,1);

Plot(Ref(sbCGO(price,10),-1),"CGO-1",6,1);

 

 

*7.6 Dominant Cycle*

 

price = (*H* + *L*) / 2;

Plot(sbDC(price),"DC",4,1);

 

*7.7 Sinewave Indicator*

 

                price = (*H* + *L*) / 2;

       Plot(sbSine(price),"Sine",4,1);

       Plot(sbLeadSine,"Lead Sine",1,1);

 

*7.8 Relative Vigour Index*

 

SetBarsRequired(10000,10000);

RVISig = (sbRVI(20) + 2 * Ref(sbRVI(20),-1) + 2 * Ref(sbRVI(20),-2) + 
Ref(sbRVI(20),-3))/6;

Plot(sbRVI(20),"RVI",4,1);

Plot(RVISig,"RVISig",1,1);

 

*7.9 Distant Coefficient Nonlinear Ehlers Filters*

 

periods = 15;

mprice = (*High* + *Low*)/2;

 

Plot(scNLEF(scMp(),periods),"",*colorGreen*,1);

Plot(*C*,"",*colorBlack*,64);

 

Triple Delay-line Canceller // NOT AVAILABLE

 

 

*_8. VARIABLE PERIOD INDICATORS_*

 

 

*8.1 CMF*

 

temp=MFI(14);

scCMF(pds);

 

*Graph0* = Sum(((( *C*-*L* )-( *H*-*C* )) / ( *H*-*L* ))**V*, 21 ) / 
Sum(*V*,21)*100;

*Graph1*= scCMF(21);

 

 

*8.2 EMA *

* *

temp=MFI(14);

Plot(scEMA(*C*,temp),"",3,1);

Plot(AMA(*C*,2/(temp+1)),"",2,1);

 

*8.3 LinRegSlope***

 

temp=MFI(14);

Plot(scLinRegSlope(*C*,temp),"",3,1);

* *

*8.4 MFI*

* *

temp=MFI(14);

Plot(scMFI(*C*,temp),"",3,1);

 

*8.5 WILDERS*

 

temp=MFI(14);

Plot(scWilders(*C*,temp),"",3,1);**

 

*8.6 STOCHASTIQUE*

 

temp=MFI(14);

Plot(scStoch(temp),"",3,1);

* *

*8.7 RSI*

* *

temp=MFI(14);

Plot(scRSI(*C*,temp),"",2,1);**

 

 

 

*_THREE LINE BREAK_*

*_ _*

*_1. SC VERSION_**__*

*_ _*

*Title*="Three Line Break";

 

//Plot(Close,"close",1,64);

scTLB(*C*,2);

Plot(newtop ,"",*colorBlue*,1);

Plot(newbot,"",*colorYellow*,1);

 

*C*=top;

*O*=Bot;

PlotOHLC(*O*,*O*,*C*,*C*,"",1,64);

 

*_2. ACE VERSION_**__*

*_ _*

*Title*="Three Line Break";

 

Plot(*Close*,"close",1,64);

 

Plot(aceTLB(3,4),"",*colorGreen*,512+8);*__*

elee67 wrote:

> Hello,
>
> Just wondering if there is any documentation on what is included in
> the indicators.dll that can be called?
>
> Thanks!
>
>
>
> Check AmiBroker web page at:
> http://www.amibroker.com/
>
> Check group FAQ at: 
> http://groups.yahoo.com/group/amibroker/files/groupfaq.html
>
>
> *Yahoo! Groups Sponsor*
> ADVERTISEMENT
> click here 
> <http://us.ard.yahoo.com/SIG=129hi8753/M=295196.4901138.6071305.3001176/D=groups/S=1705632198:HM/EXP=1095976189/A=2128215/R=0/SIG=10se96mf6/*http://companion.yahoo.com> 
>
>
>
> ------------------------------------------------------------------------
> *Yahoo! Groups Links*
>
>     * To visit your group on the web, go to:
>       http://groups.yahoo.com/group/amibroker/
>        
>     * To unsubscribe from this group, send an email to:
>       amibroker-unsubscribe@xxxxxxxxxxxxxxx
>       <mailto:amibroker-unsubscribe@xxxxxxxxxxxxxxx?subject=Unsubscribe>
>        
>     * Your use of Yahoo! Groups is subject to the Yahoo! Terms of
>       Service <http://docs.yahoo.com/info/terms/>.
>
>
>
>
> __________ NOD32 1.873 (20040920) Information __________
>
> This message was checked by NOD32 antivirus system.
> http://www.nod32.com




[Non-text portions of this message have been removed]



------------------------ Yahoo! Groups Sponsor --------------------~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/