// Downloaded From https://www.WiseStockTrader.com
P = ParamField( "Price field" );
change = Param("% change",5,0.1,25,0.1);
Plot( Zig(P, change), _DEFAULT_NAME(), ParamColor( "Color", colorCycle ), ParamStyle("Style") );
Buy=Zig(p,Change)>Ref(Zig(p,Change),-1) AND Ref(Zig(p,Change),-1)<Ref(Zig(p,Change),-2) AND Ref(Zig(P,Change),-1)>LLV(Zig(p,Change),-20) AND Volume> MA(Volume,3);
Sell=Zig(p,Change)<Ref(Zig(p,Change),-1);