PureBytes Links
Trading Reference Links
|
Phill,
There is a problem with the code in my previous message (due to my email
program during pasting code) please use this version.
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 MA( Close, 100 ) < ( Ref( MA( Close, 100 ), -50 ) - 2 * ATR( 100 ))
AND MA( Close, 21 ) * MA( Volume, 21 ) > 500000
AND MA( Close, 21 ) * MA( Volume, 21 ) < 10000000
AND ATRPerc >= 2
AND ATRPerc <= 8
AND Turnover >= 500000;
AddColumn( Close, "Close " );
AddColumn( ATR( 10 ), "ATR" );
AddColumn( ATRPerc, "atr(30)%", 1.3 );
AddColumn( Turnover, "Turnover" );
Buy = Filter;
Best regards,
William Peters
www.amitools.com
Tuesday, August 3, 2004, 3:06:51 PM, you wrote:
WP> Phill,
WP> Hope this gives you some ideas.
WP> Turnover = MA( Close, 21 ) * MA( Volume, 21 );
WP> ATRPerc = ( ATR( 10 ) / Close ) * 100;
WP> Filter = Cross( StochD( 10, 3, 3 ), StochK( 10, 3 ) )
WP> AND StochK( 10, 3 ) > 80
AND Close >> 1.0
AND Close >> AND MA( Close, 100 ) < ( Ref( MA( Close,
AND 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;
WP> AddColumn( Close, "Close " );
WP> AddColumn( ATR( 10 ), "ATR" );
WP> AddColumn( ATRPerc, "atr(10)%", 1.3 );
WP> AddColumn( Turnover, "Turnover" );
WP> Buy = Filter;
WP> Best regards,
WP> William Peters
WP> www.amitools.com
WP> 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
WP> Check AmiBroker web page at:
WP> http://www.amibroker.com/
WP> Check group FAQ at:
WP> http://groups.yahoo.com/group/amibroker/files/groupfaq.html
WP> Yahoo! Groups Links
------------------------ Yahoo! Groups Sponsor --------------------~-->
Yahoo! Domains - Claim yours for only $14.70
http://us.click.yahoo.com/Z1wmxD/DREIAA/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/
|