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

Re: [amibroker] Re: AFL



PureBytes Links

Trading Reference Links

Hi Gary,
 
I don't understand your problem I guess.  What do you have your range set to?  I only get one result (one symbol) per explore run if my range is set with N=1, however if I'm asking for a range of dates or n > 1 then I will get more than one instance of the symbol, with a time for each instance of when the symbol met the criteria.    Care to post your code so it could be checked?  Hard to just keep guessing what you're after.
 
Peace and Justice   ---   Patrick
----- Original Message -----
From: Gary
Sent: Tuesday, June 14, 2005 9:52 AM
Subject: [amibroker] Re: AFL

Thanks for the reply Patrick,

But I still want to use the 'Explore' button to find stocks that meet
my 'buy/sell' criteria. I wanted to see all the stocks that meet the
criteria listed only once in the results pane.

Thanks,

Gary


--- In amibroker@xxxxxxxxxxxxxxx, "NW Trader" <47nwtrader@x...> wrote:
> Hi Gary,
>
> If you just want to see the arrows on a chart, try inserting the
following in your chart code after the Buy-Sell conditions are
defined.  It will print arrows (green or red) on your price chart
without need to run an explore.  If you have multiple conditions that
can trigger a buy (or sell), you could assign a name for each and
substitute that name for Buy and give the arrow a different color
(e.g., if one buy is triggered by a MA cross over { x= cross(c,ma
(c,5) } and another buy is triggered by a close higher than that of 3
prior periods {  Y = c > ref(c,-3) }, each could generate their own
arrows or you could accumulate them for a single arrow).  
> PlotShapes( IIf( Buy, shapeDownArrow , shapeNone ), colorGreen );
>
> PlotShapes( IIf( Sell, shapeDownArrow , shapeNone ), colorRed );
>
> Hope this helps.
>
> Peace and Justice   ---   Patrick
>   ----- Original Message -----
>   From: ghost200_2000
>   To: amibroker@xxxxxxxxxxxxxxx
>   Sent: Tuesday, June 14, 2005 5:59 AM
>   Subject: [amibroker] AFL
>
>
>   I need someone to help me with this simple AFL formula.
>
>   As buy and sell signals are triggerred by the Buy and Sell
formulas,
>   when I clicked the 'Explore' button in the 'Automatic Analysis'
>   window, I will get so many lines for each symbol.
>   If I only want to have the summary list, which is only 1 symbol
per-
>   line in the results pane, how do I do this?
>   (I just want to see all the trades/arrow in the chart, not in the
>   results pane).
>
>   Thanks,
>
>   Gary
>
>
>   Here is the AFL:
>   ----------------
>   Filter = C >= 15 AND MA(V, 20) >= 250000;
>
>   Buy=Cross( MACD(), Signal() );
>   Sell=Cross( Signal(), MACD() );
>
>   AddColumn(C, "Close");
>
>
>
>
>   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 other support material please check also:
>   http://www.amibroker.com/support.html
>
>
>
>
>
> --------------------------------------------------------------------
----------
>   Yahoo! Groups Links
>
>     a.. To visit your group on the web, go to:
>     http://groups.yahoo.com/group/amibroker/
>      
>     b.. To unsubscribe from this group, send an email to:
>     amibroker-unsubscribe@xxxxxxxxxxxxxxx
>      
>     c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service.




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 other support material please check also:
http://www.amibroker.com/support.html





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 other support material please check also:
http://www.amibroker.com/support.html





Yahoo! Groups Links