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

Re: [EquisMetaStock Group] LinRegSlope



PureBytes Links

Trading Reference Links


If you are looking for simple LinRegSlope for MetaStock, there is a 
better version here:

http://64.202.168.102/index.html#metastock
"LinReg Slope" link.

As for the additional AB code, things like "MACDH > -0.003" simply 
don't work in the real markets.  Beware of complete system signals 
within one single indicator's code.


jose '-)



--- In equismetastock@xxxxxxxxxxxxxxx, "Martin Blain" <martin@xxxx> 
wrote:
> Hello
> Can anybody convert this to MS
> Martin Blain
> Burlington Ontario
>   ----- Original Message ----- 
>   From: pumrysh 
>   To: equismetastock@xxxxxxxxxxxxxxx 
>   Sent: Sunday, January 30, 2005 5:13 PM
>   Subject: Re: [EquisMetaStock Group] LinRegSlope
> 
> 
> 
>   Amibroker code:
> 
>   //Penny Stock breakout Trading system 
>   //////////////////////////////// 
>   MACDH = MACD()-Signal(); 
>   SDC = StDev( C, 30 ) / MA( C, 30 ); 
>   Period = 14; 
>   Coeff = 0.1; 
>   intra = log( H ) - log( L ); 
>   Vintra = StDev( intra, Period ); 
>   inter = log( Avg ) - log( Ref( Avg, -1 ) ); 
>   Vinter = StDev( inter, Period ); 
>   Cutoff = Coeff * (Vinter+Vintra) * C; 
>   MF = C - (H+L)/2 + Avg - Ref( Avg, -1 ); 
>   MFV = IIf( MF > Cutoff, V, IIf( MF < -Cutoff, -V, 0 ) ); 
>   FVE = Sum( MFV, Period ) / MA(V,Period) / Period * 100; 
> 
>   LC35 = 100* LinRegSlope( C, 35 ) / Ref( C, -35 ); 
>   LC70 = 100*LinRegSlope( C, 70 ) / Ref( C, -70 ); 
>   LC170 = 100*LinRegSlope( C, 170 ) / Ref( C, -170 ); 
> 
>   StochSDC = 100 * Sum( SDC - LLV(SDC,150), 3 ) / 
>              Sum( HHV( SDC, 150 ) - LLV( SDC, 150 ), 3 ); 
> 
>   Buy =  FVE > -1 AND 
>          LC35 > -0.35 AND 
>          LC35 < 0.40 AND 
>          LC70 > -0.40 AND 
>          LC70 < 0.40 AND 
>          LC170 > -0.20 AND 
>          MACDH > -0.003 AND 
>          StochSDC < 20 AND 
>          C > EMA( C, 10 ) AND 
>          SDC * ADX( 25 ) < 1.3 AND 
>          StochK( 10, 3 ) > 30; 
> 
>   Sell = C < (1 - 18/100) * HHV( C, 2 ); 
>   ApplyStop( stopTypeNBar, stopModeBars, 70, True ); 
> 
>   Filter = Buy; 
>   AddColumn( FVE, "FVE" ); 
>   AddColumn( LC35, "LC35" ); 
>   AddColumn( LC70, "LC70" ); 
>   AddColumn( LC170, "LC170" ); 
>   AddColumn( MACDH, "MACDH", 1.5 ); 
>   AddColumn( StochSDC , "StochSDC" ); 
>   AddColumn( C , "C" ); 
>   AddColumn( EMA( C, 10 ), "EMA(C,10)" ); 
>   AddColumn( SDC * ADX( 25 ), "SDC * ADX( 25 )" ); 
>   AddColumn( StochK( 10, 3 )  , "StochK( 10, 3 )" ); 
> 
>   --Tomasz Janeczko, AmiBroker.com 






------------------------ Yahoo! Groups Sponsor --------------------~--> 
What would our lives be like without music, dance, and theater?
Donate or volunteer in the arts today at Network for Good!
http://us.click.yahoo.com/Tcy2bD/SOnJAA/cosFAA/BefplB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

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

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

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