// Downloaded From https://www.WiseStockTrader.com _SECTION_BEGIN("Fib_Levels"); /*--------------------------------------------------- Automatic Fib Levels Aron Pipa, December, 11, 2005 --------------------------------------------------------*/ SetChartOptions(0,chartShowArrows|chartShowDates); Plot(MA(Close,3),"",IIf(MA(C,3) > Ref(MA(C,3),-1),colorGreen,colorRed),styleThick); Plot(C,"", IIf(PDI(7) > MDI(7),colorGreen,colorRed) , styleCandle); //_SECTION_BEGIN("fib"); // 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; Line100 = 0; for( i = startbar; i < finishbar; i++ ) { if(EndValue(C) MDI(7) AND PDI(7) > 30,colorGreen,IIf (MDI(7) > PDI(7) AND MDI(7) > 30,colorRed,colorYellow)), styleOwnScale| styleArea|styleNoLabel,-0.5,100);