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-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 (Open: gnHigh: gnLow: GnClose: g (.1f) nVolume: NumToStr (V, 1), O, H, L, C, SelectedValue (ROC (C, 1))) SECTIONEND () SetChartBkColor (ParamColor) (HHV (H, 20) - 2 ATR (10)) Ausgabesignal C lt (HHV (H, 20) - 2 ATR (10)) Farbe IIf (EntrySignal, colorBlue, IIf (ExitSignal, colorOrange, colorGrey50)) TrailStop HHV (C - 2 ATR (10), 15) ProfitTaker EMA (H, 13) 2 ATR (10) / 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 lokale 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 ) P2 Param (TL 1 Perioden, 20, 5, 50, 1) p2 Param (TL 2 - Perioden, 5.) Sekundäraufpr (TL1, p2) Col1 IIf (TL1 gt TL2, ParamColor (TL Up Color, colorBrightGreen), ParamColor (TL Dn Color, 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, (TL3, p4) Col1 IIf (TL3 gt TL4, ParamColor (TLL Up Farbe, colorBlue), ParamColor (TLL Dn Farbe, colorRed)) 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 ) LoLB Param (Lo LookBack, 1,1, BarCount-1,1) Zurück Param (Pivot Lo, 0.325.0.001,2.0.0.002) (Parametrierung, 0, 0, 500, 1) ht Param (Textverschiebung, -33,5, -50,50,0,10) Stil ParamStyle (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 (Delta-ret) Fibval IIf (ret.-ret) Retval (Delta-ret) Fibval IIf (ret. p. lt 1,0 und xSp0 lt xRp0, yRp0 - Retval, lt IIf (ret 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 (R382,1) r081) r382i Last (r382,1) r050 fib (0,382) r382I Lastverzerrung (r382,1) r050 fib (0,382) 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 ) (N) (n) (n) (n) (n) (n) (n) (LineArray (xSp0-Fwd, ySp0, x1, ySp0, Rückseite), PS, 27,8styleNoRescale, Null, Null, Fwd) (LineArray (x1, r236, Back) ,, 44, stylestyleNoRescale, Null, Null, Fwd) Zeichnen (LineArray (x, (Null, null, fwd) Zeichnen (LineArray (x0-Fwd, r618, x1, r618, Zurück) ,, 43, stylestyleNoRescale, Fwd) Zeichnung (LineArray (x0-Fwd, e127, x1, e127, Rückseite), e127,47 (Null, null, fwd) Zeichnung (LineArray (x0-Fwd, e200, x1, e162,47, stylestyleNoRescale, Null, Null, Plot (LineArray (0)), p262,47, stylestyleNoRescale, Null, Null, Fwd) Zeichnen (LineArray (x1, e262, Rückseite), p200,47, (Text1) PlotText (0 WriteVal (p00, Bruchzahl), LastValue (BarIndex ()) - (numbars / hts ), P00I 0,05, color00) PlotText (23 WriteVal (r236, Bruch), LastValue (BarIndex ()) - (numbars / hts), r236I 0,05, 45) ) - (numbars / hts), r302I 0,05, 41) PlotText (62 WriteVal (r618, Bruchteil) , LastValue (BarIndex ()) - (numbars / hts), r786I 0,05, 42) PlotText (100 (P121), LastValue (BarIndex ()) - (numbars / hts), e127I 0,05 , 47) PlotText (200 WriteVal (e200, Bruch), LastValue (BarIndex ()) - (numbars Ht), e200I 0,05, 47) PlotText (424 WriteVal (e424, Bruch), LastValue (BarIndex ()) - (numbars / hts) () - (numbars / hts), e424I 0.05, 25) SECTIONEND () Code zur automatischen Identifizierung von Pivots // - was wird unser Lookback-Bereich 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: Offen, H: Hoch, L: Niedrig, Grundstück 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 (Text GfxSelectFont (Tahoma, Status (pxheight) / 12) GfxTextOut (PRASAD ANALYTICS 169, Status (px_Hight) / 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 ( (Lange Periode, 26, 2, 501) SECTIONEND () Periods Param (Kurze Periode, 12, 1, 500) PeriodL Param (Lange Zeitspanne, 26, 2, 501) GFXTextOut (Dediziert für das liebevolle Gedächtnis von MEINEM VATER, (VC, PeriodL) / EMA (V, PeriodL) ShortMA EMA (VC, Perioden) / EMA (V, Perioden) VMACD ShortMA - LongMA SignalLine EMA (VMACD, PeriodSig ) HIST VMACD-SignalLine // Uncomment zwei Zeilen unten, um auch MACD und Signalleitung zu sehen Plot (VMACD, Vol Weighted MACD, colorDarkRed) Plot (SignalLine, VolWeight Signal, colorWhite) Plot (VMACD-SignalLine, 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 (251194255)) GfxTextOut (Änderungsrate NumToStr (RATEADOFMACDCHANGE, 1.2), 650, 0) Ähnliche Beiträge. Post. Amibroker AFL hallo sir Ich bin nicht in der Lage, Test zurück. In amibroker heißt es Fehler 701. Fehlende Kauf / Verkauf variablen Zuweisungen. 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