Monday 12 June 2017

Bollinger Bands Afl Amibroker


BOLLINGER BAND UND CROSS OVER SYSTEM für Amibroker (AFL) SECTIONBEGIN (Bollinger Bands mit Kreuzung und Tweaked Barcode) P ParamField (Preisfeld, -1) Periode Param (Kurzperioden, 20, 15, 30, 1) Breite Param (Kurz Breite, 2, 1, 10, 1) TopCondBBandTop (P, Periode, Breite) gtRef (BB, (1) MidCondMA (C, Periode) gtRef (MA (C, Periode), - 1) BotCondBBandBot (P, Period, Width) gtRef (BB, BIUM (P, Periode, Breite), - 1) UpColorIIf (TopCond AND MidCond, colorTurquoise, colorPink) DownColorIIf (MidCond AND BotCond, colorTurquoise, colorPink) PlotOHLC (BB, Widder), BBandTop (P, Periode, Breite), MA (C, Periode), MA (C, Periode),, UpColor, styleCloudstyleNoLabelstyleNoTitle, Null, Null, Null, -2) PlotOHLC (MA (C, Periode), MA (C, Periode), BBandBot (P, Periode, Breite), BBandBot (P, Periode, Breite),, DownColor, styleCloudstyleNoLabelstyleNoTitle, Null, Null, Null, -2) Plot (BBandBot (P, Periode, Breite) ,, (CH, Periode, Breite) ,, colorRed, styleThickstyleNoTitle, Null, Null, Null, -1) Plot (MA (C, Periode) ,, colorLime, null, Null, Null, -1) Plot (BB, (V, Volume, 1.0) SECTIONBEGIN (Preis) SetChartOptions (0, chartShowArrowschartShowDates) N (Titel StrFormat (- Öffnen Sie g, Hi g, Lo g, Schließen (ROC (C, 1)))) Trendup IIf (MACD (12,26) gt 0 UND MACD (12,26) Gt Signal (12,26,9), colorBlue, colorWhite) trendcolor IIf (MACD (12,26) lt 0 UND MACD (12,26) lt Signal (12,26,9), colorRed, trendup) Plot (C, Schließen, trendcolor, styleBar styleThick) RSIup RSI (7) gt 70 RSIdown RSI (7) lt 30 sp Param (RSI Periode, 7, 1, 100) r RSI (sp) RSIup r gt 70 RSIdown r lt 30 Form RSIup shapeNone RSIdown (ParIToggle (Tooltip zeigt, Alle Werte nur Preise)) ToolTipStrFormat (Open: GnHigh: GnLow: GnSchließen: g ( (ROC (C, 1))) SECTIONEND () SetChartBkColor (ParamColor (Panelfarbe, colorBlack)) PlotOHLC (offen, hoch, niedrig (LLV (L, 20) 2 ATR (10)) ExitSignal C lt (HHV (H, 20) - 2 ATR (10)) Farbe IIf (EntrySignal (C-2 ATR (10), 15) ProfitTaker EMA (H, 13) 2 ATR (10) Plot-Preis-Chart und Stopps Plot (TrailStop, Trailing Stop, ColorGold).Die TrailStop HHV (C - 2 ATR (10), 15) , StyleThick StyleLine) Plot (C, Preis, Farbe, StyleBar) Handfarbband Plot (2,, Farbe, styleArea styleOwnScale styleNoLabel, -0.1, 50) SECTIONBEGIN (GFX EMA) Verfahren Plotlinewidth (pvalue, ptitle, pcolor, pstyle, pmin , Pax, pdf, pdf, peshow, pf. Y, wenn (plinewidthgt0 ampamp) Status (action) 1 ampamp (pstyle amp styleLinestyleLine)) GfxSetOverlayMode (0) MinyStatus (axisminy) MaxyStatus (axismaxy) lvbStatus (lastvisiblebar) fvbStatus (firstvisiblebar) pxwidthStatus (pxwidth) pxheightStatus (pxheight) TotalBarsLvb-fvb xaxisarea56 if (Pyueim-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, 5, 3, 25, 1) TL1 LinearReg (C, P1) TL2 EMA (TL1, p2) Col1 IIf (TL1 gt TL2, ParamColor (TL Up Color, 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, 100, 1) TL3 LinearReg (C, p3 (TL3, Trennlinie 3, Col1, StyleLinestyleThickstyleNoLabel) Plot (TL4, TriggerLine 4), TL3, TL4, , Col1, styleLinestyleThickstyleNoLabel) SECTIONEND () SECTIONBEGIN (Fibo Retrace und Erweiterungen) Fibs ParamToggle (Plot Fibs, OffOn, 1) pctH Param (Pivot Hi, 0.325.0.001,2.0,0.002) HiLB Param (Hi LookBack, 1,1, BarCount -1,1) pctL Param (Pivot Lo, 0.325.0.001,2.0,0.002) LoLB Param (Lo LookBack, 1,1, BarCount-1,1) Zurück Param (Verlängert links 2,1,1,500,1) Fwd Param (Plot Forward, 0, 0, 500, 1) Text ParamToggle (Plot Text, OffOn, 1) hts Param (Text Shift, -33,5, -50,50,0,10) Stil ParamStyle (Line Style, StyleLine, StyleNoLabel) x BarIndex (PRp, h, HiLB)) xRp0 SelectedValue (WertWhen (pRp, x, HiLB)) pSp TroughBars (L, pctL, 1) 0 ySp0 SelectedValue (WertWenn (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)))) FibVal x0 Min (xSp0 , XRp0) - Back x1 (BarCount -1) r236 fib (0.236) r236I LastValue (r236,1) r382 fib (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, ySp0, yRp0) p100I LastValue (p100,1) color00 IIf (xSp0 gt xRp0, colorLime, colorRed) color100 IIf (xSp0 lt xRp0, colorLime, colorRed) numbars LastValue (Cum (Status (barvisible))) Fraktion IIf (StrRight (Name (), 3), 3.2, 3.2) if (fibs1) Plot (LineArray (xRp0-Fwd, yRp0, x1, yRp0, Back), PR, 32,8styleNoRescale, Null, Null, Fwd) (LineArray (xSp0-Fwd, ySp0, x1, ySp0, Back), PS, 27,8styleNoRescale, Null, Null, Fwd) Plot (LineArray (x0-Fwd, r236, x1, r236, Rückseite) ,, 45, stylestyleNoRescale, Null, Null, Fwd) Plot (LineArray (x0-Fwd, r382, x1, r382, Back) ,, 44, stylestyleNoRescale, Null, Null, Fwd) Plot (LineArray (x0-Fwd, r050, x1, r050, (X0-Fwd, r618, x1, r618, Rückseite) ,, 43, stylestyleNoRescale, Null, Null, Fwd) Plot (LineArray (x0-Fwd, r786, (X0-fwd, e127, x1, e127, Rückseite), e127,47, styleestyleNoRescale, Null, Null, Fwd) Plot (LineArray (X0-Fwd, e162, x1, e162, Back), e162,47, stylestyleNoRescale, Null, Null, Fwd) Plot (LineArray (x0-Fwd, e200, x1, e200, Back), p200,47, stylestyleNoRescale, Null (X0-Fwd, e262, x1, e262, Back), p262,47, stylestyleNoRescale, Null, Null, Fwd) Plot (LineArray (x0-Fwd, e262, x1, e262, (PL2), (n), (n), (n), (n), (n), (n) Fraktion), LastValue (BarIndex ()) - (numbarshts), r236I 0,05, 45) PlotText (38 WriteVal (r382, Fraktion), LastValue (BarIndex ()) - (numbarshts), r382I 0,05, 44) PlotText (50 WriteVal ( R050, Fraktion), LastValue (BarIndex ()) - (numbarshts), r618I 0,05, 43) PlotText (78 (Vgl. 967, Fraktion), LastValue (BarIndex ()) - (numbarshts), r1006I 0,05, 42) PlotText (100 WriteVal (p100, fraktion), LastValue (BarIndex ()) - (numbarshts), p100I 0,05, color100) PlotText (1122, Fraktion), LastValue (BarIndex ()) - (numbarshts), e122I 0,05, 47) PlotText (162 WriteVal (e162, Fraktion), LastValue (BarIndex () ) PlotText (262 WriteVal (e262, Fraktion), LastValue (BarIndex ()) - (numbarshts), e262I 0,05 , 47) PlotText (424 WriteVal (e424, Fraktion), LastValue (BarIndex ()) - (numbarshts), e424I 0.05, 25) SECTIONEND () Code, um Pivots automatisch zu identifizieren - was ist unser Rückblickbereich für die hh und ll FarbackParam (Wie weit zurück zu gehen, 100,50,5000,10) nBars Param (Anzahl der Takte, 12, 5, 40) Titel Name () (StrLeft (FullName (), 15)) O: Open, H: High , L: Niedrig, C: Schließen - Grundlegende Kerzenkarte PlotOHLC (Offen, Hoch, Niedrig, Schließen, N OO nH H nL LAugust 25, 2011 WICHTIG: Verwenden Sie den Indikator nicht in einem echten Handelssystem, den es zeitlich voraussieht Und wird dich verlieren Geld. Es ist nur für die Forschung gedacht: potenzielle Gewinne zu zeigen und Pfeile in sehr profitable Positionen zu zeigen, um die Formulierung besserer Handelsregeln zu erleichtern. Der hier vorgestellte Indikator ist dem ZigZag-Indikator sehr ähnlich, außer dass die Wendepunkte für diesen Indikator sind, wo die entgegengesetzten Bollinger Bands zuletzt vor dem nächsten Signal verletzt wurden. Die Formel ist als Handelssystem geschrieben. Es kann zurück 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 Uhr unter Indikatoren Comments Off auf Bollinger Band ZigZag Indicator Kommentare sind geschlossen. Aktuelle Beiträge Aktuelle Kommentare Kategorien Copyright (C) 2006 AmiBroker. Diese Seite verwendet WordPress Seite generiert in 0.535 Sekunden. . Amibroker Trading Systems - Codierung eines Bollinger Band Breakout Systems: 29. 2013 Sehen Sie die volle Lektion und mehr Amibroker Unterricht hier: asxmarketwatch201206. Diese Amibroker-Lektion bei der Kodierung eines Trading-Systems basiert auf einem Bollinger Band Breakout Trading System, das hier von dem berühmten australischen Trader Nick Radge in seinem Buch Holy Grails berühmt wurde. Nick ist ein absolut stand-up Kerl wie jeder australische Trader oder Investor wird Ihnen sagen, und ich empfehle sein Buch und seinen Service bei The Chartist. Abgesehen davon ist das Bollinger-Band-Breakout-System in der Amibroker Formula Language (AFL) ziemlich einfach zu kodieren, auch für einen äußerst Anfänger-Teilzeit-Coder wie mich. Natürlich, deshalb ist es nur ein sehr einfacher Code mit keiner der Glocken oder Pfeifen, die andere erfahrene Händler hinzufügen könnten. Es liefert einige solide Ergebnisse in Back-Testing.

No comments:

Post a Comment