[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] Re: Awesome Oscillator by Gary Thompson (modified)



PureBytes Links

Trading Reference Links

Hi Don, 

Yes, the volume statements that you added in do make a difference.

Th scans now ignore those symbols with 0 volume.

Thank you.

Larry 

--- In amibroker@xxxxxxxxxxxxxxx, "Don Lindberg" <dlindber@xxx> wrote:
>
> Larry,
> 
> Oops, your right I forgot to qappend it. Here it is.
> 
> Don
> 
> _SECTION_BEGIN("Awesome WMA Oscillator with Change");
> 
>  
> 
> /* Awesome Oscillator code for Amibroker
> 
>             Written By Gary Thompson 
> 
>             07th April 2005 . Modified by don Lindberg 04-20-2007 */
> 
>  
> 
> SetChartOptions(0,chartShowDates|chartShowArrows||chartWrapTitle);
> 
>  
> 
> T=Param( "Time Period for MA",24,0,1000,1);
> 
> KMA=((C-WMA(C,T))/WMA(C,T))*100; 
> 
> S=Param( "Time Period for SlowMA",15,0,1000,1); 
> 
> SlowMA=WMA( Close ,S);
> 
> F=Param( "Time Period for FastMA",5,0,1000,1);
> 
> FastMA=WMA( Close,F);
> 
> barcolor= IIf((SlowMA - FastMA) <= Ref(SlowMA - FastMA,
> -1),colorGreen,colorRed); 
> 
> Buy=  (SlowMA - FastMA) <= Ref(SlowMA - FastMA, -1)AND V >=10000;
> 
> Sell=  (SlowMA - FastMA) >= Ref(SlowMA - FastMA, -1)AND V<=0;
> 
> Filter=C>=1 AND C<=50 AND C>WMA(C,T)
> 
> AND (SlowMA - FastMA) <= Ref(SlowMA - FastMA, -1)AND V>=100000 ;
> 
> Buy = ExRem( Buy, Sell );
> 
> Sell = ExRem( Sell, Buy ); 
> 
> PlotShapes( IIf( Buy, shapeDownArrow + shapePositionAbove, shapeNone ),
> colorGreen );
> 
> PlotShapes( IIf( Sell, shapeHollowUpArrow + shapePositionAbove, 
shapeNone ),
> colorRed );        
> 
> Graph0=FastMA-SlowMA;
> 
> Graph0Style=2+5;
> 
> Graph0BarColor=barcolor;
> 
>  
> 
> AddColumn(Close,"Close",1.2);
> 
> AddColumn((WMA(C,T)),"WMA",1.2);
> 
> //AddColumn ((SlowMA - FastMA) <= Ref(SlowMA - FastMA, -1),"Buy ");
> 
> AddColumn (V,"Volume", 1.0);
> 
> AddColumn (Buy,"Buy", 1.0);
> 
> AddColumn (Sell,"Sell", 1.0);
> 
> Score=Filter=C>=1 AND C<=50 AND C>WMA(C,T)
> 
> AND (SlowMA - FastMA) <= Ref(SlowMA - FastMA, -1) AND V>=100000;
> 
> SetSortColumns(-6);
> 
>  
> 
> Title="Awesome Zero Lag Oscillator  w/ Buy Sell arrows for "+Name()+"
> "+Date()+" The Close is 
"+WriteVal(abs(KMA),format=1.2)+"%"+WriteIf(KMA>0,"
> above"," below")+" the "+T+"  period WMA";
> 
> _SECTION_END();
> 
>  
> 
>  
> 
>   _____  
> 

>




Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to 
SUPPORT {at} amibroker.com

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

For other support material please check also:
http://www.amibroker.com/support.html
 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/