Wednesday 4 January 2017

Bollinger Bänder Afl

25. August 2011 WICHTIG: Verwenden Sie nicht die Indikator in einem echten Handelssystem sieht es vor in der Zeit und wird Sie verlieren Geld. Es ist nur für die Forschung zu verstehen: potenzielle Gewinne zu zeigen und Pfeile an sehr profitable Positionen anzuzeigen, um die Formulierung besserer Handelsregeln zu erleichtern. Die hier dargestellte Anzeige ist dem ZigZag-Indikator sehr ähnlich, mit der Ausnahme, dass die Wendepunkte für diesen Indikator dort liegen, wo die gegenüberliegenden Bollinger-Bänder zuletzt vor dem nächsten Signal verletzt wurden. Die Formel wird als Handelssystem geschrieben. Es kann getestet werden, und die BB-Periode und die Breite können optimiert werden. Da dies nur eine experimentelle Formel ist, wurde kein Versuch unternommen, den Code zu optimieren. Abgelegt von Herman um 8:43 pm unter Indikatoren Kommentare deaktiviert auf Bollinger Band ZigZag Indicator Kommentare sind geschlossen. Letzte Artikel Aktuelle Kommentare Kategorien Copyright (C) 2006 AmiBroker. Diese Seite verwendet WordPress-Seiten, die in 0.535 Sekunden erstellt wurden. BOLLINGER BAND UND KREUZ ÜBER SYSTEM für Amibroker (AFL) SECTIONBEGIN (Bollinger Bands mit Crossover und gezwickt Barcode) P ParamField (Preisfeld, -1) Period Param (Short Periods, 20, (P, Periode, Breite) gtRef (BBandTop (P, Periode, Breite), - 1) MidCondMA (C, Periode) gtRef (P, Periode, Breite) MA (C, Zeitraum), - 1) BotCondBBandBot (P, Periode, Breite) gtRef (BBandBot (P, Periode, Breite), - 1) UpColorIIf (TopCond UND MidCond, colorTurquoise, colorPink) DownColorIIf (MidCond UND BotCond, colorTurquoise, (P, Periode, Breite), MA (C, Periode), MA (C, Periode), UpColor, styleCloudstyleNoLabelstyleNoTitle, Null, Null, Null, & ndash; 2) (P, Periode, Breite), BBandBot (P, Periode, Breite), DownColor, styleCloudstyleNoLabelstyleNoTitle, Null, Null, Null, -2) Plot (MA (C, Periode) BBandBot (P, Periode, Breite) ,, colorRed, styleThickstyleNoTitle, Null, Null, Null, -1) Plot (P, Periode, Breite) MA (C, Periode) ,, colorLime, styleThickstyleNoTitle, Null, Null, Null, -1) FilterTopCond UND MidCond UND BotCond AddColumn (V, Volumen, 1,0) SECTIONBEGIN (Preis) SetChartOptions (0, chartShowArrowschartShowDates) N (Titel strFormat (- (ROC (C, 1)))) Trendup IIf (MACD (12,26 ) Gt 0 UND MACD (12,26) lt 0 UND MACD (12,26) lt Signal (12,26,9), FarbeBlue, colorWhite) Trendfarbe IIf (MACD (12,26) RSI RSI (7) gt 70 RSI RSI (7) lt 30 SP Param (RSI-Zeitspanne, 7, 1, 100) r RSI (sp) RSIup r gt 70 RSIdown r lt 30 Form RSIup shapeNone RSIdown shapeNone PlotShapes (Form, IIf (RSIup, colorBrightGreen, Blau und Rot), 0, IIf (RSIup, Niedrig, Hoch)) if (ParamToggle (Tooltip zeigt, Alle Werte werden nur Preise)) ToolTipStrFormat ( Öffnen Sie: gnHigh: gnLow: gnSchließen: g (.1f) nVolume: NumToStr (V, 1), O, H, L, C, SelectedValue (ROC (C, 1))) SECTIONEND () SetChartBkColor (ParamColor (LLV (L, 20) 2 ATR (10)) Ausgangssignal C lt (HHV (H, 20) & ndash; & numsp; & numsp; & numsp; & numsp; & numsp; & numsp; & numsp; 2 ATR (10), 15) ProfitTaker EMA (H, 13) 2 ATR (10) Farbe IIf (EntrySignal, FarbeBlue, IIf (ExitSignal, FarbeOrange, FarbeGrey50)) TragStop HHV (10) und stoppt Plot (TrailStop, Trailing Stop, colorGold, styleThick Styleline) Plot (C, Preis, Farbe, stylebar) Plot Farbband band~~POS=HEADCOMP Plot (2,, Farbe, styleArea styleOwnScale styleNoLabel, -0,1, 50) SECTIONBEGIN (GFX EMA) Verfahren Plotlinewidth (p-Wert, ptitle, pcolor, pstyle, pmin, pmax, pxshift, plinewidth, pshowdate8203) lokale p-Wert, ptitle, pcolor, pstyle, pmin, pmax, pxshift, plinewidth, ppenstyle, pshowdate lokale Miny, Maxy lokale LVB, FVB lokalen pxwidth, pxheight lokalen TotalBars, axisarea lokale i, x, y, wenn (plinewidthgt0 ampamp Status (Aktion) 1 ampamp (pstyle amp styleLinestyleLine)) GfxSetOverlayMode (0) MinyStatus (axisminy) MaxyStatus (axismaxy) lvbStatus (lastvisiblebar) fvbStatus (firstvisiblebar) pxwidthStatus (pxwidth ) pxheightStatus (pxheight) TotalBarsLvb-FVB xaxisarea56 if (pshowdate) yaxisarea10 sonst yaxisarea0 i0 X5i (pxwidth-xaxisarea-10) (TotalBars1) y5yaxisarea (pvalueifvb-Miny) (pxheight-yaxisarea-10) (Maxy-Miny) GfxMoveTo (x, pxheight - y) für (i1 iltTotalBars UND ILT (BarCount-FVB) i) GfxSelectPen (pcolori FVB, plinewidth, 0) X5i (pxwidth-xaxisarea-10) (TotalBars1) y5yaxisarea (pvalueifvb-Miny) (pxheight-yaxisarea-10) (Maxy-Miny) GfxLineTo (x, pxheight - y) RequestTimedRefresh (2) SECTIONEND () SECTIONBEGIN (Kleine Trigger) p1 Param (TL 1 Perioden, 20, 5, 50, 1) p2 Param (TL 2 Perioden, , 25, 1) TL1 LinearReg (C, p1) TL2 EMA (TL1, p2) Col1 IIf (TL1 gt TL2, ParamColor (TL Up Farbe, colorBrightGreen), ParamColor (TL Dn Farbe, colorCustom12)) Plot (TL1, TriggerLine 1 , Col1, styleLinestyleThickstyleNoLabel) Plot (TL2, TriggerLine 2, Col1, styleLinestyleThickstyleNoLabel) SectionEnd () SECTIONBEGIN (Large Trigger) p3 Param (TL 3 Perioden, 80, 5, 100, 1) p4 Param (TL 4 Perioden, 20, 3, TL3, TL3, TL3, TL3, TL3, TL3, TL3, TL3, TL3, TLL, col1, styleLinestyleThickstyleNoLabel) Plot (TL4, TriggerLine 4, col1, styleLinestyleThickstyleNoLabel) SectionEnd () SECTIONBEGIN (Fibo Retrace und Extensions) FIBS ParamToggle (Plot Fibs, OFFON, 1) pctH Param (Pivot Hallo, 0.325,0.001,2.0,0.002) hilb Param (Lo LookBack, 1,1, BarCount-1,1) pctL Param (Pivot Lo, 0.325.0.001,2.0.0.002) Zurück Param (Verlängerung links Parameter Param (Textverschiebung, -33,5, -50,50,0,10) ParamStyle (Param (Textverschiebung, OffOn, 1) (Linienstil, Styleline, styleNoLabel) x BarIndex () pRp PeakBars (H, pctH, 1) 0 yRp0 SelectedValue (ValueWhen (PRP, H, hilb)) xRp0 SelectedValue (ValueWhen (PRP, x, hilb)) pSp TroughBars (L , PctL, 1) 0 ySp0 SelectedValue (WertWhen (pSp, L, LoLB)) xSp0 SelectedValue (WertWhen (pSp, x, LoLB)) Delta yRp0 - ySp0 Funktion Fib (ret) Retval (Delta ret) Fibval ​​IIf (ret lt 1,0 UND xSp0 lt xRp0, yRp0 - Retval, IIf (ret lt 1,0 und xSp0 gt xRp0, ySp0 Retval, IIf (ret gt 1,0 und xSp0 lt xRp0, yRp0 - Retval, IIf (ret gt 1,0 und xSp0 gt xRp0, ySp0 Retval, Null )))) Rückgabe FibVal x0 Min (xSp0, xRp0) - Back x1 (BarCount -1) r236 fib (0,236) r236I LastValue (r236,1) r382f (0,382) r382I LastValue (r382,1) r050 fib (0,50) r050I Lastvalue (r050,1) R618 fib (0.618) r618I Lastvalue (r618,1) r786 fib (0.786) r786I Lastvalue (r786,1) E127 fib (1,27) e127I Lastvalue (e127,1) E162 fib (1,62) e162I Lastvalue (e162,1) e200 fib (2,00) E200i Lastvalue (e200,1) E262 fib (2,62) e262I Lastvalue (e262,1) E424 fib (4.24) e424I Lastvalue (e424,1) p00 IIf (xSp0 gt xRp0, ySp0, yRp0) p00I Lastvalue (p00,1) P100 IIf (xSp0 lt xRp0, ySp0, yRp0) P100i Lastvalue (p100,1) color00 IIf (xSp0 gt xRp0, colorLime, Blau und Rot) color100 IIf (xSp0 lt xRp0, colorLime, Blau und Rot) numbars (String (String), 3), 3.2, 3.2), wenn (fibs1) Plot (LineArray (xRp0-Fwd, yRp0, x1, yRp0, Rückseite), PR, 32 ist , 8styleNoRescale, Null, Null, Fwd) Plot (Linearray (xSp0-Fwd, ySp0, x1, ySp0, Back), PS, 27,8styleNoRescale, Null, Null, Fwd) Plot (Linearray (x0-Fwd, R236, x1, Plot (LineArray (x0-Fwd, r382, x1, r382, Zurück) ,, 44, stylestyleNoRescale, Null, Null, Fwd) (Null, null, fwd) Zeichnen (LineArray (x0-Fwd, r618, x1, r618, Zurück) ,, 43, stylestyleNoRescale, Plot (Linearray (x0-Fwd, r786, x1, r786, Zurück) ,, 42, stylestyleNoRescale, Null, Null, Fwd) Plot (Linearray (x0-Fwd, E127, x1, E127, Rücken), e127,47, stylestyleNoRescale (Null, Null, Fwd) Plot (LineArray (x0-Fwd, e200, x1, e200, Plot (LineArray (x0-Fwd, e262, x1, e262, Rückseite), p262,47, stylestyleNoRescale, Null, Null, Fwd) (P1, p1, p2, p1, p1, p1, p1, p1, p2) (383, Fraktion), LastValue (BarIndex ()) - (numbars hts), r236I 0,05, 45) PlotText (38 WriteVal (r382, Bruch) Ht), () () () () () () () () () () () () () () () () () () () ) - (numbars hts), r618I 0,05, 43) PlotText (78 WriteVal (r786, Bruch), LastValue (BarIndex ()) - (numbars hts), r786I 0,05, 42) PlotText (100 WriteVal (p100, Bruch), LastValue (BarIndex ()) - (numbars hts), e127I 0,05, 47) PlotText (162 WriteVal (e162, Fraktion), LastValue (BarIndex () Fragment), LastValue (BarIndex ()) - (numbars hts), e200I 0,05, 47) PlotText (262 & ndash; (Vgl. Hrsg.), E62I 0,05, 47) PlotText (424 WriteVal (e424, Bruch), LastValue (BarIndex ()) - (numbars hts), e424I 0,05, 25 ) SECTIONEND () Code zur automatischen Identifizierung von Pivots - was wird unser Look-Back-Bereich für die hh und ll farbackParam (Wie weit zurück zu gehen, 100,50,5000,10) nBars Param (Anzahl der Bars, 12, 5, 40 ) Titel Name () (StrLeft (FullName (), 15)) O: Offen, H: Hoch, L: Niedrig, C: Schließen - Grundlegende Kerzendiagramm PlotOHLC (Offen, Hoch, Niedrig, NL L


No comments:

Post a Comment