Tuesday 14 March 2017

Macd Mit Bollinger Banden Für Amibroker (Afl)

BOLLINGER BAND UND KREUZ ÜBER SYSTEM für Amibroker (AFL) SECTIONBEGIN (Bollinger Bands mit Crossover und Tweaked Barcode) P ParamField (Preisfeld, -1) Periodenparam (Kurze Perioden, 20, 15, 30, 1) Breite Param (Kurz (P, Periode, Breite), - 1) MidCondMA (C, Periode) gtRef (MA (C, Periode), - 1) TopCondBBandTop BotCondBBandBot (P, Periode, Breite) gtRef (BBandBot (P, Periode, Breite), - 1) UpColorIIf (TopCond UND MidCond, colorTurquoise, colorPink) DownColorIIf (MidCond UND BotCond, colorTurquoise, colorPink) PlotOHLC (BBandTop (P, Periode, (P, Periode, Breite), MA (C, Periode), MA (C, Periode), MA (C, Periode), ObenColor, StilCloudstyleNoLabelstyleNoTitle, Null, Null, (C, Periode), BBandBot (P, Periode, Breite), BBandBot (P, Periode, Breite) ,, DownColor, styleCloudstyleNoLabelstyleNoTitle, Null, Null, (MA (C, Periode) ,, ColorLime, NULL, Null, Null, -1) Zeichnung (BBandTop (P, Periode, Breite) ,, FarbeRed, styleThickstyleNoTitle, styleThickstyleNoTitle, Null, Null, Null, -1) FilterTopCond UND MidCond UND BotCond AddColumn (V, Volumen, 1,0) SECTIONBEGIN (Preis) SetChartOptions (0, chartShowArrowschartShowDates) N (Titel strFormat (- Offene g, Hallo 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) Trendfarbe IIf (MACD (12,26) lt 0 UND MACD (12,26) lt Signal (12,26,9) (RSI-Periode, 7, 1, 100) r RSI (sp) RSIup rgt 70 RSIdown rtt 30 Form RSIup FormNone 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 (Open: gnHigh: gnLow: gnClose: g ( (ROC (C, 1))) SECTIONEND () SetChartBkColor (ParamColor (Tafelfarbe, FarbeBlack)) PlotOHLC (Offen, Hoch, Niedrig) NVolume: NumToStr (V, 1), O, H, L, C, SelectedValue (LLV (L, 20) 2 ATR (10)) Ausgangssignal C lt (HHV (H, 20) - 2 ATR (10)) Farbe IIf (EntrySignal (AT) (10), 2) ATR (10) Plot Preisliste und Stopps 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 lokale pxwidth, pxheight lokale TotalBars, axisarea lokale i, x, y if (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 wenn (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) 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 Farbe, colorBrightGreen), ParamColor (TL Dn Farbe, colorCustom12)) Plot (TL1, TriggerLine 1, Col1, styleLinestyleThickstyleNoLabel) Plot (TL2, TriggerLine 2, Col1, styleLinestyleThickstyleNoLabel) SEKTIONEND () SECTIONBEGIN (Große Trigger) p3 Param (TL 3 Perioden, 80, 5, 100, 1) p4 Param (TL 4 Perioden, 20, 3, 100, 1) TL3 LinearReg (C, p3 TL4) EMA (TL3, p4) Col1 IIf (TL3 gt TL4, ParamColor (TLL Up Farbe, Farbeblau), ParamColor (TLL Dn Farbe, Blau und Rot)) Plot (TL3, TriggerLine 3, 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 (Hallo 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ängerung 2,1,1,500,1) Fwd Param (Plot Forward, 0, 0, 500, 1) text ParamToggle (Zeichnungstext, OffOn, 1) hts Param (Textverschiebung, -33,5, -50,50,0.10) style ParamStyle (Linienart, 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 (ValueWhen (psp, L, LoLB)) xSp0 SelectedValue (ValueWhen (psp, x, LoLB)) Delta yRp0 - ySp0 Funktion fib (ret) Retval (Delta ret) Fibval ​​IIf (ret 1,0 und xSp0 lt xRp0, yRp0 lt - 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)))) return FibVal x0 Min (xSp0 (R225,1) r382 fib (0,382) r382 I LastValue (r382,1) r050 fib (0,50) r050I LastValue (r050,1) r618 fib (r236,1) r618 fib (0,382) 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 Lastvalue (Cum (Stand (barvisible))) Fragment IIf (StrRight (Name (), 3), 3.2, 3.2) Wenn (fibs1) Plot (LineArray (xRp0-Fwd, yRp0, x1, yRp0, Rückseite), 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, Zurück) ,, 45, stylestyleNoRescale, NULL, NULL, FWD) Zeichnung (LineArray (x0-Fwd, r050, x1, r050, Rückseite), 44, stylestyleNoRescale, (LineArray (x0-Fwd, r618, x1, r618, Zurück), 43, stylestyleNoRescale, Null, Null, Fwd) (Null, Null, Fwd) Zeichnung (LineArray (x1, r786, Rückseite) ,, 42, stylestyleNoRescale, Null, Null, Fwd) (X0-Fwd, e162, x1, e162, Rückseite), e162,47, stylestyleNoRescale, Null, Null, Fwd) Zeichnen (LineArray (x0-Fwd, e200, x1, e200, Zurück), p200,47, stylestyleNoRescale, Null (Null, null, Fwd) Plot (LineArray (x0-Fwd, e424, x1, e424, Rückseite), p262,47, , P00I 0.05, color00) PlotText (23 WriteVal (r236, p00I 0.05, color00) PlotText (23 WriteVal (r236, ), LastValue (BarIndex ()) - (numbarshts), r236I 0,05, 45) PlotText (38 WriteVal (r382, Bruch), LastValue (BarIndex () R050I 0,05, 41) PlotText (62 WriteVal (r618, Bruch), LastValue (BarIndex ()) - (numbarshts), r618I 0,05, 43) PlotText (78 WriteVal (r786, Fraktion), Lastvalue (BarIndex ()) - (numbarshts), r786I 0,05, 42) PlotText (100 WriteVal (p100, Fraktion), Lastvalue (BarIndex ()) - (numbarshts), P100i 0,05, color100) PlotText (127), LastValue (BarIndex ()) - (numbarshts), e127I 0,05, 47) PlotText (162 WriteVal (e162, Bruch), LastValue (BarIndex ()) - (numbarshts), e162I 0,05, 47 ) PlotText (200 WriteVal (e200, Fraktion), Lastvalue (BarIndex ()) - (numbarshts), E200i 0,05, 47) PlotText (262 WriteVal (E262, Fraktion), Lastvalue (BarIndex ()) - (numbarshts), e262I 0,05 , 47) PlotText (424 WriteVal (e424, Bruch), LastValue (BarIndex ()) - (numbarshts), e424I 0,05, 25) SECTIONEND () Code zur automatischen Identifizierung von Pivots - was wird unser Lookback-Bereich für die hh und ll sein NBars Param (Anzahl der Balken, 12, 5, 40) Titel Name () (StrLeft (FullName (), 15)) O: Offen, H: Hoch , L: Niedrig, C: Close - Plot Grundkerzendiagramm PlotOHLC (Open, High, Low, Close, n OO nH H nL LAFL für Amibroker SECTIONBEGIN (BACKGROUD LTRS) SetChartOptions (0, chartShowArrowschartShowDates) GfxSetOverlayMode (1) GfxSetTextAlign (6 ) zentrierte Ausrichtung GfxSetTextColor (ParamColor (Textfarbe, ColorHSB (42, 42, 42))) GfxSetBkMode (0) transparent GfxSelectFont (Tahoma, Status (pxheight) 12) GfxTextOut (PRASAD ANALYTIK 169, Status (pxwidth) 2, Status (pxheight ) 14) GfxSelectFont (Tahoma, Status (pxheight) 9) GfxTextOut (Name (), Status (pxwidth) 2, Status (pxheight) 4.1) GfxSelectFont (Arial Narrow, Status (pxheight) 28) GfxTextOut (prasad9raogmail, Status (pxwidth) 2, Status (pxheight) 1.5) GfxSelectFont (arial schmal, Status (pxheight) 27) GfxTextOut (Gewidmet meinem VATER. Balkrishna RAO, Status (pxwidth) 2, Status (pxheight) 1.15) SectionEnd () k (GetPerformanceCounter () 100) 256 printf (GetPerformance Zähler g, k) GfxSelectFont (Arial Narrow, 10.700) GfxSetBkMode (1) GfxSetTextColor (Coloryellow) GfxTextOut (Dedicated to the loving memory of MEINER VATER, 100k, 26) RequestTimedRefresh (1) SECTIONEND () Perioden Param (Kurze Periode, 12, 1, 500) PeriodL Param (Langzeitperiode, 26, 2, 501) PeriodSig Param (Glättungszeitraum) (V, PeriodL) EMV (VC, Perioden) EMV (V, Perioden) VMACD ShortMA - LongMA SignalLine EMA (VMACD, PeriodL) HIST VMACD-SignalLine Uncomment zwei Linien unten zu sehen, auch MACD und Signalleitung Plot (VMACD, Vol gewichtete MACD, colorDarkRed) Plot (Signalleitung, Vol gewichtete Signal, Farbeweiß) Plot (VMACD-Signalleitung, VMACD Histogramm, colorGold, styleHistogram) RATEADOFMACDCHANGE (Hist - Ref ( HIST, -1)) GfxSetTextAlign (TAleft 0) GfxSelectFont (Tahoma, 11, 700) GfxSetTextColor (ColorRGB (209191255)) GfxTextOut (PRASAD ANALYTIK - VGMACD, 07, 0) GfxSetTextAlign (TALEFT 0) GfxSelectFont (Tahoma, 11, 700) GfxSetTextColor (ColorRGB (255,180,61)) GfxTextOut (Name () Date (), 07,30) GfxSetTextColor (ColorRGB (109101255)) GfxTextOut (VWMACDPeriodS PeriodL PeriodSig, 07, 14) GfxSetTextColor (ColorRGB (251194255)) GfxTextOut (Signal NumToStr (Signalleitung, 1.2), 255, 0) GfxSetTextColor (ColorRGB (251194255)) GfxTextOut (VMACD NumToStr (VMACD, 1.2), 375, 0) GfxSetTextColor (ColorRGB (251194255)) GfxTextOut (Hist NumToStr (VMACD-Signalleitung, 1.2), 500, 0) GfxSetTextColor (ColorRGB (251,194,255)) GfxTextOut (RATE VON CHANGE NumToStr (RATEADOFMACDCHANGE, 1.2), 650, 0) Related Posts. Post. Amibroker AFL hallo sir Ich bin nicht in der Lage, Test zurück. In amibroker heißt es Fehler 701. Fehlende buysell Variablenzuweisungen. Die Formel, die Sie versuchen, Backtest enthält keine richtigen Buy and Sell Regeln. Kauf - und Verkaufsregeln sollten als Aufträge wie unten beschrieben geschrieben werden: Kaufen Cross (Close, MA (Close, 50)) Cross (MA (Close, 50), Close))


No comments:

Post a Comment