// Downloaded From https://www.WiseStockTrader.com _SECTION_BEGIN(" "); fs=Param("font size",13,10,100,1); GfxSelectFont("french script mt", fs, 700, True ); GfxSetBkMode( colorRed ); GfxSetTextColor( ParamColor("color",colorYellow) ); GfxTextOut("H="+H+" ",340,0); GfxTextOut("O="+O+" ",240,0); GfxTextOut("L="+L+" ",440,0); GfxTextOut("C="+C+" " ,540,0); _SECTION_END(); _SECTION_BEGIN("Elliot Wave"); SetChartOptions(1, chartShowDates); // put dates at bottom of chart pr = Param("Elliot Wave minimum % move", 2, 1, 100); // Beginner Elliot Wave stuff EWpk = PeakBars(H, pr, 1) == 0; EWtr = TroughBars(L, pr, 1) == 0; // Intermediate Elliot Wave stuff zz = Zig(C, pr); zzHi = Zig(H, pr); zzLo = Zig(L, pr); Avg = (zzHi+zzLo)/2; // Advanced Elliot Wave stuff RetroSuccessSecret = IIf(EWpk, zzHi, IIf(EWtr, zzLo, IIf(Avg > Ref(Avg,-1), H, L))); EW = Zig(RetroSuccessSecret, pr); // Plot on price chart Plot(C, "Close", colorBrightGreen, styleCandle); Plot(EW, "EW", colorBlue, styleLine); // Plot buy and sell arrows Buy = TroughBars(EW, pr, 1) == 0; Sell = PeakBars(EW, pr, 1) ==0; Buy = ExRem(Buy, Sell); Sell = ExRem(Sell, Buy); PlotShapes( shapeSmallUpTriangle * Buy, colorBrightGreen, 0, Low ); PlotShapes( shapeSmallDownTriangle * Sell, colorRed, 0, High ); _SECTION_END(); _SECTION_BEGIN("Elliot Wave"); k = (GetPerformanceCounter()/100)%100; printf("GetPerformance Counter %g",k); GfxSelectFont("jokerman", 14,800); GfxSetBkMode(1); GfxSetTextColor(colorCustom12); GfxTextOut("Elliot Wave+Automatic Fib Levels",300+k,30); RequestTimedRefresh(10); _SECTION_END(); _SECTION_BEGIN("Automatic Fib Levels"); /*--------------------------------------------------- Automatic Fib Levels Aron Pipa, December, 11, 2005 modified by Kook 30 December 2005 --------------------------------------------------------*/ GraphXSpace=2; Plot(C,"", colorBlack,styleCandle|styleNoLabel); // Get values for fib levels StartBar=SelectedValue(BarIndex()); FinishBar = EndValue( BarIndex() ); i = startbar; period = FinishBar - StartBar; Lo =LLV(L,period); Hi = HHV(H,period); Line0 = 0; Line1 = 0; Line2 = 0; Line3 = 0; Line4 = 0; Line5 = 0; Line6 = 0; Line7 = 0; Line100 = 0; for( i = startbar; i < finishbar; i++ ) { if(EndValue(C)