Monday, 16 October 2017

Advanced fast fire nifty trading system afl


AFL para quotAdvanced Rapid Fire NIFTY Trading Systemquot Mas isso não está funcionando e diz quotinitialization requiredquot PODE QUALQUER SENIOR RECTIFICAR ESTA AFL Se a fita três para intervalos de tempo diferentes pode ser gerada, também será bom. SECCIONAÇÃO (quotAdvanced Rapid Fire NIFTY Trading Systemquot) T20 K ((C-funM1 (C, T, T2)) funM1 (C, T, T2)) 100 Graph0K Graph0Style24 Graph0BarColorIIf (KMAgt0,5,4) Graph0BarColorIIf (Kgt0, colorGreen, ColorRed) GraphXSpace5 Título quotSymbol. Quot Name () quotnThe Close is ngt quotWriteVal (abs (K), format1.2) quotquotWriteIf (Kgt0, quot abovequot, quot belowquot) o período 13 EMAquot E30 ((C-funE1 (C, 30,20)) funM1 ( C, 30,15)) 100 Titlequotgt quotWriteVal (abs (E30), format1.2) quot WhriteIf (E30gt0, quot abovequot, quot belowquot) quot 30 period EMAquot E50 ((C-funE1 (C, 50,35)) funM1 (C, 50,20)) 100 Titlequotgt quotWriteVal (abs (E50), format1.2) quot WhriteIf (E50gt0, quot abovequot, quot belowquot) quot 50 period EMAquot E200 ((C-funE1 (C, 200, 114)) funM1 ( C, 200,105)) 100 Titlequotgt quotWriteVal (abs (E200), format1.2) quotWriteIf (E200gt0, quot abovequot, quot belowquot) quot 200 period EMAnquot SECTIONBEGIN (quotPricequot) SetChartOptions (0, chartShowArrowschartShowDates) N (Título StrFormat (quot - Abrir g, Hi g, Lo g, Fechar g (.1f) quot, O, H, L, C, SelectedValue (ROC (C, 1)))) Plot (C, quotClosequot, ParamColor (quotColorquot, colorLightGrey), styleNoTitle ParamStyle (quotStylequot) GetPriceStyle ()) função GetSecondNum () Tempo agora (4) Secon Ds int (Tempo 100) Minutos int (Tempo 100 100) Horas int (Tempo 10000 100) SecondNum int (Horas 60 60 Minutos 60 Segundos) return SecondNum RequestTimedRefresh (1) TimeFrame Interval () SecNumber GetSecondNum () Newperiod SecNumber TimeFrame 0 SecsLeft SecNumber - int (SecNumber TimeFrame) TimeFrame SecsToGo TimeFrame - SecsLeft if (NewPeriod) Plot (1, quotquot, colorYellow, styleArea styleOwnScale, 0, 1) time quotCurrent Time: quot Now (2) quotquot quotChart Interval: quot NumToStr (TimeFrame, 1.0) Quot Secondsnquot quotSecond Number quotnot quotSeconds Left: quot NumToStr (SecsLeft, 1.0, False) quotquot quotSeconds To Go: quot NumToStr (SecsToGo, 1.0, False) GfxSetTextColor (colorBrown) GfxSelectFont (quotTahomaquot, 12 , 1200) GfxTextOut (Quecseconds To Go: quot NumToStr (SecsToGo, 1.0, False), 35, 200) priceAxesWidth0 dateAxesHeight0 TitleHeight0 pxwidth Status (quotpxwidthquot) pxheight Statu s (quotpxheightquot) chartwidth pxwidth-priceAxesWidth chartheight pxheight-dateAxesHeight topColorParamColor (quottopColorquot, colorCustom4) centerColorParamColor (quotcenterColorquot, ColorRGB (249236164)) botColorParamColor (quotBottomColorquot, colorCustom4) priceAxesColorParamColor (quotpriceAxesColorquot, colorWhite) dateAxesColorParamColor (quotdateAxesColorquot, colorWhite) relPosParam (quotcenterPositionquot, 50 , 0,100,1) 100 centerHeightchartheightParam (quotcenterHeightquot, 10, 0,100,1) 100 x00 y0Max (TitleHeight, chartheightrelPos-centerHeight2) x1chartwidth y1Min (chartheight, chartheightrelPoscenterHeight2) GfxSetBkMode (1) GfxSetOverlayMode (1) GfxGradientRect (0,0, chartwidth, TitleHeight , ColorWhite, colorWhite) GfxGradientRect (chartwidth, 0, pxwidth, pxheight, priceAxesColor, priceAxesColor) GfxGradientRect (0, chartheight, chartwidth, pxheight, dateAxesColor, dateAxesColor) GfxGradientRect (x0, y0, x1, y1, CenterColor, CenterColor) GfxGradientRect (0 TitleHeight, chartwidth, y0, topColor, Cent ErColor) GfxGradientRect (0, y1, chartwight, chartheight, CenterColor, botColor) SECTIONBEGIN (quotPricequot) SetChartBkGradientFill (ParamColor (quotBgTopquot, colorLightYellow), ParamColor (quotB gBottomquot, colorCustom4), ParamColor (quotTitleblockquot, col ou LightYellow)) SetChartOptions (0, chartShowDateschartShowArrowsc HartLogarithmicchartWrapTitle) GraphXSpace 5 SECTIONBEGIN (quotBollinger Bandsquot) P ParamField (quotPrice fieldquot, -1) Períodos Param (quotBollingerquot, 10, 2, 100, 1) Width Param (quotWidthquot, 0.55, 0, 10, 0.05) Plot (funBBTp (P, Períodos, Largura), quotBBTopquot, colorGreen, styleLinestyleThickstyleDots) Plot (funBBBt (P, Períodos, Largura), quotBBBotquot, colorBrown, styleLinestyleThickstyleDots) SECTIONEND () btsParamToggle (quotBTSquot, quotNoYesquot, 1) btstParamToggle (quotDotquot, quotNoYesquot, 1) btslParamToggle (quotDeep SLquot, quotNoYesquot, 1) periodParam (queriodquot, 7,1,20,1) x153 x247 d2.3 f7 s1.5 rangefunA1 (f, fd) Faixa1 funA1 (f, fs) d Faixa2 (funA1 (f, ds) s ) 4 range3funA1 (10 Sf) R ((funH1 (H, período, períodos) - C) (funH1 (H, período, período) - funL1 (L, período, ds))) -100 E1 funE1 (R, Período, x1x2) E2 funE1 (E1,5, fs) Diferença E1 - E2 ZeroLagE E1 Função diferença2abs (ZeroLagE) PercentagemR (períodos) retorno -100 (funH1 (H, períodos, período) - C) (funH1 (H, períodos, períodos) - funL1 ( L, periodos, ds)) mainvalfunMAIN (Range1, Range2, range3, value2, Clo se, H, L, período, BarCount, x1, x2) tmfunreturntm () bstopfunreturnbstop () sstopfunreturnsstop () PlotShapes (shapeSmallCircle (bts AND tm1 AND Ref (Tm, -1) 2), colorBlue, 0, bstop, -6) PlotShapes (shapeSmallCircle (bts AND tm2 E Ref (tm, -1) 1), colorCustom12, 0, sstop, -6) Plot (IIf (btsl E tm1, bstop, Null), quotquot, colorDarkGreen, styleLinestyl eThickstyleDots) Plot (IIf (btsl AND tm2, sstop, Null), quotquot, colorPink, styleLinestyleThic kstyleDots) SECTIONEND () xParam (quotDefault1quot, 14,3,50,1) X1funC1 (x, 24) YParam (quotDefault2quot, 7,3,15,1) Y2funD1 (x1, Y, YX) ZParam (quotDefault3quot, 3,3,9,1) Z2funM1 (Y2, Z, ZY) PCS funPC1 (Z2) TCB funTC1 (Z2) Comprar Cond5B Sell Cond5S Comprar ExRem (Comprar, Vender) Venda ExRem (Vender, Comprar) Filtro Comprar OU Vender printf (quotnEarnByNifty este comentário é gerado automaticamente para fins de informação. quot) WriteIf (bgt0, quotnThe last O sinal automatizado gerado foi um quotPquotnon quotDate () quotnow. QuotL, quotquot) WriteIf (sgt0, quot O último sinal automatizado gerado foi um quotPonoton QuotDate () quotnHigh. QuotH, quotquot) x1funC1 (x, 7) Y2funD1 (x1, Y, Y2) Z2funM1 (Y2, Z, ZY) CondHB z2gtRef (Z2, -1) CondHS Z2ltRef (Z2,1) PCRH funPC1 (Z2) TCRH funTC1 (Z2) TimeFrameRestore () WriteIf (CondHBgtCondHS, quotnThe Tendência horária é BULLISH, Buy Signals pode ser mais rentável, agir com cautela em Sell Signsquot, WriteIf ((CondHBltCondHS), quotThe Tendência horária é BEARISH, Sell Signals pode ser mais rentável, Agir com cautela em Buy Signalsquot, quotquot)) WriteIf (CondSR, QuotnReversal of Hour Three BEARISH Trendquot, quotquot) WriteIf (CondBR, QuotReversal of Hourly BULLISH Trendquot, quotquot ) WriteIf (CondSR ou CondBR, quotquot, quotquot) printf (quotquot) x1funC1 (x, x-10) Y2funD1 (x1, Y, Y5) Z2funM1 (Y2, Z, Z2Y) CondHB z2gtRef (z2, -1) CondHS Z2ltRef ( Z2,1) PCR30 funPC1 (Z2) TCR30 funTC1 (Z2) CondSR30 TCR30 CondBR30 PCR30 TimeFrameRestore () printf (quotnRSI. Quot WriteVal (RSI (14))) pParamToggle (quotSupport-Resist Ance. QuotNoYesquot, 0) TimeFrameRestore () ----------- Meio horário - SUPORTE da RESISTÊNCIA do amplificador ------------- dH1SelectedValue (TimeFrameGetPrice (quotHquot, 2in15Minute, -1) ) DL1SelectedValue (TimeFrameGetPrice (quotLquot, 2in15Minute, -1)) dC1SelectedValue (TimeFrameGetPrice (quotCquot, 2in15Minute, -1)) dp returnp (dH1, dL1, dC1) 3 ds1 returns1r1 (dp, dH1) dr1 returns1r1 (dp, dL1) ds2 Retorna2s3 (dp, dH1, dL1) ds3 returns2s3 (dS1, dH1, dL1) dr2 returnr2r3 (dp, dH1, dL1) dr3 returnr2r3 (dR1, dH1, dL1) printf (quotnHalf Hourly Support amp. Resistência. Quot) printf (quotnS1. QuotWriteVal (Ds1)) printf (quotnr2. QuotWriteVal (dr2)) printf (quotnr3. QuotWriteVal (dr3)) printf (quotnr3. QuotWriteVal (dr3)) printf (quotnr3. QuotWriteVal (dr3)) printf (quotnr1. QuotWriteVal (ds2)) printf (Ds1, quotDaily Support 1quot, colorBrightGreen, styleLine) Plot (ds2, quotDaily Support 2quot, colorDarkGreen, styleLine) Plot (ds3, quotDaily Support 3quot, colorDarkGrey, styleLine) Plot (dr1, QuetDaily Resistance 1quot, colorRed, styleLine) Plot (dr2 , Qu OtDaily Resistance 2quot, colorDarkRed, styleLine) Plot (dr3, quotDaily Resistance 3quot, colorBrown, styleLine) ----------- Hourly - SUPPORT ABS RESISTANCE ------------- wH1SelectedValue (TimeFrameGetPrice (quotHquot, inHourly, -1)) wL1SelectedValue (TimeFrameGetPrice (quotLuot, inHourly, -1)) wC1SelectedValue (TimeFrameGetPrice (quotCquot, inHourly, -1)) wp returnp (wH1, wL1, wC1) 3 ws1 returns1r1 (wp, WH1, wL1) w2 retornos2s3 (wp, wH1, wL1) ws3 retorna2s3 (wS1, wH1, wL1) wr2 returnr2r3 (wp, wH1, wL1) wr3 returnr2r3 (wR1, wH1, wL1) printf (quotnHourly Support amp Resistência. QuotWriteVal (ws1)) printf (quotnS3. QuotWriteVal (ws3)) printf (quotnr1. QuotWriteVal (wr1)) printf (quotnr2. QuotWriteVal (wr2)) printf (quotnr2. QuotWriteVal (wr2)) printf (quotnr2. QuotWriteVal (wr2)) printf (quotnr2. . QuotWriteVal (wr3)) ----------- Two Hourly - SUPPORT ABS RESISTANCE ------------- mH1SelectedValue (TimeFrameGetPrice (quotHquot, 2inHourly, -1)) mL1SelectedValue ( TimeFrameGetPrice (quotLquot, 2inHourly, -1)) mC1SelectedValue (TimeFrameGetPrice (quotCquot, 2inHourly, -1)) mp returnp (mH1, mL1, mC1) 3 ms1 returns1r1 (mp, mH1) mr1 returns1r1 (mp, mL1) ms2 returns2s3 (mp , MH1, mL1) ms3 retorna2s3 (mS1, mH1, mL1) mr2 returnr2r3 (pf, mH1, mL1) mr3 returnr2r3 (mR1, mH1, mL1) printf (quotnTwo Hourly Support amp. Resistência quot) printf (quotnS1. QuotWriteVal (ms1) ) Printf (quotnr2. QuotWriteVal (m2)) printf (quotnr2. QuotWriteVal (mr2)) printf (quotnr3. QuotWriteVal (mr3)) printf (quotnS2. QuotWriteVal (ms2)) printf (quotnS1. QuotWriteVal (ms3)) printf (quotnr1. QuotWriteVal (mr1) QuotHourly Trendquot, IIf (Flip (Condors, CondBR), colorGreen, IIf (Flip (C OndBR, CondSR), colorRed, colorOrange)), styleOwnScalestyleAreastyleNoLabel. -0,75, 100) Plot (3,5, quot30min Trendquot, IIf (Flip (CondSR30, CondBR30), colorDarkBlue, IIf (Flip (CondBR30, CondSR30), colorTan, colorOrange)), styleOwnScalestyleAreastyleNoLabel. -0.85, 100) Plot (5, quotBuySell Ribbon, IIf (Flip (Comprar, Vender), ColorBrightGreen, IIf (Flip (Vender, Comprar), ColorPink, ColorOrange)), styleOwnScalestyleAreastyleNoLabel, -0.75, 100) Forma TimeFrameSet (in5Minute) Comprar shapeUpTriangle Vender shapeDownTriangle PlotShapes (shape, IIf ( Comprar, colorGreen, colorRed), IIf (Comprar, Baixo, Alto)) TimeFrameRestore () Postado originalmente por pranayk (Post 550244) Mas isso não está funcionando e diz quotinitialization requiredquot PODE QUALQUER SENIOR RECTIFICAR ESTA AFL Se a fita três para tempo diferente Os quadros podem ser gerados, também será bom. SECCIONAÇÃO (quotAdvanced Rapid Fire NIFTY Trading Systemquot) T20 K ((C-funM1 (C, T, T2)) funM1 (C, T, T2)) 100 Graph0K Graph0Style24 Graph0BarColorIIf (KMAgt0,5,4) Graph0BarColorIIf (Kgt0, colorGreen, ColorRed) GraphXSpace5 Título quotSymbol. Quot Name () quotnThe Close is ngt quotWriteVal (abs (K), format1.2) quotquotWriteIf (Kgt0, quot abovequot, quot belowquot) o período 13 EMAquot E30 ((C-funE1 (C, 30,20)) funM1 ( C, 30,15)) 100 Titlequotgt quotWriteVal (abs (E30), format1.2) quot WhriteIf (E30gt0, quot abovequot, quot belowquot) quot 30 period EMAquot E50 ((C-funE1 (C, 50,35)) funM1 (C, 50,20)) 100 Titlequotgt quotWriteVal (abs (E50), format1.2) quot WhriteIf (E50gt0, quot abovequot, quot belowquot) quot 50 period EMAquot E200 ((C-funE1 (C, 200, 114)) funM1 ( C, 200,105)) 100 Titlequotgt quotWriteVal (abs (E200), format1.2) quotWriteIf (E200gt0, quot abovequot, quot belowquot) quot 200 period EMAnquot SECTIONBEGIN (quotPricequot) SetChartOptions (0, chartShowArrowschartShowDates) N (Título StrFormat (quot - Abrir g, Hi g, Lo g, Fechar g (.1f) quot, O, H, L, C, SelectedValue (ROC (C, 1)))) Plot (C, quotClosequot, ParamColor (quotColorquot, colorLightGrey), styleNoTitle ParamStyle (quotStylequot) GetPriceStyle ()) função GetSecondNum () Tempo agora (4) Secon Ds int (Tempo 100) Minutos int (Tempo 100 100) Horas int (Tempo 10000 100) SecondNum int (Horas 60 60 Minutos 60 Segundos) return SecondNum RequestTimedRefresh (1) TimeFrame Interval () SecNumber GetSecondNum () Newperiod SecNumber TimeFrame 0 SecsLeft SecNumber - int (SecNumber TimeFrame) TimeFrame SecsToGo TimeFrame - SecsLeft if (NewPeriod) Plot (1, quotquot, colorYellow, styleArea styleOwnScale, 0, 1) time quotCurrent Time: quot Now (2) quotquot quotChart Interval: quot NumToStr (TimeFrame, 1.0) Quot Secondsnquot quotSecond Number quotnot quotSeconds Left: quot NumToStr (SecsLeft, 1.0, False) quotquot quotSeconds To Go: quot NumToStr (SecsToGo, 1.0, False) GfxSetTextColor (colorBrown) GfxSelectFont (quotTahomaquot, 12 , 1200) GfxTextOut (Quecseconds To Go: quot NumToStr (SecsToGo, 1.0, False), 35, 200) priceAxesWidth0 dateAxesHeight0 TitleHeight0 pxwidth Status (quotpxwidthquot) pxheight Statu s (quotpxheightquot) chartwidth pxwidth-priceAxesWidth chartheight pxheight-dateAxesHeight topColorParamColor (quottopColorquot, colorCustom4) centerColorParamColor (quotcenterColorquot, ColorRGB (249236164)) botColorParamColor (quotBottomColorquot, colorCustom4) priceAxesColorParamColor (quotpriceAxesColorquot, colorWhite) dateAxesColorParamColor (quotdateAxesColorquot, colorWhite) relPosParam (quotcenterPositionquot, 50 , 0,100,1) 100 centerHeightchartheightParam (quotcenterHeightquot, 10, 0,100,1) 100 x00 y0Max (TitleHeight, chartheightrelPos-centerHeight2) x1chartwidth y1Min (chartheight, chartheightrelPoscenterHeight2) GfxSetBkMode (1) GfxSetOverlayMode (1) GfxGradientRect (0,0, chartwidth, TitleHeight , ColorWhite, colorWhite) GfxGradientRect (chartwidth, 0, pxwidth, pxheight, priceAxesColor, priceAxesColor) GfxGradientRect (0, chartheight, chartwidth, pxheight, dateAxesColor, dateAxesColor) GfxGradientRect (x0, y0, x1, y1, CenterColor, CenterColor) GfxGradientRect (0 TitleHeight, chartwidth, y0, topColor, Cent ErColor) GfxGradientRect (0, y1, chartwight, chartheight, CenterColor, botColor) SECTIONBEGIN (quotPricequot) SetChartBkGradientFill (ParamColor (quotBgTopquot, colorLightYellow), ParamColor (quotB gBottomquot, colorCustom4), ParamColor (quotTitleblockquot, col ou LightYellow)) SetChartOptions (0, chartShowDateschartShowArrowsc HartLogarithmicchartWrapTitle) GraphXSpace 5 SECTIONBEGIN (quotBollinger Bandsquot) P ParamField (quotPrice fieldquot, -1) Períodos Param (quotBollingerquot, 10, 2, 100, 1) Width Param (quotWidthquot, 0.55, 0, 10, 0.05) Plot (funBBTp (P, Períodos, Largura), quotBBTopquot, colorGreen, styleLinestyleThickstyleDots) Plot (funBBBt (P, Períodos, Largura), quotBBBotquot, colorBrown, styleLinestyleThickstyleDots) SECTIONEND () btsParamToggle (quotBTSquot, quotNoYesquot, 1) btstParamToggle (quotDotquot, quotNoYesquot, 1) btslParamToggle (quotDeep SLquot, quotNoYesquot, 1) periodParam (queriodquot, 7,1,20,1) x153 x247 d2.3 f7 s1.5 rangefunA1 (f, fd) Faixa1 funA1 (f, fs) d Faixa2 (funA1 (f, ds) s ) 4 range3funA1 (10 Sf) R ((funH1 (H, período, períodos) - C) (funH1 (H, período, período) - funL1 (L, período, ds))) -100 E1 funE1 (R, Período, x1x2) E2 funE1 (E1,5, fs) Diferença E1 - E2 ZeroLagE E1 Função diferença2abs (ZeroLagE) PercentagemR (períodos) retorno -100 (funH1 (H, períodos, período) - C) (funH1 (H, períodos, períodos) - funL1 ( L, periodos, ds)) mainvalfunMAIN (Range1, Range2, range3, value2, Clo se, H, L, período, BarCount, x1, x2) tmfunreturntm () bstopfunreturnbstop () sstopfunreturnsstop () PlotShapes (shapeSmallCircle (bts AND tm1 AND Ref (Tm, -1) 2), colorBlue, 0, bstop, -6) PlotShapes (shapeSmallCircle (bts AND tm2 E Ref (tm, -1) 1), colorCustom12, 0, sstop, -6) Plot (IIf (btsl E tm1, bstop, Null), quotquot, colorDarkGreen, styleLinestyl eThickstyleDots) Plot (IIf (btsl AND tm2, sstop, Null), quotquot, colorPink, styleLinestyleThic kstyleDots) SECTIONEND () xParam (quotDefault1quot, 14,3,50,1) X1funC1 (x, 24) YParam (quotDefault2quot, 7,3,15,1) Y2funD1 (x1, Y, YX) ZParam (quotDefault3quot, 3,3,9,1) Z2funM1 (Y2, Z, ZY) PCS funPC1 (Z2) TCB funTC1 (Z2) Comprar Cond5B Sell Cond5S Comprar ExRem (Comprar, Vender) Venda ExRem (Vender, Comprar) Filtro Comprar OU Vender printf (quotnEarnByNifty este comentário é gerado automaticamente para fins de informação. quot) WriteIf (bgt0, quotnThe last O sinal automatizado gerado foi um quotPquotnon quotDate () quotnow. QuotL, quotquot) WriteIf (sgt0, quot O último sinal automatizado gerado foi um quotPonoton QuotDate () quotnHigh. QuotH, quotquot) x1funC1 (x, 7) Y2funD1 (x1, Y, Y2) Z2funM1 (Y2, Z, ZY) CondHB z2gtRef (Z2, -1) CondHS Z2ltRef (Z2,1) PCRH funPC1 (Z2) TCRH funTC1 (Z2) TimeFrameRestore () WriteIf (CondHBgtCondHS, quotnThe Tendência horária é BULLISH, Buy Signals pode ser mais rentável, agir com cautela em Sell Signsquot, WriteIf ((CondHBltCondHS), quotThe Tendência horária é BEARISH, Sell Signals pode ser mais rentável, Agir com cautela em Buy Signalsquot, quotquot)) WriteIf (CondSR, QuotnReversal of Hour Three BEARISH Trendquot, quotquot) WriteIf (CondBR, QuotReversal of Hourly BULLISH Trendquot, quotquot ) WriteIf (CondSR ou CondBR, quotquot, quotquot) printf (quotquot) x1funC1 (x, x-10) Y2funD1 (x1, Y, Y5) Z2funM1 (Y2, Z, Z2Y) CondHB z2gtRef (z2, -1) CondHS Z2ltRef ( Z2,1) PCR30 funPC1 (Z2) TCR30 funTC1 (Z2) CondSR30 TCR30 CondBR30 PCR30 TimeFrameRestore () printf (quotnRSI. Quot WriteVal (RSI (14))) pParamToggle (quotSupport-Resist Ance. QuotNoYesquot, 0) TimeFrameRestore () ----------- Meio horário - SUPORTE da RESISTÊNCIA do amplificador ------------- dH1SelectedValue (TimeFrameGetPrice (quotHquot, 2in15Minute, -1) ) DL1SelectedValue (TimeFrameGetPrice (quotLquot, 2in15Minute, -1)) dC1SelectedValue (TimeFrameGetPrice (quotCquot, 2in15Minute, -1)) dp returnp (dH1, dL1, dC1) 3 ds1 returns1r1 (dp, dH1) dr1 returns1r1 (dp, dL1) ds2 Retorna2s3 (dp, dH1, dL1) ds3 returns2s3 (dS1, dH1, dL1) dr2 returnr2r3 (dp, dH1, dL1) dr3 returnr2r3 (dR1, dH1, dL1) printf (quotnHalf Hourly Support amp. Resistência. Quot) printf (quotnS1. QuotWriteVal (Ds1)) printf (quotnr2. QuotWriteVal (dr2)) printf (quotnr3. QuotWriteVal (dr3)) printf (quotnr3. QuotWriteVal (dr3)) printf (quotnr3. QuotWriteVal (dr3)) printf (quotnr1. QuotWriteVal (ds2)) printf (Ds1, quotDaily Support 1quot, colorBrightGreen, styleLine) Plot (ds2, quotDaily Support 2quot, colorDarkGreen, styleLine) Plot (ds3, quotDaily Support 3quot, colorDarkGrey, styleLine) Plot (dr1, QuetDaily Resistance 1quot, colorRed, styleLine) Plot (dr2 , Qu OtDaily Resistance 2quot, colorDarkRed, styleLine) Plot (dr3, quotDaily Resistance 3quot, colorBrown, styleLine) ----------- Hourly - SUPPORT ABS RESISTANCE ------------- wH1SelectedValue (TimeFrameGetPrice (quotHquot, inHourly, -1)) wL1SelectedValue (TimeFrameGetPrice (quotLuot, inHourly, -1)) wC1SelectedValue (TimeFrameGetPrice (quotCquot, inHourly, -1)) wp returnp (wH1, wL1, wC1) 3 ws1 returns1r1 (wp, WH1, wL1) w2 retornos2s3 (wp, wH1, wL1) ws3 retorna2s3 (wS1, wH1, wL1) wr2 returnr2r3 (wp, wH1, wL1) wr3 returnr2r3 (wR1, wH1, wL1) printf (quotnHourly Support amp Resistência. QuotWriteVal (ws1)) printf (quotnS3. QuotWriteVal (ws3)) printf (quotnr1. QuotWriteVal (wr1)) printf (quotnr2. QuotWriteVal (wr2)) printf (quotnr2. QuotWriteVal (wr2)) printf (quotnr2. QuotWriteVal (wr2)) printf (quotnr2. . QuotWriteVal (wr3)) ----------- Two Hourly - SUPPORT ABS RESISTANCE ------------- mH1SelectedValue (TimeFrameGetPrice (quotHquot, 2inHourly, -1)) mL1SelectedValue ( TimeFrameGetPrice (quotLquot, 2inHourly, -1)) mC1SelectedValue (TimeFrameGetPrice (quotCquot, 2inHourly, -1)) mp returnp (mH1, mL1, mC1) 3 ms1 returns1r1 (mp, mH1) mr1 returns1r1 (mp, mL1) ms2 returns2s3 (mp , MH1, mL1) ms3 retorna2s3 (mS1, mH1, mL1) mr2 returnr2r3 (pf, mH1, mL1) mr3 returnr2r3 (mR1, mH1, mL1) printf (quotnTwo Hourly Support amp. Resistência quot) printf (quotnS1. QuotWriteVal (ms1) ) Printf (quotnr2. QuotWriteVal (m2)) printf (quotnr2. QuotWriteVal (mr2)) printf (quotnr3. QuotWriteVal (mr3)) printf (quotnS2. QuotWriteVal (ms2)) printf (quotnS1. QuotWriteVal (ms3)) printf (quotnr1. QuotWriteVal (mr1) QuotHourly Trendquot, IIf (Flip (Condors, CondBR), colorGreen, IIf (Flip (C OndBR, CondSR), colorRed, colorOrange)), styleOwnScalestyleAreastyleNoLabel. -0,75, 100) Plot (3,5, quot30min Trendquot, IIf (Flip (CondSR30, CondBR30), colorDarkBlue, IIf (Flip (CondBR30, CondSR30), colorTan, colorOrange)), styleOwnScalestyleAreastyleNoLabel. -0.85, 100) Plot (5, quotBuySell Ribbon, IIf (Flip (Comprar, Vender), ColorBrightGreen, IIf (Flip (Vender, Comprar), ColorPink, ColorOrange)), styleOwnScalestyleAreastyleNoLabel, -0.75, 100) Forma TimeFrameSet (in5Minute) Comprar shapeUpTriangle Vender shapeDownTriangle PlotShapes (shape, IIf ( Comprar, colorGreen, colorRed), IIf (Comprar, Baixo, Alto)) TimeFrameRestore () Acho que é necessário usar este aflCan qualquer corpo correto Esta AFL (Fórmula Amibroker) SECTIONBEGIN (Advanced Rapid Fire NIFTY Trading System) T20 K (C-funM1) (C, T, T2)) funM1 (C, T, T2)) 100 Graph0K Graph0Style24 Graph0BarColorIIf (KMAgt0,5,4) Graph0BarColorIIf (Kgt0, colorGreen, colorRed) GraphXSpace5 Título Símbolo. Name () nThe Close is ngt WriteVal (abs (K), format1.2) WriteIf (Kgt0, acima, abaixo) o período 13 EMA E30 ((C-funE1 (C, 30,20)) funM1 (C, 30, 15)) 100 Titlegt WriteVal (abs (E30), format1.2) WriteIf (E30gt0, acima, abaixo) 30 EMA E50 ((C-funE1 (C, 50,35)) funM1 (C, 50,20)) 100 Titlegt WriteVal (abs (E50), formato1.2) WriteIf (E50gt0, acima, abaixo) 50 período EMA E200 ((C-funE1 (C, 200,114)) funM1 (C, 200,105)) 100 Titlegt WriteVal (abs (E200 ), Format1.2) WriteIf (E200gt0, acima, abaixo) 200 period EMAN SECTIONBEGIN (Preço) SetChartOptions (0, chartShowArrowschartShowDates) N (Título StrFormat (- Open g, Hi g, Lo g, Close g (.1f), O H, L, C, SelectedValue (ROC (C, 1)))) Plot (C, Close, ParamColor (Color, colorLightGrey), styleNoTitle ParamStyle (Estilo) GetPriceStyle ()) função GetSecondNum () Tempo agora (4) Segundos Int (Tempo 100) Minutos int (Tempo 100 100) Horas int (Tempo 10000 100) SecondNum int (Horas 60 60 Minutos 60 Segundos) return SecondNum RequestTimedRefresh (1) TimeFrame Interval () Sec Number GetSecondNum () Newperiod SecNumber TimeFrame 0 SecsLeft SecNumber - int (SecNumber TimeFrame) TimeFrame SecsToGo TimeFrame - SecsLeft se (NewPeriod) Plot (1, colorYellow, styleArea styleOwnScale, 0, 1) time Tempo atual: Now (2) n Chart Interval : NumToStr (TimeFrame, 1.0) Secondsn Second Number: NumToStr (SecNumber, 1.0, False) n Segundos à esquerda: NumToStr (SecsLeft, 1.0, False) n Seconds To Go: NumToStr (SecsToGo, 1.0, False) GfxSetTextColor (colorBrown) GfxSelectFont ( Tahoma, 12,1200) GfxTextOut (Seconds To Go: NumToStr (SecsToGo, 1.0, False), 35, 200) pxwidth Status (pxwidth) pxheight Status (pxheight) chartwidth pxwidth-priceAxesWidth chartheight pxheight-dateAxesHeight topColorParamColor (topColor, colorCustom4) centerColorParamColor (CenterColor, ColorRGB (249,236,164)) botColorParamColor (BottomColor, colorCustom4) priceAxesColorParamColor (priceAxesColor, colorWhite) dateAxesColorParamColor (dateAxesColor, colorWhite) GfxSetBkMode (1) GfxSetOverlayMode (1) GfxGradientRect (0,0, chartwidth, TitleHeight, colorWhite, colorWhite) GfxGradientRect (chartwidth, 0, pxwidth, pxheight, priceAxesColor, priceAxesColor) GfxGradientRect (0, chartheight, chartwidth, pxheight, dateAxesColor, dateAxesColor) GfxGradientRect (x0, Y0, x1, y1, CenterColor, CenterColor) GfxGradientRect (0, TitleHeight, chartwidth, y0, topColor, CenterColor) GfxGradientRect (0, y1, chartwidth, chartheight, CenterColor, botColor) SECTIONBEGIN (Preço) SetChartBkGradientFill (ParamColor (BgTop, colorLightYellow) , ParamColor (B gBottom, colorCustom4), ParamColor (Titleblock, colorCustom4), ParamColor (Titleblock, colourCustom4), ParamColor (Titleblock, colourLightYellow)) SetChartOptions (0, chartShowDateschartShowArrowsC hartLogarithmicchartWrapTitle) GraphXSpace 5 SECTIONBEGIN (Bollinger Bands) P ParamField (Campo de preço, -1) Períodos Param (Bollinger, 10, 2, 100 , 1) Width Param (Width, 0.55, 0, 10, 0.05) Plot (funBBTp (P, Periods, Width), BBTop, colorGreen, styleLinestyleThickstyleDots) Plot (funBBBt (P, Periods, Width), BBBot, colorBrown, styleLinestyleThickstyleDots) SECÇÃO D () btsParamToggle (BTS, NoYes, 1) btstParamToggle (DOT, NoYes, 1) btslParamToggle (Deep SL, NoYes, 1) periodParam (Período, 7,1,20,1) x153 x247 d2.3 f7 s1.5 rangefunA1 (F, fd) Range1 funA1 (f, fs) d Range2 (funA1 (f, ds) s) 4 range3funA1 (10, sf) R ((funH1 (H, período, períodos) - C) (funH1 (H, período (E, período, ds)) -100 E1 funE1 (R, Período, x1x2) E2 funE1 (E1,5, fs) Diferença E1 - E2 ZeroLagE E1 Função diferença2abs (ZeroLagE) PercentagemR (períodos) Retornar -100 (funH1 (H, períodos, período) - C) (funH1 (H, períodos, períodos) - funL1 (L, periodos, ds)) mainvalfunMAIN (Range1, Range2, range3, value2, Clo se, H, L , Período, BarCount, x1, x2) PlotShapes (shapeSmallCircle (bts AND tm1 E Ref (tm, -1) 2), colorBlue, 0, bstop, -6) PlotShapes (shapeSmallCircle (bts AND tm2 E Ref (tm, -1 ) 1), colorCustom12, 0, sstop, -6) Plot (IIf (btsl AND tm1, bstop, Null) ,, colorDarkGreen, styleLinestyl eThickstyleDots) Lote (IIf (btsl AND tm2, sstop, Null) ,, colorPink, styleLinestyleThic kstyleDots ) SECTIONEND () PCS funPC1 (Z2) TCB funTC1 (Z2) Comprar Cond5B Sell Cond5S Comprar ExRem (Comprar, Vender) Vender ExRem (Vender, Comprar) Filtrar Comprar OU Vender printf (nEarnByNifty este comentário é gerado automaticamente para fins de informação.) WriteIf (bgt0, nThe ultimo Automated O sinal gerado foi um Buy Pnon Date () nLow. L,) WriteIf (sgt0, o último sinal automatizado gerado foi uma Data de Pnon de Venda () nHigh. H,) CondHB z2gtRef (z2, -1) CondHS Z2ltRef (Z2,1) PCRH funPC1 (Z2) TCRH funTC1 (Z2) TimeFrameRestore () WriteIf (CondHBgtCondHS, nThe Tendência horária é BULLISH, Buy Signals pode ser mais rentável, Agir com precaução em Sell Signals, WriteIf ((CondHBltCondHS), Tendência horária é BEARISH, Sell Signals pode ser mais rentável, Agir com cautela em Buy Signals, )) WriteIf (CondSR, nReversal de Tendência BEARISH Horário,) WriteIf (CondBR, Reversão da Tendência BULLISH horária) WriteIf (CondSR OR CondBR ,,) printf () CondHB z2gtRef (z2, -1) CondHS Z2ltRef (Z2,1) PCR30 funPC1 (Z2) TCR30 funTC1 (Z2) CondSR30 TCR30 CondBR30 PCR30 TimeFrameRestore () ----------- Meio horário - SUPORTE do amplificador RESISTÊNCIA ------------- dH1SelectedValue (TimeFrameGetPrice (H, 2in15Minute, -1)) dL1SelectedValue (TimeFrameGetPrice (L, 2in15Minute, -1)) dC1SelectedValue (TimeFrameGetPrice (C, 2in15Minute, -1)) dp returnp (dH1, dL1, dC1) 3 ds1 returns1r1 (dp, dH1) Dr1 r Eturns1r1 (dp, dH1, dL1) ds3 returns2s3 (dS1, dH1, dL1) dr2 returnr2r3 (dp, dH1, dL1) dr3 returnr2r3 (dR1, dH1, dL1) printf (nHalf Hourly Support amp Resistance. ) Printf (nS1. WriteVal (ds1)) printf (nS2. WriteVal (ds2)) printf (nS3. WriteVal (ds3)) printf (nr1. WriteVal (dr1)) printf (nr2. WriteVal (dr2)) printf (nr3. WriteVal (dr3)) Plot (ds1, Daily Support 1, colorBrightGreen, styleLine) Plot (ds2, Daily Support 2, colorDarkGreen, styleLine) Plot (ds3, Daily Support 3, colorDarkGrey, styleLine) Plot (dr1, Daily Resistance 1, colorRed , EstiloLine) Plot (dr2, Daily Resistance 2, colorDarkRed, styleLine) Plot (dr3, Daily Resistance 3, colorBrown, styleLine) ----------- Hourly - SUPPORT amp RESISTANCE ------- ------ wH1SelectedValue (TimeFrameGetPrice (H, inHourly, -1)) wL1SelectedValue (TimeFrameGetPrice (L, inHourly, -1)) wC1SelectedValue (TimeFrameGetPrice (C, inHourly, -1)) wp returnp (wH1, wL1, wC1 ) 3 ws1 retorna1r1 (wp, wH1) wr1 returns1r1 (wp, wL1) ws2 returns2s3 (wp, wH1, wL1) ws3 returns2s3 (wS1, wH1, wL1) wr2 returnr2r3 (wp, wH1, wL1) wr3 returnr2r3 (wR1, wH1, Wl1) printf (nHourly Support amp Resistance). Printf (nS1. WriteVal (ws1)) printf (nS2. WriteVal (ws2)) printf (nS3. WriteVal (ws3) ) Printf (nr1. WriteVal (wr1)) printf (nr2. WriteVal (wr2)) printf (nr3. WriteVal (wr3)) ----------- Two Hourly - SUPPORT amp RESISTANCE ---------- --- mH1SelectedValue (TimeFrameGetPrice (H, 2 inHourly, -1)) mL1SelectedValue (TimeFrameGetPrice (L, 2 inHourly, -1)) mC1SelectedValue (TimeFrameGetPrice (C, 2 inHourly, -1)) mp returnp (mH1, mL1, mC1) 3 ms1 Retorna1r1 (mp, mH1) mr1 returns1r1 (mp, mL1) ms2 returns2s3 (mp, mH1, mL1) ms3 returns2s3 (mS1, mH1, mL1) mr2 returnr2r3 (pf, mH1, mL1) mr3 returnr2r3 (mR1, mH1, mL1) printf (NS1. WriteVal (ms1)) printf (nS2. WriteVal (ms2)) printf (nS3. WriteVal (ms3)) printf (nr1. WriteVal (mr1)) printf (nr2. WriteVal (mr1)) printf (nr2. WriteVal (mr1)) Mr2)) printf (nr3. WriteVal (mr3)) Plot (2, Tendência horária, IIf (Flip (CondSR, CondBR), colorGreen, IIf (Flip (CondBR, CondSR), colorRed, colorOrange)), styleOwnScalestyleAreastyleNoLabel. -0.75, 100) Plot (3,5,30min Trend, IIf (Flip (CondSR30, CondBR30), colorDarkBlue, IIf (Flip (CondBR30, CondSR30), colorTan, colorOrange)), styleOwnScalestyleAreastyl ENoLabel. -0.85, 100) Plot (5, BuySell Ribbon, IIf (Flip (Comprar, Vender), ColorBrightGreen, IIf (Flip (Vender, Comprar), colorPink, colorOrange)), styleOwnScalestyleAreastyleNoLabel, -0.75, 100) TimeFrameSet (in5Minute) Comprar shapeUpTriangle Vender formasDownTriangle PlotShapes (forma, IIf (Comprar, colorGreen, colorRed), IIf (Comprar, Baixo, Alto)) TimeFrameRestore () SECTIONBEGIN (Advanced Rapid Fire NIFTY Trading System) T20 K ((C-funM1 (C, T, T2)) funM1 (C, T, T2)) 100 Graph0K Graph0Style24 Graph0BarColorIIf (KMAgt0,5,4) Graph0BarColorIIf (Kgt0, colorGreen, colorRed) GraphXSpace5 Título Símbolo. Name () nThe Close is ngt WriteVal (abs (K), format1.2) WriteIf (Kgt0, acima, abaixo) o período 13 EMA E30 ((C-funE1 (C, 30,20)) funM1 (C, 30, 15)) 100 Titlegt WriteVal (abs (E30), format1.2) WriteIf (E30gt0, acima, abaixo) 30 EMA E50 ((C-funE1 (C, 50,35)) funM1 (C, 50,20)) 100 Titlegt WriteVal (abs (E50), formato1.2) WriteIf (E50gt0, acima, abaixo) 50 período EMA E200 ((C-funE1 (C, 200,114)) funM1 (C, 200,105)) 100 Titlegt WriteVal (abs (E200 ), Format1.2) WriteIf (E200gt0, acima, abaixo) 200 period EMAN SECTIONBEGIN (Preço) SetChartOptions (0, chartShowArrowschartShowDates) N (Título StrFormat (- Open g, Hi g, Lo g, Close g (.1f), O H, L, C, SelectedValue (ROC (C, 1)))) Plot (C, Close, ParamColor (Color, colorLightGrey), styleNoTitle ParamStyle (Estilo) GetPriceStyle ()) função GetSecondNum () Tempo agora (4) Segundos Int (Tempo 100) Minutos int (Tempo 100 100) Horas int (Tempo 10000 100) SecondNum int (Horas 60 60 Minutos 60 Segundos) return SecondNum RequestTimedRefresh (1) TimeFrame Interval () SecN Umber GetSecondNum () Newperiod SecNumber TimeFrame 0 SecsLeft SecNumber - int (SecNumber TimeFrame) TimeFrame SecsToGo TimeFrame - SecsLeft se (NewPeriod) Plot (1, colorYellow, styleArea styleOwnScale, 0, 1) time Tempo atual: Now (2) n Chart Interval : NumToStr (TimeFrame, 1.0) Secondsn Second Number: NumToStr (SecNumber, 1.0, False) n Segundos à esquerda: NumToStr (SecsLeft, 1.0, False) n Seconds To Go: NumToStr (SecsToGo, 1.0, False) GfxSetTextColor (colorBrown) GfxSelectFont ( Tahoma, 12,1200) GfxTextOut (Seconds To Go: NumToStr (SecsToGo, 1.0, False), 35, 200) pxwidth Status (pxwidth) pxheight Status (pxheight) chartwidth pxwidth-priceAxesWidth chartheight pxheight-dateAxesHeight topColorParamColor (topColor, colorCustom4) centerColorParamColor (CenterColor, ColorRGB (249,236,164)) botColorParamColor (BottomColor, colorCustom4) priceAxesColorParamColor (priceAxesColor, colorWhite) dateAxesColorParamColor (dateAxesColor, colorWhite) GfxSetBkMode (1) G FxSetOverlayMode (1) GfxGradientRect (0,0, chartwidth, TitleHeight, colorWhite, colorWhite) GfxGradientRect (chartwidth, 0, pxwidth, pxheight, priceAxesColor, priceAxesColor) GfxGradientRect (0, chartheight, chartwidth, pxheight, dateAxesColor, dateAxesColor) GfxGradientRect (x0, Y0, x1, y1, CenterColor, CenterColor) GfxGradientRect (0, TitleHeight, chartwidth, y0, topColor, CenterColor) GfxGradientRect (0, y1, chartwidth, chartheight, CenterColor, botColor) SECTIONBEGIN (Preço) SetChartBkGradientFill (ParamColor (BgTop, colorLightYellow),ParamColor(BgBottom, colorCustom4),ParamColor(Titleblock, colorLightYellow)) SetChartOptions(0,chartShowDateschartShowArrowschartLogarithmicchartWrapTitle) GraphXSpace 5 SECTIONBEGIN(Bollinger Bands) P ParamField(Price field,-1) Periods Param(Bollinger, 10, 2, 100, 1 ) Width Param(Width,0.55, 0, 10, 0.05 ) Plot(funBBTp(P, Periods, Width),BBTop, colorGreen, styleLinestyleThickstyleDots) Plot(funBBBt(P, Periods, Width),BBBot, colorBrown, styleLinestyleThickstyleDots) SECTIONEND() bt sParamToggle(BTS, NoYes ,1) btstParamToggle(DOT, NoYes ,1) btslParamToggle(Deep SL, NoYes ,1) periodParam(Period,7,1,20,1) x153 x247 d2.3 f7 s1.5 rangefunA1(f, f-d) Range1 funA1(f, f-s)d Range2 (funA1(f, d-s)s)4 range3funA1(10,s-f) R ((funH1(H, period, periods) - C) (funH1 (H, period, periodd) - funL1 (L, period, ds))) -100 E1 funE1(R, Period, x1x2) E2 funE1(E1,5,fs) Difference E1 - E2 ZeroLagE E1 Difference value2abs(ZeroLagE) function PercentR( periods ) return -100 ( funH1( H, periods, periodss) - C )( funH1( H, periods, periodsd ) - funL1( L, periods, ds ) ) PlotShapes( shapeSmallCircle (bts AND tm1 AND Ref(tm,-1)2),colorBlue, 0, bstop, -6 ) PlotShapes( shapeSmallCircle (bts AND tm2 AND Ref(tm,-1)1), colorCustom12, 0, sstop, -6 ) Plot(IIf(btsl AND tm1,bstop, Null),,colorDarkGreen, styleLinestyleThickstyleDots) Plot(IIf(btsl AND tm2,sstop, Null),,colorPink, styleLinestyleThickstyleDots) SECTIONEND() PCS funPC1(Z2) TCB funTC1(Z2) Buy Cond5B Sell Cond5S Buy ExRem(Buy, Sell) Sell ExRem(Sell, B uy) Filter Buy OR Sell printf(nEarnByNifty this commentary is automatically generated for information purpose.) WriteIf(bgt0,nThe last Automated Signal generated was a Buy Pnon Date()nLow. L,) WriteIf(sgt0,The last Automated Signal generated was a Sell Pnon Date()nHigh. H,) CondHB z2gtRef(z2,-1) CondHS Z2ltRef(Z2,1) PCRH funPC1(Z2) TCRH funTC1(Z2) TimeFrameRestore() WriteIf(CondHBgtCondHS, nThe Hourly Trend is BULLISH, Buy Signals may be more profitable, Act Cautiously on Sell Signals, WriteIf((CondHBltCondHS),The Hourly Trend is BEARISH, Sell Signals may be more profitable, Act Cautiously on Buy Signals,)) WriteIf(CondSR, nReversal of Hourly BEARISH Trend,) WriteIf(CondBR, Reversal of Hourly BULLISH Trend,) WriteIf(CondSR OR CondBR,,) printf() CondHB z2gtRef(z2,-1) CondHS Z2ltRef(Z2,1) PCR30 funPC1(Z2) TCR30 funTC1(Z2) CondSR30 TCR30 CondBR30 PCR30 TimeFrameRestore() ----------- Half Hourly - SUPPORT amp RESISTANCE ------------- dH1SelectedValue(TimeFrameGetPrice( H, 2in15Minute, -1 )) dL1SelectedValue(TimeFrameGetPrice( L, 2in15Minute, -1 )) dC1SelectedValue(TimeFrameGetPrice( C, 2in15Minute, -1 )) dp returnp(dH1,dL1,dC1)3 ds1 returns1r1(dp, dH1) dr1 r eturns1r1(dp, dL1) ds2 returns2s3(dp, dH1,dL1) ds3 returns2s3(dS1,dH1,dL1) dr2 returnr2r3(dp, dH1,dL1) dr3 returnr2r3(dR1,dH1,dL1) printf(nHalf Hourly Support amp Resistance. ) printf(nS1. WriteVal(ds1)) printf(nS2. WriteVal(ds2)) printf(nS3. WriteVal(ds3)) printf(nr1. WriteVal(dr1)) printf(nr2. WriteVal(dr2)) printf(nr3. WriteVal(dr3)) Plot(ds1,Daily Support 1,colorBrightGreen, styleLine) Plot(ds2,Daily Support 2,colorDarkGreen, styleLine) Plot(ds3,Daily Support 3,colorDarkGrey, styleLine) Plot(dr1,Daily Resistance 1,colorRed, styleLine) Plot(dr2,Daily Resistance 2,colorDarkRed, styleLine) Plot(dr3,Daily Resistance 3,colorBrown, styleLine) ----------- Hourly - SUPPORT amp RESISTANCE ------------- wH1SelectedValue(TimeFrameGetPrice( H, inHourly, -1 )) wL1SelectedValue(TimeFrameGetPrice( L, inHourly, -1 )) wC1SelectedValue(TimeFrameGetPrice( C, inHourly, -1 )) wp returnp(wH1,wL1,wC1)3 ws1 returns1r1(wp, wH1) wr1 returns1r1(wp, wL1) ws2 returns2s3(wp, wH1,wL1) ws3 returns2s3(wS1,wH1,wL1) wr2 returnr2r3(wp, wH1,wL1) wr3 returnr2r3(wR1,wH1,wL1) printf(nHourly Support amp Resistance. ) printf(nS1. WriteVal(ws1)) printf(nS2. WriteVal(ws2)) printf(nS3. WriteVal(ws3) ) printf(nr1. WriteVal(wr1)) printf(nr2. WriteVal(wr2)) printf(nr3. WriteVal(wr3)) ----------- Two Hourly - SUPPORT amp RESISTANCE ------------- mH1SelectedValue(TimeFrameGetPrice( H, 2inHourly, -1 )) mL1SelectedValue(TimeFrameGetPrice( L, 2inHourly, -1 )) mC1SelectedValue(TimeFrameGetPrice( C, 2inHourly, -1 )) mp returnp(mH1,mL1,mC1)3 ms1 returns1r1(mp, mH1) mr1 returns1r1(mp, mL1) ms2 returns2s3(mp, mH1,mL1) ms3 returns2s3(mS1,mH1,mL1) mr2 returnr2r3(mp, mH1,mL1) mr3 returnr2r3(mR1,mH1,mL1) printf(nTwo Hourly Support amp Resistance. ) printf(nS1. WriteVal(ms1)) printf(nS2. WriteVal(ms2)) printf(nS3. WriteVal(ms3)) printf(nr1. WriteVal(mr1)) printf(nr2. WriteVal(mr2)) printf(nr3. WriteVal(mr3)) Plot( 2,Hourly Trend, IIf( Flip(CondSR, CondBR), colorGreen, IIf( Flip(CondBR, CondSR), colorRed, colorOrange)),styleOwnScalestyleAreastyleNoLabel, -0.75, 100 ) Plot( 3.5,30min Trend, IIf( Flip(CondSR30,CondBR30), colorDarkBlue, IIf( Flip(CondBR30,CondSR30), colorTan, colorOrange)),styleOwnScalestyleAreastyl eNoLabel, -0.85, 100 ) Plot( 5,BuySell Ribbon, IIf( Flip(Buy, Sell), colorBrightGreen, IIf( Flip(Sell, Buy), colorPink, colorOrange )),styleOwnScalestyleAreastyleNoLabel, -0.75, 100 ) TimeFrameSet(in5Minute) shape Buy shapeUpTriangle Sell shapeDownTriangle PlotShapes( shape, IIf( Buy, colorGreen, colorRed ), IIf( Buy, Low, High ) ) TimeFrameRestore() 1 to 6 out of 6

No comments:

Post a Comment