Elliott Wave Trading System Para Amibroker


Elliott Wave Elliott A teoria da onda é uma das formas de análise técnica mais aceitas e amplamente utilizadas. Ele descreve o ritmo natural da psicologia da multidão no mercado, que se manifesta em ondas. A essência das ondas de Elliott é que os preços alternam entre fases impulsivas que estabelecem a tendência e as fases corretivas que retraçam a tendência. Na sua forma mais básica e direta, os impulsos contêm 5 ondas de grau inferior e as correções contêm 3 ondas de grau mais baixas. Elliott Wave é fractal e o padrão subjacente permanece constante. As 5 3 ondas definem um ciclo completo. As ondas podem formar padrões diferentes, como diagonais finais, planos expandidos, correções em ziguezague e triângulos. 15 diferentes graus de ondas podem ser identificados com cada uma das 5 ferramentas de desenho inteligente, permitindo aos usuários identificar visualmente diferentes graus de ondas em um gráfico. A chave para o comércio de ondas Elliott com êxito está contando-os corretamente para o qual existem regras e diretrizes. Existe um possível triângulo diagonal na onda v de (a) Olá a todos, temos a oportunidade de continuar esse par junto com outros pares JPY que publiquei hoje. Os alvos são destacados no gráfico. Para qualquer dúvida, deixe um comentário ou DM me. Good Luck alltradingideasoutlookelliott wave ELLIOT WAVE - Script Start ------- Opção ParamToggle (quotInsert Toquot, quotPrice ChartIndicatorquot) pr Param (quotElliot Wave minimum movequot, 2, 0.001,100) RetroSuccessSecretIIf (EWpk, zzHi, IIf (EWtr, ZzLo, IIf (AvggtRef (média, -1), H, L))) EWZig (RetroSuccessSecret, pr) se (Opção 0) Plot (EW, quotEWquot, ParamColor (quotColorquot, colorBrown), ParamStyle (quotStylequot, styleNoLabelstyleThick)) else Plot (EWbuy-EWsell, quotEW2quot, ParamColor (quotColorquot, colorRed), ParamStyle (quotStylequot, styleNoLabelstyleThick)) SECTIONBEGIN (quotColour Bar Chartquot) fora da barra H gt Ref (H, -1) E L lt Ref (L, -1) barra interna H lt Ref (H, -1) E L gt Ref (L, -1) barra ascendente H gt Ref (H, -1) E L gt Ref (L, -1) barra descendente L lt Ref (L, -1) E H lt Ref (H, -1) barcolor IIf (barra externa, colorBlue, IIf (downbar, colorRed, IIf (barra, colorGreen, IIf (barra interna, 11, colorBlack)))) Nome do título () quotcquot barcolor quot - Color Bar Chart. Quot WriteIf (Outsidebar, quotOutside Barquot, WriteIf (barra interna, quotInterno Barquot, WriteIf (barra, quotUp Barquot, WriteIf (barra de baixo, QuotDown Barquot, QuotNeutral Barquot)))) Traçar (Fechar, Título, barcolor, styleThick styleBar) SECTIONEND () SECTIONBEGIN (QuotBackgroundquot) SetChartOptions (0, chartShowArrowschartShowDates) se (ParamToggle (quotTooltip showsquot, quotAll ValuesOnly Pricesquot)) ToolTipStrFormat (quotOpen: gnHigh: gnLow: gnFechar: g (.1f) nVolume: quotNumToStr (V, 1), O, H, L , C, SelectedValue (ROC (C, 1))) SetChartBkColor (ParamColor (quotOuter panel color quot, colorBlack)) cor da borda externa SetChartBkGradientFill (ParamColor (quotInner painel de cores da parte superior do meio, colorDarkTeal), ParamColor (quotInner painel de cores inferior metade, ColorBlack) cor do painel interno, ParamColor (tipo de texto de texto, colorYellow)) SECTIONEND () Elliot Wave Single Loop SECTIONBEGIN (quotElliotwavequot) XBarIndex () pParam (quotpquot, 5,5,30,1) zZig (C, p) Plot ( C, quotCquot, 2,64) CONDPPeakBars (C, P) 0 SPCum (CONDP) EP1ValueQuando (CONDP, C, 1) TP1ValueWhen (CONDP, X, 1) EP2ValueWhen (CONDP, C, 2) TP2ValueWhen (CONDP, X, 2) EP3ValueWhen (CONDP, C, 3) TP3ValueWhen (CONDP, X, 3) EP4ValueQuando (CONDP, C, 4) TP4ValueQuando (CONDP, C, 4) TP4ValueWhen (CONDP, X, 4) CONDTTroughBars (C, P) 0STCum (CONDT) ET1ValueQuando (CONDT, C, 1) TT1ValueWhen (CONDT, X, 1) ET2ValueWhen (CONDT, C, (CONDT, X, 3) ET4ValueQuando (CONDT, X, 3) ET4ValueWhen (CONDT, C, 4) TT4ValueQuando (CONDT, X, 4) ET5ValueQuando (CONDT, C, 5), TT2ValueWhen (CONDT, C, 3) TT5ValueQuando (CONDT, X, 5) EW definição EW8EP3gtEP4 E EP2gtEP3 E EP2gtEP1 E ET4gtET5 E ET3gtET2 E ET2gtET1 E ET3gtET4 E ET4gtET5 E CONDT COLORcolorWhite PlotShapes (shapeDigit8EW8, cor) GCum (CONDP OU CONDT) GEWSelectedValue (ValueWhen (EW8, G)) para (N1nnnnn) PlotShapes ((49- (2n - (n2))) (GGEW-n E (n2) CONDP (-1n2) CONDT), Cor) Lote (EW8, quotquot, colorRed, 2styleOwnScale) Plot (z, quotquot, ColorYellow, styleThick) FilterEW8 explorar para todas as citações AddColumn (C, quotCquot) GraphXSpace8 SECTIONEND () SECTIONBEGIN (quotPricequot) SetChartOptions (0, c HartShowArrowschartShowDates) N (Título StrFormat (quot - Open g, Hi g, Lo g, Close g (.1f) quot, O, H, L, C, SelectedValue (ROC (C, 1)))) Plot (C, quotClosequot , ParamColor (quotColorquot, colorBlack), styleNoTitle ParamStyle (quotStylequot) GetPriceStyle ()) SECTIONEND () Elliot Wave Oscillator hBar EMA (C, 5) - EMA (C, 35) Plot (hBar, DEFAULTNAME (), IIf (hBargt0, ParamColor (QuotUp Colorquot, colorGreen), ParamColor (quotDown Colorquot, colorRed)), ParamStyle (quotStylequot, styleHistogram styleThick, maskHistogram)). Essas duas formas do mesmo indicador são projetadas para atuar como a perda de parada do candelabro como descrito por Barbara Rockefeller no quotTechnical Análise para Dummiesquot, e é escrito especialmente para uso com AmiBroker. Ela descreve a saída do Chandelier como um conjunto de dados de quotthe o mais alto alto ou o mais alto fechado, DESDE SUA ENTRADA. quot Para permitir que a saída do Chandelier para detê-lo, você oferece alguns dos intervalos média-verdadeiros (ATRs) do melhor preço que o estoque tem Alcançado desde a sua entrada. Só você sabe quando suas regras de negociação ditarão que você entrasse no comércio e, portanto, meu Chandelier Exit Preview aqui permite que você visualize a série de saída do Chandelier clicando na barra que a AmiBroker8217s back-testoptimize diz que você deve comprar. Se o seu RSI diz 8220buy8221 no dia 1 de junho, basta sobrepor a minha fórmula de saída do candelabro em seus dados de preços e clique na barra correspondente a 1 de junho. As três séries denominadas quotChand. Quot irá mudar a cada vez que você clicar em uma barra diferente. Assim, quando você clica na barra do 1 de junho, você obtém uma perda de parada de lustre especialmente projetada para comprar essa ação no dia 1 de junho. A segunda fórmula, a saída do candelabro, foi projetada para se adequar às suas fórmulas de negociação automáticas AmiBroker. Por que fazer tudo isso. 1) As paradas de arranque adaptativas permitem que você cristalize os lucros feitos. 2) A saída Chanderlier leva em consideração quando você comprou o estoque, tornando-o mais relevante. 3) Esta versão do AmiBroker permite que você aperfeiçoe quando o detê-lo para qualquer barra que seu sistema de negociação lhe diga. 4) Pode ser facilmente integrado em seus back-tests e otimizações automáticos AmiBroker. Como integrá-lo ao seu sistema comercial AmiBroker pessoal: Prefiro que sua fórmula de quotbuyquot seja simplesmente MA (Close, 10) gt O e sua fórmula quotsellquot é MA (Close, 10) lt 0 por simplicidade. Execute uma janela com o gráfico MA (Fechar, 10) para que você possa ver quando cruza zero e coloque outra janela com o preço e sobreponha com a fórmula de Chandelier Exit que você deseja usar. Se você usa o Chandelier Exit Preview, basta clicar em cada dia em que o MA (Close, 10) cruza zero e as linhas de saída do Candelabro apropriadas para o mais alto alto e o mais alto, e a menor baixa aparecerá. O ponto da prévia é que você pode clicar em qualquer dia e ver como a saída do candelabro se comportaria. Quanto à segunda, fórmula Chandelier Exit, basta copiar seu quotMA (Close, 10) gt Oquot e usá-lo para substituir o critério de quitação de ltyour. Em seguida, vá para o seu critério Sell e adicione quotORquot e copie o Graph1, Graph2 ou Graph3 apropriado, dependendo se a sua saída Chandelier deve usar o High (Graph1) ou Close (High) mais alto (Graph2) ou Lower Low (Graph3), na forma de QuotOR Cross (Graph1, Close) quot. Se você deseja otimizar os parâmetros quotATRPeriodsquot e quotMultiplequot, basta substituir quotParamquot por quotOptimizequot e executá-lo através da Análise automática. Essas duas formas do mesmo indicador são projetadas para atuar como a Perda de parada do candelabro, como descrito por Barbara Rockefeller na Análise Técnica para Dummiesquot, e está escrito especialmente para uso com AmiBroker. Ela descreve a saída do Chandelier como um conjunto de dados de quotthe o mais alto alto ou o mais alto fechado, DESDE SUA ENTRADA. quot Para permitir que a saída do Chandelier para detê-lo, você oferece alguns dos intervalos média-verdadeiros (ATRs) do melhor preço que o estoque tem Alcançado desde a sua entrada. Só você sabe quando suas regras de negociação ditarão que você entrasse no comércio e, portanto, meu Chandelier Exit Preview aqui permite que você visualize a série de saída do Chandelier clicando na barra que a AmiBroker8217s back-testoptimize diz que você deve comprar. Se o seu RSI diz 8220buy8221 no dia 1 de junho, basta sobrepor a minha fórmula de saída do candelabro em seus dados de preços e clique na barra correspondente a 1 de junho. As três séries denominadas quotChand. Quot irá mudar a cada vez que você clicar em uma barra diferente. Assim, quando você clica na barra do 1 de junho, você obtém uma perda de parada de lustre especialmente projetada para comprar essa ação no dia 1 de junho. A segunda fórmula, a saída do candelabro, foi projetada para se adequar às suas fórmulas de negociação automáticas AmiBroker. Por que fazer tudo isso. 1) As paradas de arranque adaptativas permitem que você cristalize os lucros feitos. 2) A saída Chanderlier leva em consideração quando você comprou o estoque, tornando-o mais relevante. 3) Esta versão do AmiBroker permite que você aperfeiçoe quando o detê-lo para qualquer barra que seu sistema de negociação lhe diga. 4) Pode ser facilmente integrado em seus back-tests e otimizações automáticos AmiBroker. Como integrá-lo ao seu sistema comercial AmiBroker pessoal: Prefiro que sua fórmula de quotbuyquot seja simplesmente MA (Close, 10) gt O e sua fórmula quotsellquot é MA (Close, 10) lt 0 por simplicidade. Execute uma janela com o gráfico MA (Fechar, 10) para que você possa ver quando cruza zero e coloque outra janela com o preço e sobreponha com a fórmula de Chandelier Exit que você deseja usar. Se você usa o Chandelier Exit Preview, basta clicar em cada dia em que o MA (Close, 10) cruza zero e as linhas de saída do Candelabro apropriadas para o mais alto alto e o mais alto, e a menor baixa aparecerá. O ponto da prévia é que você pode clicar em qualquer dia e ver como a saída do candelabro se comportaria. Quanto à segunda, fórmula Chandelier Exit, basta copiar seu quotMA (Close, 10) gt Oquot e usá-lo para substituir o critério de quitação de ltyour. Em seguida, vá para o seu critério Sell e adicione quotORquot e copie o Graph1, Graph2 ou Graph3 apropriado, dependendo se a sua saída Chandelier deve usar o High (Graph1) ou Close (High) mais alto (Graph2) ou Lower Low (Graph3), na forma de QuotOR Cross (Graph1, Close) quot. Se você deseja otimizar os parâmetros quotATRPeriodsquot e quotMultiplequot, basta substituir quotParamquot por quotOptimizequot e executá-lo através da Análise automática. ELLIOT Fractals SECTIONBEGIN (quotPricequot) SetChartOptions (0, chartShowArrowschartShowDates) N (Título StrFormat (quot - Open g, Hi g, Lo g, Close g (.1f) quot, O, H, L, C, SelectedValue (ROC (C, 1)))) Plot (C, quotClosequot, ParamColor (quotColorquot, colorBlack), styleCandle ParamStyle (quotStylequot) GetPriceStyle ()) Cole o código abaixo para o seu gráfico de preços em algum lugar e fita verde significa tanto MACD como ADX tendem para cima, então se o A fita vermelha mostra o MACD e o ADX está suspenso. SECTIONBEGIN (quotstending ribbonquot) uptrendPDI () gtMDI () E Sinal () ltMACD () downtrendMDI () gtPDI () E Sinal () gtMACD () Plot (2, define a altura da fita em percentagem da largura do painel quotribbonquot, IIf ( Tendência de alta, corGreen, IIf (tendência de queda, colorRed, 0)), escolha o estilo de corOwnScalestyleAreastyleNoLabel, -0,5, 100) SECTIONBEGIN (quotLEMAquot) P ParamField (quotPrice fieldquot, -1) Períodos Param (queriodsquot, 20, 2, 200, 1, 10 ) Lema EMA (Close, Periods) EMA ((Close-EMA (Close, Periods)), Periods) Plot (lEMA, DEFAULTNAME (), ParamColor (quotColorquot, colorCycle), ParamStyle (quotStylequot)) SECTIONEND () SECTIONBEGIN (quotELLIOTT Fractalsquot ) A definição básica de um fractal acima é uma barra alta que é tanto maior quanto as duas barras imediatamente anteriores e mais altas do que as duas barras que a seguem imediatamente. Os mínimos das barras não são considerados na determinação da progressão fractal acima. Se duas barras na progressão tiverem alturas iguais seguidas de duas barras consecutivas com níveis mais baixos, então um total de seis barras em vez das cinco barras usuais compõem a progressão. O primeiro High torna-se o fractal de contagem. Inverte para fractals fracos. A formação de 5 barras funciona melhor em gráficos de quadros de tempo diários ou mais. Para gráficos de dados intradiários, usamos geralmente formações de 9 bar, 13 bar e 21 bar para contagem fractal Up5BarFractal Ref (H, -2) lt H E Ref (H, -1 ) Lt H E Ref (H, 1) lt H E Ref (H, 2) lt H Up6BarFractal Ref (H, -2) lt H E Ref (H, -1) lt H E (H Ref (H, 1) ) E Ref (H, 2) lt H E Ref (H, 3) lt H Down5BarFractal Ref (L, -2) gt L E Ref (L, -1) gt L E Ref (L, 1) gt L E Ref (L, 2) gt L Down6BarFractal Ref (L, -2) gt L E Ref (L, -1) gt L E (L Ref (L, 1)) E Ref (L, 2) gt L E Ref (L , 3) gt L TODO: Mais filtragem: mostre apenas calhas que estão em torno de atrough em trix (9). PlotShapes (IIf (Down5BarFractal, shapeSmallUpTriangle, 0), ColorBlack, 0, L, -12) PlotShapes (IIf (Down6BarFractal, shapeSmallUpTriangle, 0), ColorBlack, 0, L, -12) PlotShapes (IIf (Up5BarFractal, shapeSmallDownTriangle, 0) , ColorBlack, 0, H, -12) PlotShapes (IIf (Up6BarFractal, shapeSmallDownTriangle, 0), ColorBlack, 0, H, -12) Up (Up5BarFractal OR Up6BarFractal) Down (Down5BarFractal OR Down6BarFractal) Removendo fractals falsos: DownSignal Flip (Ref (Up, -1), Ref (Down, -1)) UpSignal Flip (Ref (Down, -1), Ref (Up, -1)) LastHigh0 H0 LastLow0 L0 LastLowIndex 0 LastHighIndex 0 Válido 0 para (i1 i lt BarCount I) LastHighi LastHighi-1 LastLowi LastLowi-1 se (Upi) Validi True se Seqüência (DownSignali) de 2 Fractals Up. Valide apenas o mais alto. Validi Olá gt HLastHighIndex ValidLastHighIndex HLastHighIndex gt Oi LastHighi Max (Oi, HLastHighIndex) LastHighIndex i if (Downi) Validi Verdadeiro se (UpSignali) Seqüência de 2 Fractals Abaixados. Valide apenas o mais baixo. Validi Li lt LLastLowIndex ValidLastLowIndex LLastLowIndex lt Li LastLowi Min (Li, LLastLowIndex) LastLowIndex i TrixN Trix (9) TroughLow Ref (TrixN, -3) gt TrixN E Ref (TrixN, -2) gt TrixN E Ref (TrixN, -1) Gt TrixN E Ref (TrixN, 1) gt TrixN E Ref (TrixN, 2) gt TrixN E Ref (TrixN, 3) gt TrixN TroughHigh Ref (TrixN, -3) lt TrixN E Ref (TrixN, -2) lt TrixN E Ref (TrixN, -1) lt TrixN E Ref (TrixN, 1) lt TrixN E Ref (TrixN, 2) lt TrixN E Ref (TrixN, 3) lt TrixN TroughLow Ref (TrixN, -2) gt TrixN E Ref (TrixN , -1) gt TrixN E Ref (TrixN, 1) gt TrixN E Ref (TrixN, 2) gt TrixN TroughHigh Ref (TrixN, -2) lt TrixN E Ref (TrixN, -1) lt TrixN E Ref (TrixN, 1 ), E TrixN e Ref (TrixN, 2) lt TrixN ZeroValid Cross (TrixN, 0) OU Cross (0, TrixN) OU Ref (Cross (TrixN, 0), 1) OU Ref (Cross (0, TrixN), 1) ValidLow TroughLow OR Ref (TroughLow, 1) OU Ref (TroughLow, 2) OU Ref (Trough Low, 3) OU Ref (TroughLow, 4) OU Ref (TroughLow, 5)) ValidHigh TroughHigh OR Ref (TroughHigh, 1) OU Ref ( TroughHigh, 2) OU Ref (TroughHigh, 3) OU Ref (TroughHigh, 4) OU Ref (TroughHigh, 5)) Lote (LastHigh-10, quotLastHighquot, colorBlue, styleLine) Lote (LastLow-10, quotLastLow quot, colorRed, styleLine) Lote (Valid5 10, quotLastLow quot, colorGreen, styleLine styleThick) PlotShapes (IIf (Down AND Valid, shapeSmallUpTriangle, 0), colorGreen, 0, L, -12) PlotShapes (IIf (Up and Valid, shapeSmallDownTriangle, 0), colorRed, 0 , H, -12) Maxi Up AND (ValidHigh OR ZeroValid) Mini Down AND (ValidLow OR ZeroValid) PlotShapes (IIf (Down AND (ValidLow OR ZeroValid), shapeSmallUpTriangle, 0), ColorBlue, 0, L, -12) PlotShapes ( IIf (Up AND (ValidHigh OR ZeroValid), shapeSmallDownTriangle, 0), colorOrange, 0, H, -12) Plot (UpSignal35, quotUpSignalquot, colorBlue, styleLine styleThick) Plot (DownSignal3, quotDelSignalquot, ColorRed, StyleLine styleThick) LastMaxi 0 LastMini 0 ElliotLines 0 Estado 0 para (i1 i lt BarCount i) Statei Statei-1 se (Maxii) Statei 1down PlotShapes (IIf (Estado gt 0, shapeSmallCircle, 0), IIf (Estado 1, colo RRed, colorBlue), 0, IIf (Estado 1, H, L), -5) Linha LineArray (x0, y0, x1, y1, 1) Lote (Linha, quotTrend linequot, colorBlue) Onda B Normalmente 50 de Wave A Deveria Não exceda 75 da Wave A Wave C ou 1 x Wave A ou 1,62 x Wave A ou 2,62 x Wave A função CorrectiveRatios (StartPrice, A, B, C, RatioDelta, Delta) ALength abs (startPrice - A) BLength abs (AB) Comprimento de comprimento de compressão (BC) Ratio1 Comprimento de brida Comprimento de Condimento 1 Ração1 gt 0,5 - Razão e relação1 lt 0,75 RatioDelta Cond2 abs (Clength - ALength) lt Delta OU abs (Clength - 1,62 Comprimento) lt Delta OU abs (Comprimento de Comprimento - 2,62 Comprimento) lt Retorno Delta Cond1 E a função Cond2 ImpulseRules (StartPrice, One, Two, Three, Four, Five) Wave 2 deve estar abaixo do início da onda 1: Cond1 Two gt StartPrice E duas lt One Wave 4 - o mesmo: Cond2 Four gt Two E Four lt Three Wave 5 Deve ser a onda 3 Cond3 abs (três dois) gt abs (cinco a quatro) A onda 1 deve ser menor que a onda cinco, tornando a onda 3 a maior: Cond4 abs (StartPrice - One) lt abs (Five - Four) Retornar Cond1 E Cond2 E Cond3 E Cond4 SECTIONEND () Espero que você encontre algo que você poderia usar Última edição por Piyush Singh 4 de dezembro de 2008 às 12:22. Aqui estão alguns AFLs ELLIOT WAVE - Script Start ------- Opção ParamToggle (quotInsert Toquot, quotPrice ChartIndicatorquot) pr Param (quotElliot Wave minimum movequot, 2, 0.001,100) RetroSuccessSecretIIf (EWpk, zzHi, IIf (EWtr ZzLo, IIf (AvggtRef (média, -1), H, L))) EWZig (RetroSuccessSecret, pr) if (Option0) Plot (EW, quotEWquot, ParamColor (quotColorquot, colorBrown), ParamStyle (quotStylequot, styleNoLabelstyleThick)) Plot (EWbuy-EWsell, quotEW2quot, ParamColor (quotColorquot, colorRed), ParamStyle (quotStylequot, styleNoLabelstyleThick)) SECTIONBEGIN (quotColour Bar Chartquot) fora da barra H gt Ref (H, -1) E L lt Ref (L, -1) barra interna H Lt Ref (H, -1) E L gt Ref (L, -1) barra ascendente H gt Ref (H, -1) E L gt Ref (L, -1) downbar L lt Ref (L, -1) E H Lt Ref (H, -1) barcolor IIf (barra externa, colorBlue, IIf (barra de baixo, colorRed, IIf (barra, colorGreen, IIf (barra interna, 11, colorBlack)))) Nome do título () quotcquot barcolor quot - Color Bar Chart. Quot WriteIf (Outsidebar, quotOutside Barquot, WriteIf (barra interna, quotInterno Barquot, WriteIf (barra, quotUp Barquot, WriteIf (barra de baixo, QuotDown Barquot, QuotNeutral Barquot)))) Traçar (Fechar, Título, barcolor, styleThick styleBar) SECTIONEND () SECTIONBEGIN (QuotBackgroundquot) SetChartOptions (0, chartShowArrowschartShowDates) se (ParamToggle (quotTooltip showsquot, quotAll ValuesOnly Pricesquot)) ToolTipStrFormat (quotOpen: gnHigh: gnLow: gnFechar: g (.1f) nVolume: quotNumToStr (V, 1), O, H, L , C, SelectedValue (ROC (C, 1))) SetChartBkColor (ParamColor (quotOuter panel color quot, colorBlack)) cor da borda externa SetChartBkGradientFill (ParamColor (quotInner painel de cores da parte superior do meio, colorDarkTeal), ParamColor (quotInner painel de cores inferior metade, ColorBlack) cor do painel interno, ParamColor (tipo de texto de texto, colorYellow)) SECTIONEND () Elliot Wave Single Loop SECTIONBEGIN (quotElliotwavequot) XBarIndex () pParam (quotpquot, 5,5,30,1) zZig (C, p) Plot ( C, quotCquot, 2,64) CONDPPeakBars (C, P) 0 SPCum (CONDP) EP1ValueQuando (CONDP, C, 1) TP1ValueWhen (CONDP, X, 1) EP2ValueWhen (CONDP, C, 2) TP2ValueWhen (CONDP, X, 2) EP3ValueWhen (CONDP, C, 3) TP3ValueWhen (CONDP, X, 3) EP4ValueQuando (CONDP, C, 4) TP4ValueQuando (CONDP, C, 4) TP4ValueWhen (CONDP, X, 4) CONDTTroughBars (C, P) 0STCum (CONDT) ET1ValueQuando (CONDT, C, 1) TT1ValueWhen (CONDT, X, 1) ET2ValueWhen (CONDT, C, (CONDT, X, 3) ET4ValueQuando (CONDT, X, 3) ET4ValueWhen (CONDT, C, 4) TT4ValueQuando (CONDT, X, 4) ET5ValueQuando (CONDT, C, 5), TT2ValueWhen (CONDT, C, 3) TT5ValueQuando (CONDT, X, 5) EW definição EW8EP3gtEP4 E EP2gtEP3 E EP2gtEP1 E ET4gtET5 E ET3gtET2 E ET2gtET1 E ET3gtET4 E ET4gtET5 E CONDT COLORcolorWhite PlotShapes (shapeDigit8EW8, cor) GCum (CONDP OU CONDT) GEWSelectedValue (ValueWhen (EW8, G)) para (N1nnnnn) PlotShapes ((49- (2n - (n2))) (GGEW-n E (n2) CONDP (-1n2) CONDT), Cor) Lote (EW8, quotquot, colorRed, 2styleOwnScale) Plot (z, quotquot, ColorYellow, styleThick) FilterEW8 explorar para todas as citações AddColumn (C, quotCquot) GraphXSpace8 SECTIONEND () SECTIONBEGIN (quotPricequot) SetChartOptions (0, c HartShowArrowschartShowDates) N (Título StrFormat (quot - Open g, Hi g, Lo g, Close g (.1f) quot, O, H, L, C, SelectedValue (ROC (C, 1)))) Plot (C, quotClosequot , ParamColor (quotColorquot, colorBlack), styleNoTitle ParamStyle (quotStylequot) GetPriceStyle ()) SECTIONEND () Elliot Wave Oscillator hBar EMA (C, 5) - EMA (C, 35) Plot (hBar, DEFAULTNAME (), IIf (hBargt0, ParamColor (QuotUp Colorquot, colorGreen), ParamColor (quotDown Colorquot, colorRed)), ParamStyle (quotStylequot, styleHistogram styleThick, maskHistogram)). Essas duas formas do mesmo indicador são projetadas para atuar como a perda de parada do candelabro como descrito por Barbara Rockefeller no quotTechnical Análise para Dummiesquot, e é escrito especialmente para uso com AmiBroker. Ela descreve a saída do Chandelier como um conjunto de dados de quotthe o mais alto alto ou o mais alto fechado, DESDE SUA ENTRADA. quot Para permitir que a saída do Chandelier para detê-lo, você oferece alguns dos intervalos média-verdadeiros (ATRs) do melhor preço que o estoque tem Alcançado desde a sua entrada. Só você sabe quando suas regras de negociação ditarão que você entrasse no comércio e, portanto, a minha Exclamação de saída do candelabro aqui permite que você visualize a série de saída do Chandelier clicando na barra em que a AmiBrokers back-testoptimize diz que você deve comprar. Se o seu RSI diz comprar no dia 1 de junho, basta sobrepor a minha fórmula de saída do candelabro em seus dados de preços e clique na barra correspondente a 1 de junho. As três séries denominadas quotChand. Quot irá mudar a cada vez que você clicar em uma barra diferente. Assim, quando você clica na barra do 1 de junho, você obtém uma perda de parada de lustre especialmente projetada para comprar essa ação no dia 1 de junho. A segunda fórmula, a saída do candelabro, foi projetada para se adequar às suas fórmulas de negociação automáticas AmiBroker. Por que fazer tudo isso. 1) As paradas de arranque adaptativas permitem que você cristalize os lucros feitos. 2) A saída Chanderlier leva em consideração quando você comprou o estoque, tornando-o mais relevante. 3) Esta versão do AmiBroker permite que você aperfeiçoe quando o detê-lo para qualquer barra que seu sistema de negociação lhe diga. 4) Pode ser facilmente integrado em seus back-tests e otimizações automáticos AmiBroker. Como integrá-lo ao seu sistema comercial AmiBroker pessoal: Prefiro que sua fórmula de quotbuyquot seja simplesmente MA (Close, 10) gt O e sua fórmula quotsellquot é MA (Close, 10) lt 0 por simplicidade. Execute uma janela com o gráfico MA (Fechar, 10) para que você possa ver quando cruza zero e coloque outra janela com o preço e sobreponha com a fórmula de Chandelier Exit que você deseja usar. Se você usa o Chandelier Exit Preview, basta clicar em cada dia em que o MA (Close, 10) cruza zero e as linhas de saída do Candelabro apropriadas para o mais alto alto e o mais alto, e a menor baixa aparecerá. O ponto da prévia é que você pode clicar em qualquer dia e ver como a saída do candelabro se comportaria. Quanto à segunda, fórmula Chandelier Exit, basta copiar seu quotMA (Close, 10) gt Oquot e usá-lo para substituir o critério de quitação de ltyour. Em seguida, vá para o seu critério Sell e adicione quotORquot e copie o Graph1, Graph2 ou Graph3 apropriado, dependendo se a sua saída Chandelier deve usar o High (Graph1) ou Close (High) mais alto (Graph2) ou Lower Low (Graph3), na forma de QuotOR Cross (Graph1, Close) quot. Se você deseja otimizar os parâmetros quotATRPeriodsquot e quotMultiplequot, basta substituir quotParamquot por quotOptimizequot e executá-lo através da Análise automática. Essas duas formas do mesmo indicador são projetadas para atuar como a Perda de parada do candelabro, como descrito por Barbara Rockefeller na Análise Técnica para Dummiesquot, e está escrito especialmente para uso com AmiBroker. Ela descreve a saída do Chandelier como um conjunto de dados de quotthe o mais alto alto ou o mais alto fechado, DESDE SUA ENTRADA. quot Para permitir que a saída do Chandelier para detê-lo, você oferece alguns dos intervalos média-verdadeiros (ATRs) do melhor preço que o estoque tem Alcançado desde a sua entrada. Só você sabe quando suas regras de negociação ditarão que você entrasse no comércio e, portanto, a minha Exclamação de saída do candelabro aqui permite que você visualize a série de saída do Chandelier clicando na barra em que a AmiBrokers back-testoptimize diz que você deve comprar. Se o seu RSI diz comprar no dia 1 de junho, basta sobrepor a minha fórmula de saída do candelabro em seus dados de preços e clique na barra correspondente a 1 de junho. As três séries denominadas quotChand. Quot irá mudar a cada vez que você clicar em uma barra diferente. Assim, quando você clica na barra do 1 de junho, você obtém uma perda de parada de lustre especialmente projetada para comprar essa ação no dia 1 de junho. A segunda fórmula, a saída do candelabro, foi projetada para se adequar às suas fórmulas de negociação automáticas AmiBroker. Por que fazer tudo isso. 1) As paradas de arranque adaptativas permitem que você cristalize os lucros feitos. 2) A saída Chanderlier leva em consideração quando você comprou o estoque, tornando-o mais relevante. 3) Esta versão do AmiBroker permite que você aperfeiçoe quando o detê-lo para qualquer barra que seu sistema de negociação lhe diga. 4) Pode ser facilmente integrado em seus back-tests e otimizações automáticos AmiBroker. Como integrá-lo ao seu sistema comercial AmiBroker pessoal: Prefiro que sua fórmula de quotbuyquot seja simplesmente MA (Close, 10) gt O e sua fórmula quotsellquot é MA (Close, 10) lt 0 por simplicidade. Execute uma janela com o gráfico MA (Fechar, 10) para que você possa ver quando cruza zero e coloque outra janela com o preço e sobreponha com a fórmula de Chandelier Exit que você deseja usar. Se você usa o Chandelier Exit Preview, basta clicar em cada dia em que o MA (Close, 10) cruza zero e as linhas de saída do Candelabro apropriadas para o mais alto alto e o mais alto, e a menor baixa aparecerá. O ponto da prévia é que você pode clicar em qualquer dia e ver como a saída do candelabro se comportaria. Quanto à segunda, fórmula Chandelier Exit, basta copiar seu quotMA (Close, 10) gt Oquot e usá-lo para substituir o critério de quitação de ltyour. Em seguida, vá para o seu critério Sell e adicione quotORquot e copie o Graph1, Graph2 ou Graph3 apropriado, dependendo se a sua saída Chandelier deve usar o High (Graph1) ou Close (High) mais alto (Graph2) ou Lower Low (Graph3), na forma de QuotOR Cross (Graph1, Close) quot. Se você deseja otimizar os parâmetros quotATRPeriodsquot e quotMultiplequot, basta substituir quotParamquot por quotOptimizequot e executá-lo através da Análise automática. ELLIOT Fractals SECTIONBEGIN (quotPricequot) SetChartOptions (0, chartShowArrowschartShowDates) N (Título StrFormat (quot - Open g, Hi g, Lo g, Close g (.1f) quot, O, H, L, C, SelectedValue (ROC (C, 1)))) Plot (C, quotClosequot, ParamColor (quotColorquot, colorBlack), styleCandle ParamStyle (quotStylequot) GetPriceStyle ()) Cole o código abaixo para o seu gráfico de preços em algum lugar e fita verde significa tanto MACD como ADX tendem para cima, então se o A fita vermelha mostra o MACD e o ADX está suspenso. SECTIONBEGIN (quotstending ribbonquot) uptrendPDI () gtMDI () E Sinal () ltMACD () downtrendMDI () gtPDI () E Sinal () gtMACD () Plot (2, define a altura da fita em percentagem da largura do painel quotribbonquot, IIf ( Tendência de alta, corGreen, IIf (tendência de queda, colorRed, 0)), escolha o estilo de corOwnScalestyleAreastyleNoLabel, -0,5, 100) SECTIONBEGIN (quotLEMAquot) P ParamField (quotPrice fieldquot, -1) Períodos Param (queriodsquot, 20, 2, 200, 1, 10 ) Lema EMA (Close, Periods) EMA ((Close-EMA (Close, Periods)), Periods) Plot (lEMA, DEFAULTNAME (), ParamColor (quotColorquot, colorCycle), ParamStyle (quotStylequot)) SECTIONEND () SECTIONBEGIN (quotELLIOTT Fractalsquot ) A definição básica de um fractal acima é uma barra alta que é tanto maior quanto as duas barras imediatamente anteriores e mais altas do que as duas barras que a seguem imediatamente. Os mínimos das barras não são considerados na determinação da progressão fractal acima. Se duas barras na progressão tiverem alturas iguais seguidas de duas barras consecutivas com níveis mais baixos, então um total de seis barras em vez das cinco barras usuais compõem a progressão. O primeiro High torna-se o fractal de contagem. Inverte para fractals fracos. A formação de 5 barras funciona melhor em gráficos de quadros de tempo diários ou mais. Para gráficos de dados intradiários, usamos geralmente formações de 9 bar, 13 bar e 21 bar para contagem fractal Up5BarFractal Ref (H, -2) lt H E Ref (H, -1 ) Lt H E Ref (H, 1) lt H E Ref (H, 2) lt H Up6BarFractal Ref (H, -2) lt H E Ref (H, -1) lt H E (H Ref (H, 1) ) E Ref (H, 2) lt H E Ref (H, 3) lt H Down5BarFractal Ref (L, -2) gt L E Ref (L, -1) gt L E Ref (L, 1) gt L E Ref (L, 2) gt L Down6BarFractal Ref (L, -2) gt L E Ref (L, -1) gt L E (L Ref (L, 1)) E Ref (L, 2) gt L E Ref (L , 3) gt L TODO: Mais filtragem: mostre apenas calhas que estão em torno de atrough em trix (9). PlotShapes (IIf (Down5BarFractal, shapeSmallUpTriangle, 0), ColorBlack, 0, L, -12) PlotShapes (IIf (Down6BarFractal, shapeSmallUpTriangle, 0), ColorBlack, 0, L, -12) PlotShapes (IIf (Up5BarFractal, shapeSmallDownTriangle, 0) , ColorBlack, 0, H, -12) PlotShapes (IIf (Up6BarFractal, shapeSmallDownTriangle, 0), ColorBlack, 0, H, -12) Up (Up5BarFractal OR Up6BarFractal) Down (Down5BarFractal OR Down6BarFractal) Removendo fractals falsos: DownSignal Flip (Ref (Up, -1), Ref (Down, -1)) UpSignal Flip (Ref (Down, -1), Ref (Up, -1)) LastHigh0 H0 LastLow0 L0 LastLowIndex 0 LastHighIndex 0 Válido 0 para (i1 i lt BarCount I) LastHighi LastHighi-1 LastLowi LastLowi-1 se (Upi) Validi True se Seqüência (DownSignali) de 2 Fractals Up. Valide apenas o mais alto. Validi Olá gt HLastHighIndex ValidLastHighIndex HLastHighIndex gt Oi LastHighi Max (Oi, HLastHighIndex) LastHighIndex i if (Downi) Validi Verdadeiro se (UpSignali) Seqüência de 2 Fractals Abaixados. Valide apenas o mais baixo. Validi Li lt LLastLowIndex ValidLastLowIndex LLastLowIndex lt Li LastLowi Min (Li, LLastLowIndex) LastLowIndex i TrixN Trix (9) TroughLow Ref (TrixN, -3) gt TrixN E Ref (TrixN, -2) gt TrixN E Ref (TrixN, -1) Gt TrixN E Ref (TrixN, 1) gt TrixN E Ref (TrixN, 2) gt TrixN E Ref (TrixN, 3) gt TrixN TroughHigh Ref (TrixN, -3) lt TrixN E Ref (TrixN, -2) lt TrixN E Ref (TrixN, -1) lt TrixN E Ref (TrixN, 1) lt TrixN E Ref (TrixN, 2) lt TrixN E Ref (TrixN, 3) lt TrixN TroughLow Ref (TrixN, -2) gt TrixN E Ref (TrixN , -1) gt TrixN E Ref (TrixN, 1) gt TrixN E Ref (TrixN, 2) gt TrixN TroughHigh Ref (TrixN, -2) lt TrixN E Ref (TrixN, -1) lt TrixN E Ref (TrixN, 1 ), E TrixN e Ref (TrixN, 2) lt TrixN ZeroValid Cross (TrixN, 0) OU Cross (0, TrixN) OU Ref (Cross (TrixN, 0), 1) OU Ref (Cross (0, TrixN), 1) ValidLow TroughLow OR Ref (TroughLow, 1) OU Ref (TroughLow, 2) OU Ref (Trough Low, 3) OU Ref (TroughLow, 4) OU Ref (TroughLow, 5)) ValidHigh TroughHigh OR Ref (TroughHigh, 1) OU Ref ( TroughHigh, 2) OU Ref (TroughHigh, 3) OU Ref (TroughHigh, 4) OU Ref (TroughHigh, 5)) Lote (LastHigh-10, quotLastHighquot, colorBlue, styleLine) Lote (LastLow-10, quotLastLow quot, colorRed, styleLine) Lote (Valid5 10,quotLastLow quot, colorGreen, styleLine styleThick) PlotShapes( IIf(Down AND Valid, shapeSmallUpTriangle,0),colorGreen, 0, L,-12) PlotShapes( IIf(Up AND Valid, shapeSmallDownTriangle,0),colorRed, 0 , H,-12) Maxi Up AND (ValidHigh OR ZeroValid) Mini Down AND (ValidLow OR ZeroValid) PlotShapes( IIf(Down AND (ValidLow OR ZeroValid),shapeSmallUpTriangle,0),colorBlue, 0, L,-12) PlotShapes( IIf(Up AND (ValidHigh OR ZeroValid),shapeSmallDownTriangle,0),colorOrange, 0, H,-12) Plot(UpSignal35,quotUpSignalquot, colorBlue, styleLine styleThick) Plot(DownSignal3,quotDownSignalquot, colorRed, styleLine styleThick) LastMaxi 0 LastMini 0 ElliotLines 0 State 0 for (i1 i lt BarCount i) Statei Statei-1 if (Maxii) Statei 1down PlotShapes(IIf(State gt 0, shapeSmallCircle, 0), IIf(State 1, colo rRed, colorBlue), 0, IIf(State 1, H, L), -5) Line LineArray( x0, y0, x1, y1, 1 ) Plot( Line, quotTrend linequot, colorBlue ) Wave B Usually 50 of Wave A Should not exceed 75 of Wave A Wave C either 1 x Wave A or 1.62 x Wave A or 2.62 x Wave A function CorrectiveRatios(StartPrice, A, B, C, RatioDelta, Delta) ALength abs(startPrice - A) BLength abs(A-B) CLength abs(B-C) Ratio1 BLength CLength Cond1 Ration1 gt 0.5 - RatioDelta AND ratio1 lt 0.75 RatioDelta Cond2 abs(Clength - ALength) lt Delta OR abs(Clength - 1.62 ALength) lt Delta OR abs(CLength - 2.62 ALength) lt Delta return Cond1 AND Cond2 function ImpulseRules(StartPrice, One, Two, Three, Four, Five) Wave 2 should be beneath wave 1 start: Cond1 Two gt StartPrice AND Two lt One Wave 4 - the same: Cond2 Four gt Two AND Four lt Three Wave 5 should be lt wave 3 Cond3 abs(Three-Two) gt abs(Five - Four) Wave 1 should be smaller than wave five, making wave 3 the biggest: Cond4 abs(StartPrice - One) lt abs(Five - Four) return Cond1 AND Cond2 AND Cond3 AND Cond4 SECTIONEND() Hope u find something u could use Thanks for the code, I need buy sell indicators, see screen print. wonderful code ELLIOT WAVE -- Script Start ------- Option ParamToggle(quotInsert Toquot, quotPrice ChartIndicatorquot) prParam(quotElliot Wave minimum movequot,2, 0.001,100) RetroSuccessSecretIIf(EWpk, zzHi, IIf(EWtr, zzLo, IIf(AvggtRef(Avg,-1),H, L))) EWZig(RetroSuccessSecret, pr) if (Option0) Plot(EW, quotEWquot, ParamColor(quotColorquot, colorBrown), ParamStyle(quotStylequot, styleNoLabelstyleThick)) else Plot(EWbuy-EWsell, quotEW2quot, ParamColor(quotColorquot, colorRed), ParamStyle(quotStylequot, styleNoLabelstyleThick)) SECTIONBEGIN(quotColour Bar Chartquot) outsidebar H gt Ref( H, -1 ) AND L lt Ref( L, -1 ) insidebar H lt Ref( H, -1 ) AND L gt Ref( L, -1 ) upbar H gt Ref( H, -1 ) AND L gt Ref( L, -1 ) downbar L lt Ref( L, -1 ) AND H lt Ref( H, -1 ) barcolor IIf(outsidebar, colorBlue, IIf(downbar, colorRed, IIf(upbar, colorGreen, IIf(insidebar, 11, colorBlack) ) ) ) Title Name() quotcquot barcolor quot - Color Bar Chart. quot WriteIf(Outsidebar, quotOutside Barquot, WriteIf(insidebar, quotInside Barquot, WriteIf(upbar, quotUp Barquot, WriteIf(downbar, quotDown Barquot, quotNeutral Barquot) ) ) ) Plot(Close, Title, barcolor, styleThick styleBar) SECTIONEND() SECTIONBEGIN(quotBackgroundquot) SetChartOptions(0,chartShowArrowschartShowDates) if( ParamToggle(quotTooltip showsquot, quotAll ValuesOnly Pricesquot ) ) ToolTipStrFormat(quotOpen: gnHigh: gnLow: gnClose: g (.1f)nVolume: quotNumToStr( V, 1 ), O, H, L, C, SelectedValue( ROC( C, 1 ))) SetChartBkColor(ParamColor(quotOuter panel color quot, colorBlack)) color of outer border SetChartBkGradientFill( ParamColor(quotInner panel color upper halfquot, colorDarkTeal), ParamColor(quotInner panel color lower halfquot, colorBlack)color of inner panel, ParamColor(quotbehind Text Colorquot, colorYellow)) SECTIONEND() Elliot Wave Single Loop SECTIONBEGIN(quotElliotwavequot) XBarIndex() pParam(quotpquot,5,5,30,1) zZig(C, p)Plot(C, quotCquot,2,64) CONDPPeakBars(C, P)0 SPCum(CONDP) EP1ValueWhen(CONDP, C,1)TP1ValueWhen(CONDP, X,1) EP2ValueWhen(CONDP, C,2)TP2ValueWhen(CONDP, X,2) EP3ValueWhen(CONDP, C,3)TP3ValueWhen(CONDP, X,3) EP4ValueWhen(CONDP, C,4)TP4ValueWhen(CONDP, X,4) CONDTTroughBars(C, P)0STCum(CONDT) ET1ValueWhen(CONDT, C,1)TT1ValueWhen(CONDT, X,1) ET2ValueWhen(CONDT, C,2)TT2ValueWhen(CONDT, X,2) ET3ValueWhen(CONDT, C,3)TT3ValueWhen(CONDT, X,3) ET4ValueWhen(CONDT, C,4)TT4ValueWhen(CONDT, X,4) ET5ValueWhen(CONDT, C,5)TT5ValueWhen(CONDT, X,5) EW definition EW8EP3gtEP4 AND EP2gtEP3 AND EP2gtEP1 AND ET4gtET5 AND ET3gtET2 AND ET2gtET1 AND ET3gtET4 AND ET4gtET5 AND CONDT COLORcolorWhite PlotShapes(shapeDigit8EW8,color) GCum(CONDP OR CONDT) GEWSelectedValue(ValueWhen(EW8,G)) for(n1nlt9n) PlotShapes((49-(2n-(n2)))(GGEW-n AND (n2)CONDP(-1n2) CONDT),Color) Plot(EW8,quotquot, colorRed,2styleOwnScale) Plot(z, quotquot, colorYellow, styleThick) FilterEW8 explore for all quotations AddColumn(C, quotCquot) GraphXSpace8 SECTIONEND() SECTIONBEGIN(quotPricequot) SetChartOptions(0,c hartShowArrowschartShowDates) N(Title StrFormat(quot - Open g, Hi g, Lo g, Close g (.1f) quot, O, H, L, C, SelectedValue( ROC( C, 1 ) ) )) Plot( C, quotClosequot, ParamColor(quotColorquot, colorBlack ), styleNoTitle ParamStyle(quotStylequot) GetPriceStyle() ) SECTIONEND() Elliot Wave Oscillator hBar EMA(C,5)- EMA(C,35) Plot(hBar, DEFAULTNAME(), IIf(hBargt0, ParamColor(quotUp Colorquot, colorGreen), ParamColor(quotDown Colorquot, colorRed)), ParamStyle( quotStylequot, styleHistogram styleThick, maskHistogram ) ) These two forms of the same indicator are designed to act as the Chandelier Exit stop loss as described by Barbara Rockefeller in quotTechnical Analysis for Dummiesquot, and is written especially for use with AmiBroker. She describes the Chandelier exit as a dataset of quotthe highest high or the highest close SINCE YOUR ENTRY. quot To allow the Chandelier exit to stop you out gives you a couple of average-true-ranges (ATRs) from the best price the stock has reached SINCE YOUR ENTRY. Only you know when your trading rules will dictate that you enter the trade, and so my Chandelier Exit Preview here allows you to preview the Chandelier exit series by clicking on the bar that AmiBroker39s back-testoptimize says you should buy on. If your RSI says quotbuyquot on the 1st of June, simply overlay my Chandelier Exit formula onto your price data, and click on the bar corresponding to the 1st of June. The three series named quotChand. quot will change each time you click a different bar. Thus when you click the 1st of June bar, you get a Chandelier Exit stop loss especially designed for buying that stock on the 1st of June. The second formula, the Chandelier Exit, is designed to fit into your automated AmiBroker trading formulae. Why do all this. 1) Adaptive trailing stops allow you to crystallize profits made. 2) The Chanderlier Exit takes into account when you bought the stock, making it more relevant. 3) This AmiBroker version allows you to preview when it would stop you out for any bar that your trading system tells you. 4) It can be fairly easily integrated into your automated AmiBroker back-tests and optimizations. How to integrate it into your personal AmiBroker trading system: Pretend your quotbuyquot formula is simply MA(Close, 10) gt O and your quotsellquot formula is MA(Close, 10) lt 0 for simplicity. Run a window with the MA(Close, 10) graph so you can see when it crosses zero, and place another window with the price, and overlay with the Chandelier Exit formula you wish to use. If you use Chandelier Exit Preview, simply click on each day when the MA(Close, 10) crosses zero, and the appropriate Chandelier exit lines for the highest High and Close, and lowest Low will appear. The point of the Preview is that you can click on any day and see how the Chandelier exit would behave. As for the second, Chandelier Exit formula, simply copy your quotMA(Close, 10) gt Oquot and use it to replace the ltyour quotbuyquot criteriongt. Then go to your Sell criterion and add quotORquot then copy the appropriate Graph1, Graph2 or Graph3 depending on whether your Chandelier Exit should use the highest High (Graph1) or Close (Graph2) or lowest Low (Graph3), in the form of quotOR Cross(Graph1, Close)quot. If you wish to optimize the quotATRPeriodsquot and quotMultiplequot paramaters, simply replace quotParamquot with quotOptimizequot and run it through the Automatic Analysis. These two forms of the same indicator are designed to act as the Chandelier Exit stop loss as described by Barbara Rockefeller in quotTechnical Analysis for Dummiesquot, and is written especially for use with AmiBroker. She describes the Chandelier exit as a dataset of quotthe highest high or the highest close SINCE YOUR ENTRY. quot To allow the Chandelier exit to stop you out gives you a couple of average-true-ranges (ATRs) from the best price the stock has reached SINCE YOUR ENTRY. Only you know when your trading rules will dictate that you enter the trade, and so my Chandelier Exit Preview here allows you to preview the Chandelier exit series by clicking on the bar that AmiBroker39s back-testoptimize says you should buy on. If your RSI says quotbuyquot on the 1st of June, simply overlay my Chandelier Exit formula onto your price data, and click on the bar corresponding to the 1st of June. The three series named quotChand. quot will change each time you click a different bar. Thus when you click the 1st of June bar, you get a Chandelier Exit stop loss especially designed for buying that stock on the 1st of June. The second formula, the Chandelier Exit, is designed to fit into your automated AmiBroker trading formulae. Why do all this. 1) Adaptive trailing stops allow you to crystallize profits made. 2) The Chanderlier Exit takes into account when you bought the stock, making it more relevant. 3) This AmiBroker version allows you to preview when it would stop you out for any bar that your trading system tells you. 4) It can be fairly easily integrated into your automated AmiBroker back-tests and optimizations. How to integrate it into your personal AmiBroker trading system: Pretend your quotbuyquot formula is simply MA(Close, 10) gt O and your quotsellquot formula is MA(Close, 10) lt 0 for simplicity. Run a window with the MA(Close, 10) graph so you can see when it crosses zero, and place another window with the price, and overlay with the Chandelier Exit formula you wish to use. If you use Chandelier Exit Preview, simply click on each day when the MA(Close, 10) crosses zero, and the appropriate Chandelier exit lines for the highest High and Close, and lowest Low will appear. The point of the Preview is that you can click on any day and see how the Chandelier exit would behave. As for the second, Chandelier Exit formula, simply copy your quotMA(Close, 10) gt Oquot and use it to replace the ltyour quotbuyquot criteriongt. Then go to your Sell criterion and add quotORquot then copy the appropriate Graph1, Graph2 or Graph3 depending on whether your Chandelier Exit should use the highest High (Graph1) or Close (Graph2) or lowest Low (Graph3), in the form of quotOR Cross(Graph1, Close)quot. If you wish to optimize the quotATRPeriodsquot and quotMultiplequot paramaters, simply replace quotParamquot with quotOptimizequot and run it through the Automatic Analysis. ELLIOT Fractals SECTIONBEGIN(quotPricequot) SetChartOptions(0,chartShowArrowschartShowDates) N(Title StrFormat(quot - Open g, Hi g, Lo g, Close g (.1f) quot, O, H, L, C, SelectedValue( ROC( C, 1 ) ) )) Plot( C, quotClosequot, ParamColor(quotColorquot, colorBlack ), styleCandle ParamStyle(quotStylequot) GetPriceStyle() ) Paste the code below to your price chart somewhere and green ribbon means both both MACD and ADX trending up so if the red ribbon shows up the MACD and the ADX are both trending down. SECTIONBEGIN(quottrending ribbonquot) uptrendPDI()gtMDI()AND Signal()ltMACD() downtrendMDI()gtPDI()AND Signal()gtMACD() Plot( 2, defines the height of the ribbon in percent of pane width quotribbonquot, IIf( uptrend, colorGreen, IIf( downtrend, colorRed, 0 )), choose color styleOwnScalestyleAreastyleNoLabel, -0.5, 100 ) SECTIONBEGIN(quotLEMAquot) P ParamField(quotPrice fieldquot,-1) Periods Param(quotPeriodsquot, 20, 2, 200, 1, 10 ) lema EMA (Close, Periods) EMA((Close-EMA(Close, Periods)),Periods) Plot( lEMA, DEFAULTNAME(), ParamColor( quotColorquot, colorCycle ), ParamStyle(quotStylequot) ) SECTIONEND() SECTIONBEGIN(quotELLIOTT Fractalsquot) The basic definition of an 39up39 fractal is a bar high that is both higher than the two bars immediately preceding it and higher than the two bars immediately following it. The lows of the bars are NOT considered in determining the up fractal progression. If two bars in the progression have equal highs followed by two consecutive bars with lower highs, then a total of six bars rather than the usual five bars will make up the progression. The first High becomes the counting fractal. Reverse for 39down39 fractals. The 5 bar formation works best on Daily or longer time frame charts. For intraday data charts we often use 9 bar, 13 bar and 21 bar formations for fractal counting Up5BarFractal Ref(H,-2) lt H AND Ref(H,-1) lt H AND Ref(H,1) lt H AND Ref(H,2) lt H Up6BarFractal Ref(H,-2) lt H AND Ref(H,-1) lt H AND (H Ref(H,1)) AND Ref(H,2) lt H AND Ref(H,3) lt H Down5BarFractal Ref(L,-2) gt L AND Ref(L,-1) gt L AND Ref(L,1) gt L AND Ref(L,2) gt L Down6BarFractal Ref(L,-2) gt L AND Ref(L,-1) gt L AND (L Ref(L,1)) AND Ref(L,2) gt L AND Ref(L,3) gt L TODO: More filtering: Show only troughs that are around atrough in trix(9). PlotShapes( IIf(Down5BarFractal, shapeSmallUpTriangle,0),colorBlack, 0, L,-12) PlotShapes( IIf(Down6BarFractal, shapeSmallUpTriangle,0),colorBlack, 0, L,-12) PlotShapes( IIf(Up5BarFractal, shapeSmallDownTriangle,0),colorBlack, 0, H,-12) PlotShapes( IIf(Up6BarFractal, shapeSmallDownTriangle,0),colorBlack, 0, H,-12) Up (Up5BarFractal OR Up6BarFractal) Down (Down5BarFractal OR Down6BarFractal) Removing false fractals: DownSignal Flip(Ref(Up,-1), Ref(Down,-1)) UpSignal Flip(Ref(Down,-1), Ref(Up,-1)) LastHigh0 H0 LastLow0 L0 LastLowIndex 0 LastHighIndex 0 Valid 0 for (i1 i lt BarCount i) LastHighi LastHighi-1 LastLowi LastLowi-1 if (Upi) Validi True if (DownSignali) Sequence of 2 Up Fractals. Validate only the higher one. Validi Hi gt HLastHighIndex ValidLastHighIndex HLastHighIndex gt Hi LastHighi Max(Hi, HLastHighIndex ) LastHighIndex i if (Downi) Validi True if (UpSignali) Sequence of 2 Down Fractals. Validate only the lower one. Validi Li lt LLastLowIndex ValidLastLowIndex LLastLowIndex lt Li LastLowi Min(Li, LLastLowIndex) LastLowIndex i TrixN Trix(9) TroughLow Ref(TrixN, -3) gt TrixN AND Ref(TrixN, -2) gt TrixN AND Ref(TrixN, -1) gt TrixN AND Ref(TrixN, 1) gt TrixN AND Ref(TrixN, 2) gt TrixN AND Ref(TrixN, 3) gt TrixN TroughHigh Ref(TrixN, -3) lt TrixN AND Ref(TrixN, -2) lt TrixN AND Ref(TrixN, -1) lt TrixN AND Ref(TrixN, 1) lt TrixN AND Ref(TrixN, 2) lt TrixN AND Ref(TrixN, 3) lt TrixN TroughLow Ref(TrixN, -2) gt TrixN AND Ref(TrixN, -1) gt TrixN AND Ref(TrixN, 1) gt TrixN AND Ref(TrixN, 2) gt TrixN TroughHigh Ref(TrixN, -2) lt TrixN AND Ref(TrixN, -1) lt TrixN AND Ref(TrixN, 1) lt TrixN AND Ref(TrixN, 2) lt TrixN ZeroValid Cross(TrixN, 0) OR Cross(0, TrixN) OR Ref(Cross(TrixN, 0),1) OR Ref(Cross(0, TrixN),1) ValidLow TroughLow OR Ref(TroughLow, 1) OR Ref(TroughLow, 2) OR Ref(TroughLow, 3) OR Ref(TroughLow, 4) OR Ref(TroughLow, 5)) ValidHigh TroughHigh OR Ref(TroughHigh, 1) OR Ref(TroughHigh, 2) OR Ref(TroughHigh, 3) OR Ref(TroughHigh, 4) OR Ref(TroughHigh, 5)) Plot(LastHigh-10,quotLastHighquot, colorBlue, styleLine) Plot(LastLow-10,quotLastLow quot, colorRed, styleLine) Plot(Valid5 10,quotLastLow quot, colorGreen, styleLine styleThick) PlotShapes( IIf(Down AND Valid, shapeSmallUpTriangle,0),colorGreen, 0, L,-12) PlotShapes( IIf(Up AND Valid, shapeSmallDownTriangle,0),colorRed, 0, H,-12) Maxi Up AND (ValidHigh OR ZeroValid) Mini Down AND (ValidLow OR ZeroValid) PlotShapes( IIf(Down AND (ValidLow OR ZeroValid),shapeSmallUpTriangle,0),colorBlue, 0, L,-12) PlotShapes( IIf(Up AND (ValidHigh OR ZeroValid),shapeSmallDownTriangle,0),colorOrange, 0, H,-12) Plot(UpSignal35,quotUpSignalquot, colorBlue, styleLine styleThick) Plot(DownSignal3,quotDownSignalquot, colorRed, styleLine styleThick) PlotShapes(IIf(State gt 0, shapeSmallCircle, 0), IIf(State 1, colorRed, colorBlue), 0, IIf(State 1, H, L), -5) Line LineArray( x0, y0, x1, y1, 1 ) Plot( Line, quotTrend linequot, c olorBlue ) Wave B Usually 50 of Wave A Should not exceed 75 of Wave A Wave C either 1 x Wave A or 1.62 x Wave A or 2.62 x Wave A function CorrectiveRatios(StartPrice, A, B, C, RatioDelta, Delta) ALength abs(startPrice - A) BLength abs(A-B) CLength abs(B-C) Ratio1 BLength CLength Cond1 Ration1 gt 0.5 - RatioDelta AND ratio1 lt 0.75 RatioDelta Cond2 abs(Clength - ALength) lt Delta OR abs(Clength - 1.62 ALength) lt Delta OR abs(CLength - 2.62 ALength) lt Delta return Cond1 AND Cond2 function ImpulseRules(StartPrice, One, Two, Three, Four, Five) Wave 2 should be beneath wave 1 start: Cond1 Two gt StartPrice AND Two lt One Wave 4 - the same: Cond2 Four gt Two AND Four lt Three Wave 5 should be lt wave 3 Cond3 abs(Three-Two) gt abs(Five - Four) Wave 1 should be smaller than wave five, making wave 3 the biggest: Cond4 abs(StartPrice - One) lt abs(Five - Four) return Cond1 AND Cond2 AND Cond3 AND Cond4 SECTIONEND() Dengan Hormat Para Senior Ambroker, Sy menemukan elliot wave afl di internet cuman ada syntax error yg sy gak bisa benerin karena gaptek nih. Apa ada yg bisa bantu spy bisa jalan afl nya. Apabila anda membutuhkan software Amibroker, Realtime Data amp pelatihan silahkan visit amibroker-4-bei. org Berikut adalah beberapa jadwal pelatihan amibroker dalam waktu dekat: Sabtu, 20 Feb 2010. Advance Trading System amp AmiBroker Formula language (AFL) Yahoo Groups Links ltgt Your email settings: Individual Email Traditional

Comments

Popular posts from this blog

O Comércio De Forex Na Índia É Legal

Taxa De Ouro Forex Em Dubai

Calendário De Caducidade De Opções De Troca