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

[amibroker] Re: Easiest way to scan for rising/falling/flat stocks



PureBytes Links

Trading Reference Links

Phill,

Hope this gives you some ideas.


Turnover = MA( Close, 21 ) * MA( Volume, 21 );
ATRPerc = ( ATR( 10 ) / Close ) * 100;

Filter = Cross( StochD( 10, 3, 3 ), StochK( 10, 3 ) )
AND StochK( 10, 3 ) > 80
AND Close > 1.0
AND Close > AND MA( Close, 100 ) < ( Ref( MA( Close, 100 ), -50 ) - 2 * ATR( 100 ))
AND Close > AND MA( Close, 21 ) * MA( Volume, 21 ) > 500000
AND Close > AND MA( Close, 21 ) * MA( Volume, 21 ) < 10000000
AND ATRPerc >= 2
AND ATRPerc >AND ATRPerc <= 8
AND ATRPerc >AND Turnover >= 500000;

AddColumn( Close, "Close  " );
AddColumn( ATR( 10 ), "ATR" );
AddColumn( ATRPerc, "atr(10)%", 1.3 );
AddColumn( Turnover, "Turnover" );

Buy = Filter;




Best regards,
William Peters
www.amitools.com



Monday, August 2, 2004, 9:28:42 PM, you wrote:


p> /* Create date: 02 Aug 2004
p> The Stochastic %K(Slow) crosses below the Stochastic %D(Slow) on the
p> current bar AND The Stochastic %K(Slow) of the current bar is greater
p> than 80 AND The Close Price of the current bar is greater than 1.0 
p> AND  AND The Simple MA (Medium) of the current bar is less than (the
p> Simple MA (Medium) of 30 bars ago - 2 ATR(100)) AND ATR(30) 
p> Volatility 2-8 inclusive  */

p> Filter = Cross( StochD( 10, 3, 3 ), StochK( 10, 3 ) )
p> AND StochK( 10, 3 ) > 80
AND Close >> 1.0 
p> AND MA( Close, 100 ) < (Ref( MA( Close, 100 ), -50 ) - 2 * ATR(100))
p> AND MA(Close,21) * MA(Volume,21) > 500000 
p> AND MA(Close,21) * MA(Volume,21) < 10000000
p> AND (ATR(10) / Close) *100 >= 2 
p> AND (ATR(10)/ Close) * 100 <= 8 ;
p> AddColumn( Close, "Close  " );
p> AddColumn(ATR(10),"ATR");
p> AddColumn((atr(10)/Close)*100;
p> PlotShapes(shapeUpArrow,colorRed,1.2);

p> I need some help with the above please.  Using Explore how do I;
   
p>   1) add a column to give a value for  (ATR(10)/Close) * 100;      
p> I've tried Addcolumn((atr(10)/close)*100), "atr(30)%, 1.3);     no
p> good.

p>   2) add a column for turnover. In the formula I use ma(close,21) * ma
(volume,21) >>= 500000;  also is their a single word for turnover to 
use eg turnover >>= $500000.

p>    3) how do I to indicate on the chart every point where the above
p> formula has been met. Plotshapes as above doesn't seem to do 
p> anything. I have also right clicked on a line in the results column
p> and ticked  "show arrows" but no good.

p>   4) occasionally when inputting something in plotshapes (eg 
p> colorpurple) I get a syntax error saying it requires initialization.
p> What does this mean?  

p> Thanks in advance Phill.






p> Check AmiBroker web page at:
p> http://www.amibroker.com/

p> Check group FAQ at:
p> http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
p> Yahoo! Groups Links



 



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
Yahoo! Groups Links

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

<*> 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/