| New signals service! | |
|
|||||||
| Register in Forex TSD! | |
|
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time). Click here to register and get more information |
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
||||
|
Quote:
I think you can use wellknown Daily Pivots instead Kase's support/resistant lines. Formulas of r/s are the same. Igor
__________________
Let's improve trade skills together http://finance.groups.yahoo.com/group/TrendLaboratory |
|
||||
|
Quote:
Here is the indicator for Metastock. I use it in stocks with daily charts. It's really very good, but not exist for metatrader. -Schaff cycle periods 10 -Short periods 10 -Long periods 21 { Schaff Trend Cycle Indicator v1.0 } { Automatic trigger levels } { Also see: "MACD oscillator - Schaff Trend Cycle" } { http://www.metastocktools.com } { With thanks to Tim Straiton, www.stoploss.ch } { variables input } buffer:=Input("Long/Short buffer zone %", 0,100,0)/100; pdsCy:=Input("Schaff cycle periods",2,252,10); pdsSh:=Input("Short periods",1,252,10); pdsLg:=Input("Long periods",2,2520,21); { Schaff Trend Cycle } MCD:=Wilders(MP(),pdsSh)-Wilders(MP(),pdsLg); ST:=(MCD-LLV(MCD,pdsCy)) /(HHV(MCD,pdsCy)-LLV(MCD,pdsCy))*100; STC:=Wilders(ST,pdsCy/2); { Schaff Trend Cycle } MCD:=Wilders(MP(),pdsSh)-Wilders(MP(),pdsLg); ST:=(MCD-LLV(MCD,pdsCy)) /(HHV(MCD,pdsCy)-LLV(MCD,pdsCy))*100; STC:=Wilders(ST,pdsCy/2); { automatic trigger levels } pk:=Ref(STC,-1)>STC AND Ref(STC,-1)>Ref(STC,-2); pkVal:=If(pk,Ref(STC,-1),0); pkAvg:=Cum(pkVal)/(Cum(pk)+.000001); pkAvg:=If(pkAvg=0,100,pkAvg); tr:=Ref(STC,-1)<STC AND Ref(STC,-1)<Ref(STC,-2); trVal:=If(tr,Ref(STC,-1),0); trAvg:=Cum(trVal)/(Cum(tr)+.000001); { STC crossover signals } In:=Cross(pkAvg,STC); Out:=Cross(STC,trAvg); InInit:=Cum(In)=1; Init:=Cum(In+Out>-1)=1; flag:=BarsSince(Init OR In) < BarsSince(Init OR Out)+InInit; signals:=(InInit AND Alert(InInit=0,2) OR flag AND Alert(flag=0,2)) -(flag=0 AND Alert(flag,2)); { trend support/resistance levels } STCI:=If(flag,ValueWhen(1,signals,L*(1-buffer)), ValueWhen(1,signals=-1 OR Init,H*(1+buffer))); { alternative STC crossover signals method} {bb:=BarsSince(Cross(STC,trAvg)); bs:=BarsSince(Cross(pkAvg,STC)); tb:=ValueWhen(1,Cross(STC,trAvg),H*(1+buffer)); ts:=ValueWhen(1,Cross(pkAvg,STC),L*(1-buffer)); STCI:=If(bb<bs,tb,ts);} { plot on price chart } STCI ----------------------------------------------------------- Coyan Last edited by coyan; 06-10-2006 at 07:52 PM. |
|
|||
|
Was anyone able to properly code the Kase Peak Oscillator for MT4 ? It exits for VT trader now as well.. built in.
__________________
Metatrader 4 - EA Live and Demo Hosting Solutions http://www.omegasupreme.com |
|
|||
|
Here is the tradestation version again..
Type : Function, Name : StdDevx inputs : Price(NumericSeries), Length(NumericSimple); vars : SumSqr(0), Avg(0), Counter(0); if Length <> 0 then begin Avg = Average(Price,Length); SumSqr = 0; for counter = 0 to Length - 1 begin SumSqr = SumSqr + (Price[counter]-Avg) * (Price[counter]-Avg); end; StdDevX = SquareRoot(SumSqr / (Length-1)); end else StdDevX = 0; Type : Indicator, Name : Kase Peak Oscillator inputs:LEN(30), Smooth(3), Strength(1); vars: RWH(0), RWL(0),PEAK(0), MEAN(0), STD(0); RWH = (H[0] - L[LEN]) / (AvgTrueRange(LEN) * SquareRoot(LEN)); RWL = (H[LEN] - L[0]) / (AvgTrueRange(LEN) * SquareRoot(LEN)); PEAK = WAverage((RWH - RWL),3); MEAN = average(PEAK,LEN); STD = StdDevx(PEAK,LEN); if (MEAN + (1.33 * STD)) > 2.08 then value1 = (MEAN + (1.33 * STD)) else value1 = 2.08; if (MEAN - (1.33 * STD)) < -1.92 then value2 = (MEAN - (1.33 * STD)) else value2 = -1.92; plot1(PEAK,"PeakOsc"); if PEAK[1] >= 0 and PEAK > 0 then plot2(value1,"+/-97.5%"); if PEAK[1] <= 0 and PEAK < 0 then plot2(value2,"+/-97.5%");
__________________
Metatrader 4 - EA Live and Demo Hosting Solutions http://www.omegasupreme.com |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Cynthia Kase - Kase Peak Oscillator | secxces | Indicators - Metatrader 4 | 27 | 07-15-2007 07:25 PM |
| Kase Peak Mq4 | Kalenzo | Commercial Trading Systems and indicators | 0 | 03-16-2006 06:18 PM |